mirror of
https://gitlab.com/lecarore/breakout71.git
synced 2025-04-25 22:46:15 -04:00
Build 29062849
This commit is contained in:
parent
48695fd3d9
commit
ec178e393d
6 changed files with 20 additions and 11 deletions
19
build.sh
19
build.sh
|
@ -19,6 +19,9 @@ fi
|
|||
set -e
|
||||
set -x
|
||||
|
||||
# clear output folders first, so that they are empty for failed builds
|
||||
rm -rf ./build/*
|
||||
rm -rf ./app/src/main/assets/*
|
||||
|
||||
|
||||
|
||||
|
@ -40,12 +43,18 @@ find -name '*.jp*g' -o -name '*.png' | xargs exiftool -all= -overwrite_original
|
|||
npx prettier --write src/
|
||||
|
||||
npx jest
|
||||
rm -rf build/*
|
||||
|
||||
# Actual js app build
|
||||
npx parcel build src/index.html --dist-dir build
|
||||
rm -rf ./app/src/main/assets/*
|
||||
|
||||
# Add public files to the web version, but not to the apk
|
||||
cp public/* build
|
||||
rm -rf ./app/src/main/assets/*
|
||||
|
||||
# Add only index.html file to the apk, it should be enough
|
||||
cp build/index.html ./app/src/main/assets/
|
||||
|
||||
# generate signed apk
|
||||
./gradlew assembleRelease
|
||||
# generate signed apk for itch.io
|
||||
./gradlew assembleRelease
|
||||
|
||||
# generate signed bundle for play store
|
||||
./gradlew bundleRelease
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue