From 687af79eed16fa44747ef336eca6afae36995d82 Mon Sep 17 00:00:00 2001 From: XargonWan <6771419+XargonWan@users.noreply.github.com> Date: Sun, 4 Sep 2022 14:31:10 +0200 Subject: [PATCH] Updated flathub push script --- flathub-push.sh | 15 +++++++++------ 1 file changed, 9 insertions(+), 6 deletions(-) diff --git a/flathub-push.sh b/flathub-push.sh index 92e7ff16..f6034bf6 100755 --- a/flathub-push.sh +++ b/flathub-push.sh @@ -1,11 +1,13 @@ #!/bin/bash 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 git clone --recursive https://github.com/flathub/net.retrodeck.retrodeck.git flathub -cd ~/gits/RetroDECK +cd $gits_folder/RetroDECK git checkout main git submodule init git submodule update @@ -13,12 +15,13 @@ git submodule update # 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/ -cd ~/gits/flathub +cd $gits_folder/flathub git checkout -b $branch git rm -rf * 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 \ 'rd-submodules' \ 'flathub.json' \ @@ -27,8 +30,8 @@ cp -rf \ 'net.retrodeck.retrodeck.desktop' \ 'net.retrodeck.retrodeck.yml' \ 'README.md' \ -~/gits/flathub/ -cd ~/gits/flathub +$gits_folder/flathub/ +cd $gits_folder/flathub # #rebuilding submodules # git config -f .gitmodules --get-regexp '^submodule\..*\.path$' |