#388 #398 do not bundle shaders for izzy/libre flavours, to avoid crashes in some environments

This commit is contained in:
Thibault Deckers 2022-11-23 21:13:56 +01:00
parent d5353990a4
commit 3696068c19

View file

@ -45,6 +45,9 @@ jobs:
# `KEY_JKS_PASSPHRASE` should contain the passphrase used for the command above
# The SkSL bundle must be produced with the same Flutter engine as the one used to build the artifact
# flutter build <subcommand> --bundle-sksl-path shaders.sksl.json
# do not bundle shaders for izzy/libre flavours, to avoid crashes in some environments:
# cf https://github.com/deckerst/aves/issues/388
# cf https://github.com/deckerst/aves/issues/398
run: |
echo "${{ secrets.KEY_JKS }}" > release.keystore.asc
gpg -d --passphrase "${{ secrets.KEY_JKS_PASSPHRASE }}" --batch release.keystore.asc > $AVES_STORE_FILE
@ -59,10 +62,10 @@ jobs:
flutter build apk -t lib/main_huawei.dart --flavor huawei --bundle-sksl-path shaders.sksl.json
cp build/app/outputs/apk/huawei/release/*.apk outputs
(cd scripts/; ./apply_flavor_izzy.sh)
flutter build apk -t lib/main_izzy.dart --flavor izzy --split-per-abi --bundle-sksl-path shaders.sksl.json
flutter build apk -t lib/main_izzy.dart --flavor izzy --split-per-abi
cp build/app/outputs/apk/izzy/release/*.apk outputs
(cd scripts/; ./apply_flavor_libre.sh)
flutter build apk -t lib/main_libre.dart --flavor libre --bundle-sksl-path shaders.sksl.json
flutter build apk -t lib/main_libre.dart --flavor libre
cp build/app/outputs/apk/libre/release/*.apk outputs
rm $AVES_STORE_FILE
env: