mirror of
https://github.com/sensebox/blockly-app
synced 2025-02-20 11:53:58 +01:00
update apk signing documentation
This commit is contained in:
parent
477ba60034
commit
94fcc90f42
1 changed files with 7 additions and 11 deletions
18
README.md
18
README.md
|
@ -47,22 +47,18 @@ export ANDROID_HOME=$ANDROID_SDK
|
|||
export PATH=$PATH:$ANDROID_SDK/emulator:$ANDROID_SDK/tools:$ANDROID_SDK/tools/bin:$ANDROID_SDK/platform-tools:$ANDROID_SDK/build-tools/28.0.3
|
||||
```
|
||||
|
||||
To create a signed release build, add a file `platform/android/release-signing.properties` following this template.
|
||||
You need a keystore with a valid signing key!
|
||||
|
||||
```properties
|
||||
storeFile=../../reedu-android.keystore
|
||||
storeType=jks
|
||||
keyAlias=reedu-android
|
||||
keyPassword=xxxxxxxxxxxxxxxxxxxxxxxxx
|
||||
storePassword=xxxxxxxxxxxxxxxxxxxxxxxxxxxxx
|
||||
```
|
||||
|
||||
To build & deploy on an emulator or device use the `android:*` build commands defined in `package.json` (some only work on linux), for example:
|
||||
```bash
|
||||
npm run android:dev # build debug build & deploy to connected device & restart app
|
||||
```
|
||||
|
||||
###### release signing
|
||||
You need a keystore with a valid signing key!
|
||||
```
|
||||
zipalign -p 4 blockly-unsigned.apk blockly-aligned.apk
|
||||
apksigner sign -ks reedu-android.keystore --in blockly-aligned.apk --out blockly-signed.apk
|
||||
```
|
||||
|
||||
### updating blockly
|
||||
Blockly is included as a submodule, linking to <https://github.com/sensebox/ardublockly-1>.
|
||||
To update it, just pull in the commit you want, and commit the change in this repository:
|
||||
|
|
Loading…
Add table
Reference in a new issue