Skip to content
Permalink
master
Switch branches/tags
Go to file
Latest commit 00d8471 Jun 8, 2020 History
1 contributor

Users who have contributed to this file

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/.