mirror of
https://gitlab.com/lecarore/breakout71.git
synced 2025-04-20 04:05:06 -04:00
When trying a perk or level, actually play the run
This commit is contained in:
parent
b3bbeb59b7
commit
08f2566faa
3 changed files with 42 additions and 60 deletions
14
deploy.sh
14
deploy.sh
|
@ -2,37 +2,33 @@
|
|||
set -e
|
||||
set -x
|
||||
|
||||
# Replace the version code and name in gradle for fdroid and play store
|
||||
# the version number is just a unix timestamp in minutes
|
||||
versionCode=$(($(date +%s) / 60))
|
||||
|
||||
# On macOS you should use -i '' not just -i, but i'm on linux
|
||||
# Replace the version code and name in gradle for fdroid and play store
|
||||
sed -i -e "s/^[[:space:]]*versionCode = .*/ versionCode = $versionCode/" \
|
||||
-e "s/^[[:space:]]*versionName = .*/ versionName = \"$versionCode\"/" \
|
||||
./app/build.gradle.kts
|
||||
|
||||
|
||||
|
||||
# Invalidate web cache and update version
|
||||
sed -i "s/\?v=[0-9]*/\?v=$versionCode/g" ./app/src/main/assets/index.html
|
||||
|
||||
# remove all exif metadata from pictures, because i think fdroid doesn't like that. odd
|
||||
find -name '*.jp*g' -o -name '*.png' | xargs exiftool -all=
|
||||
|
||||
|
||||
# Create a release commit and tag
|
||||
git add .
|
||||
git commit -m "Automatic deploy $versionCode"
|
||||
git tag -a $versionCode -m $versionCode
|
||||
git push
|
||||
|
||||
|
||||
# upload to breakout.lecaro.me
|
||||
DOMAIN="breakout.lecaro.me"
|
||||
PUBLIC_CONTENT="./app/src/main/assets/"
|
||||
ssh staging "mkdir -p /opt/mup-nginx-proxy/config/html/static_sites/$DOMAIN"
|
||||
rsync -avz --delete --delete-excluded --exclude="*.sh" --exclude="node_modules" --exclude="android" --exclude=".*" $PUBLIC_CONTENT staging:/opt/mup-nginx-proxy/config/html/static_sites/$DOMAIN
|
||||
|
||||
|
||||
# generate zip for itch
|
||||
rm -f breakout.zip
|
||||
zip -j breakout.zip app/src/main/assets/*
|
||||
# upload to itch.io
|
||||
butler push app/src/main/assets/ renanlecaro/breakout71:latest --userversion $versionCode
|
||||
butler push app/src/main/assets/ renanlecaro/breakout71:offline --userversion $versionCode
|
Loading…
Add table
Add a link
Reference in a new issue