mirror of
https://github.com/RetroDECK/RetroDECK.git
synced 2024-11-25 23:45:39 +00:00
Updated flathub push script
This commit is contained in:
parent
7011fb2361
commit
687af79eed
|
@ -1,11 +1,13 @@
|
||||||
#!/bin/bash
|
#!/bin/bash
|
||||||
|
|
||||||
branch="main-"$(date +%d%m%y.%H%M)
|
branch="main-"$(date +%d%m%y.%H%M)
|
||||||
|
#gits_folder=~/gits
|
||||||
|
gits_folder="/home/public-folder/gits" # without last /
|
||||||
|
|
||||||
cd ~/gits
|
cd $gits_folder
|
||||||
rm -rf flathub
|
rm -rf flathub
|
||||||
git clone --recursive https://github.com/flathub/net.retrodeck.retrodeck.git flathub
|
git clone --recursive https://github.com/flathub/net.retrodeck.retrodeck.git flathub
|
||||||
cd ~/gits/RetroDECK
|
cd $gits_folder/RetroDECK
|
||||||
git checkout main
|
git checkout main
|
||||||
git submodule init
|
git submodule init
|
||||||
git submodule update
|
git submodule update
|
||||||
|
@ -13,12 +15,13 @@ git submodule update
|
||||||
# these must be included in the exclusion list as they must be redownloaded
|
# these must be included in the exclusion list as they must be redownloaded
|
||||||
#sync -rav --progress --exclude={'res/screenshots/','shared-modules/','rd-submodules/retroarch','.git/','docs','retrodeck-flatpak/','retrodeck-flatpak-cooker/','.flatpak-builder/'} ~/RetroDECK/ ~/flathub/
|
#sync -rav --progress --exclude={'res/screenshots/','shared-modules/','rd-submodules/retroarch','.git/','docs','retrodeck-flatpak/','retrodeck-flatpak-cooker/','.flatpak-builder/'} ~/RetroDECK/ ~/flathub/
|
||||||
|
|
||||||
cd ~/gits/flathub
|
cd $gits_folder/flathub
|
||||||
git checkout -b $branch
|
git checkout -b $branch
|
||||||
git rm -rf *
|
git rm -rf *
|
||||||
git clean -fxd # restroing git index
|
git clean -fxd # restroing git index
|
||||||
|
|
||||||
cd ~/gits/RetroDECK
|
# Copying only a few files as the others are cloned by git in retrodeck.sh
|
||||||
|
cd $gits_folder/RetroDECK
|
||||||
cp -rf \
|
cp -rf \
|
||||||
'rd-submodules' \
|
'rd-submodules' \
|
||||||
'flathub.json' \
|
'flathub.json' \
|
||||||
|
@ -27,8 +30,8 @@ cp -rf \
|
||||||
'net.retrodeck.retrodeck.desktop' \
|
'net.retrodeck.retrodeck.desktop' \
|
||||||
'net.retrodeck.retrodeck.yml' \
|
'net.retrodeck.retrodeck.yml' \
|
||||||
'README.md' \
|
'README.md' \
|
||||||
~/gits/flathub/
|
$gits_folder/flathub/
|
||||||
cd ~/gits/flathub
|
cd $gits_folder/flathub
|
||||||
|
|
||||||
# #rebuilding submodules
|
# #rebuilding submodules
|
||||||
# git config -f .gitmodules --get-regexp '^submodule\..*\.path$' |
|
# git config -f .gitmodules --get-regexp '^submodule\..*\.path$' |
|
||||||
|
|
Loading…
Reference in a new issue