Pause when tab is hidden, using visibility change api

This commit is contained in:
Renan LE CARO 2025-03-15 10:34:01 +01:00
parent 1a56b5f1d1
commit 33d74e8c84
68 changed files with 7290 additions and 6933 deletions

View file

@ -1,7 +1,11 @@
#!/bin/bash
# the version number is just a unix timestamp in minutes
versionCode=$1
defaultVersionCode=$(($(date +%s) / 60))
versionCode=${1:-$defaultVersionCode}
# TODO crash without app version
source ~/.nvm/nvm.sh;
@ -48,4 +52,5 @@ npm run build
rm -rf ./app/src/main/assets/*
cp public/* dist
cp dist/* ./app/src/main/assets/
rm -rf ./app/src/main/assets/*
cp dist/index.html ./app/src/main/assets/