Category: digital     |    Tags: android  

Building markor from source code in linux

Markor can be installed from Google playstore, FDroid as well as releases page of this repo. Nevertheless, if you want the cutting edge version, here are the general instructions for Linux platform. Open terminal run the following set of commands one by one.

export ANDROID_SDK_ROOT="$HOME/android-sdk"

if [[ ! -d ${ANDROID_SDK_ROOT}]]; then
    mkdir -p ${ANDROID_SDK_ROOT}
    curl https://dl.google.com/android/repository/sdk-tools-linux-3859397.zip > sdk-tools.zip 
    unzip -qq -n sdk-tools.zip -d ${ANDROID_SDK_ROOT}
    rm sdk-tools.zip
fi
echo y | ${ANDROID_SDK_ROOT}/tools/bin/sdkmanager 'tools'
echo y | ${ANDROID_SDK_ROOT}/tools/bin/sdkmanager 'platform-tools' 
echo y | ${ANDROID_SDK_ROOT}/tools/bin/sdkmanager 'build-tools;29.0.3' 
echo y | ${ANDROID_SDK_ROOT}/tools/bin/sdkmanager 'platforms;android-29' 
echo y | ${ANDROID_SDK_ROOT}/tools/bin/sdkmanager 'extras;google;m2repository' 
${ANDROID_SDK_ROOT}/tools/bin/sdkmanager --licenses
git clone --depth=1 https://github.com/gsantner/markor.git && cd markor
./gradlew --no-daemon clean
./gradlew --no-daemon build
cd app/build/outputs/apk/flavorDefault/release 
ls
${ANDROID_SDK_ROOT}/build-tools/28.0.3/zipalign -v -p 4 net.gsantner.markor-v99-2.1.6-flavorDefault-release-unsigned.apk markor-unsign-aligned-apk
keytool -genkey -v -keystore markor-release-key.jks -keyalg RSA -keysize 2048 -validity 10000 -alias my-unique-name 
${ANDROID_SDK_ROOT}/build-tools/28.0.3/apksigner sign --ks markor-release-key.jks --out markor-signed-aligned.apk markor-unsign-aligned.apk
${ANDROID_SDK_ROOT}/build-tools/28.0.3/apksigner verify markor-signed-aligned.apk

Related Posts

Vim: Copy and paste to termux clipboard
© 2019 - 2024 · Home ยท Theme Simpleness Powered by Hugo ·