diff --git a/flathub-push.sh b/flathub-push.sh index f6034bf6..f417c6b6 100755 --- a/flathub-push.sh +++ b/flathub-push.sh @@ -1,14 +1,19 @@ #!/bin/bash -branch="main-"$(date +%d%m%y.%H%M) +# EDITABLES: +#rd_branch="main" +rd_branch="cooker" #gits_folder=~/gits gits_folder="/home/public-folder/gits" # without last / +# NON-EDITABLES +branch="$rd_branch-"$(date +%d%m%y.%H%M) + cd $gits_folder rm -rf flathub git clone --recursive https://github.com/flathub/net.retrodeck.retrodeck.git flathub cd $gits_folder/RetroDECK -git checkout main +git checkout $rd_branch git submodule init git submodule update # NOTE: the only linked submodules are: rd-submodules/retroarch @@ -73,5 +78,5 @@ git submodule deinit -f . # checkout again git submodule update --init --recursive git add * -git commit -m "Updated flathub/net.retrodeck.retrodeck from RetroDECK/main" +git commit -m "Updated flathub/net.retrodeck.retrodeck from RetroDECK/$rd_branch" git push origin $branch \ No newline at end of file