Skip to content

Latest commit

 

History

History
46 lines (31 loc) · 1005 Bytes

BUILD.md

File metadata and controls

46 lines (31 loc) · 1005 Bytes

Build

Debug

This project is an Android application with some shell scripts to execute on the computer. Therefore, just use gradle as usual:

./gradlew assembleDebug

(or build from Android Studio)

To run it:

./run
./run <serial>  # if several devices are connected

Since building is very fast, ./run also executes ./gradlew assembleDebug to always run an up-to-date version.

Release

To build and install a release, you need to generate a signed APK.

For that purpose, first generate a keystore:

# generate sndcpy.keystore file
keytool -genkey -v -keystore sndcpy.keystore -alias sndcpy \
        -keyalg RSA -keysize 2048 -validity 30000

Then, add these lines (and adapt) in ~/.gradle/gradle.properties:

SNDCPY_STORE_FILE=/path/to/your/sndcpy.keystore
SNDCPY_STORE_PASSWORD=the_keystore_password
SNDCPY_KEY_ALIAS=sndcpy
SNDCPY_KEY_PASSWORD=the_key_password

Then, execute ./release.sh. It will generate a release in dist/.