updated shaders with Flutter v1.20.2
This commit is contained in:
parent
e8afa4b185
commit
508a356dc7
3 changed files with 5 additions and 3 deletions
5
.github/workflows/release.yml
vendored
5
.github/workflows/release.yml
vendored
|
@ -43,14 +43,15 @@ jobs:
|
||||||
# `KEY_JKS` should contain the result of:
|
# `KEY_JKS` should contain the result of:
|
||||||
# gpg -c --armor keystore.jks
|
# gpg -c --armor keystore.jks
|
||||||
# `KEY_JKS_PASSPHRASE` should contain the passphrase used for the command above
|
# `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
|
# 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
|
# flutter build <subcommand> --bundle-sksl-path shaders.sksl.json
|
||||||
run: |
|
run: |
|
||||||
echo "${{ secrets.KEY_JKS }}" > release.keystore.asc
|
echo "${{ secrets.KEY_JKS }}" > release.keystore.asc
|
||||||
gpg -d --passphrase "${{ secrets.KEY_JKS_PASSPHRASE }}" --batch release.keystore.asc > $AVES_STORE_FILE
|
gpg -d --passphrase "${{ secrets.KEY_JKS_PASSPHRASE }}" --batch release.keystore.asc > $AVES_STORE_FILE
|
||||||
rm release.keystore.asc
|
rm release.keystore.asc
|
||||||
flutter build apk
|
flutter build apk --bundle-sksl-path shaders.sksl.json
|
||||||
flutter build appbundle
|
flutter build appbundle --bundle-sksl-path shaders.sksl.json
|
||||||
rm $AVES_STORE_FILE
|
rm $AVES_STORE_FILE
|
||||||
env:
|
env:
|
||||||
AVES_STORE_FILE: ${{ github.workspace }}/key.jks
|
AVES_STORE_FILE: ${{ github.workspace }}/key.jks
|
||||||
|
|
File diff suppressed because one or more lines are too long
|
@ -37,6 +37,7 @@ Future<void> copyContent(String sourceDir, String targetDir) async {
|
||||||
await runAdb(['push', sourceDir, targetDir]);
|
await runAdb(['push', sourceDir, targetDir]);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// only works in debug mode
|
||||||
Future<void> grantPermissions(String packageName, Iterable<String> permissions) async {
|
Future<void> grantPermissions(String packageName, Iterable<String> permissions) async {
|
||||||
await Future.forEach(permissions, (permission) => runAdb(['shell', 'pm', 'grant', packageName, permission]));
|
await Future.forEach(permissions, (permission) => runAdb(['shell', 'pm', 'grant', packageName, permission]));
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue