Staging deploy adjustments

This commit is contained in:
Renan LE CARO 2025-03-14 22:21:47 +01:00
parent c8c12fdd29
commit 1a56b5f1d1
3 changed files with 19 additions and 13 deletions

11
build.sh Normal file → Executable file
View file

@ -1,5 +1,8 @@
#!/bin/bash
# the version number is just a unix timestamp in minutes
versionCode=$1
source ~/.nvm/nvm.sh;
nvm install v21
@ -21,8 +24,6 @@ set -e
set -x
# the version number is just a unix timestamp in minutes
versionCode=$(($(date +%s) / 60))
# Replace the version code and name in gradle for fdroid and play store
@ -48,9 +49,3 @@ npm run build
rm -rf ./app/src/main/assets/*
cp public/* dist
cp dist/* ./app/src/main/assets/
# Create a release commit and tag
git add .
git commit -m "Build $versionCode"
git tag -a $versionCode -m $versionCode
git push