mirror of
https://github.com/RetroDECK/RetroDECK.git
synced 2024-11-24 23:15:39 +00:00
Updated flathub push script
This commit is contained in:
parent
687af79eed
commit
d9bcc43ccd
|
@ -1,14 +1,19 @@
|
||||||
#!/bin/bash
|
#!/bin/bash
|
||||||
|
|
||||||
branch="main-"$(date +%d%m%y.%H%M)
|
# EDITABLES:
|
||||||
|
#rd_branch="main"
|
||||||
|
rd_branch="cooker"
|
||||||
#gits_folder=~/gits
|
#gits_folder=~/gits
|
||||||
gits_folder="/home/public-folder/gits" # without last /
|
gits_folder="/home/public-folder/gits" # without last /
|
||||||
|
|
||||||
|
# NON-EDITABLES
|
||||||
|
branch="$rd_branch-"$(date +%d%m%y.%H%M)
|
||||||
|
|
||||||
cd $gits_folder
|
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_folder/RetroDECK
|
cd $gits_folder/RetroDECK
|
||||||
git checkout main
|
git checkout $rd_branch
|
||||||
git submodule init
|
git submodule init
|
||||||
git submodule update
|
git submodule update
|
||||||
# NOTE: the only linked submodules are: rd-submodules/retroarch
|
# NOTE: the only linked submodules are: rd-submodules/retroarch
|
||||||
|
@ -73,5 +78,5 @@ git submodule deinit -f .
|
||||||
# checkout again
|
# checkout again
|
||||||
git submodule update --init --recursive
|
git submodule update --init --recursive
|
||||||
git add *
|
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
|
git push origin $branch
|
Loading…
Reference in a new issue