Skip to content

Instantly share code, notes, and snippets.

@ckuethe
Created June 5, 2017 04:23
Show Gist options
  • Save ckuethe/cf972e974ac87c76022dcdf1e54e824a to your computer and use it in GitHub Desktop.
Save ckuethe/cf972e974ac87c76022dcdf1e54e824a to your computer and use it in GitHub Desktop.
Notes to self about how to build shaarli (or other random things I'm hacking on)
sudo apt install gradle openjdk-8-jdk-headless

wget http://http.us.debian.org/debian/pool/main/libn/libnative-platform-java/libnative-platform-jni_0.11-5_amd64.deb
sudo dpkg -i libnative-platform-jni_0.11-5_amd64.deb # known issue about symbols missing
git clone https://github.com/dimtion/Shaarlier

vi app/build.gradle # use the right build tool version so i find aapt
env ANDROID_HOME=/opt/android-studio gradle build

keytool -genkey -v -validity 14000 \
	-keystore debug.keystore \
	-alias androiddebugkey \
	-storepass android \
	-keypass android \
	-keyalg RSA

jarsigner -keystore debug.keystore \
	-keypass android \
	-storepass android \
	-signedjar shaarli-signed.apk \
	app/build/outputs/apk/app-release-unsigned.apk androiddebugkey

adb install shaarli-signed.apk
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment