summarylogtreecommitdiffstats
path: root/apkstudio-setup.sh
blob: adc640667de956d59c7de5d389dc036cc9b00fd0 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
#!/bin/bash
set -eu
echo APK Studio normally requires you to download \"vendor.zip\" and extract it.
echo It contains apktool.jar. Since that\'s a dependency of this package, this
echo script will instead create symbolic links in $HOME/.apkstudio/vendor/.
echo

mkdir -p "$HOME/.apkstudio/vendor/"
[ -e "$HOME/.apkstudio/vendor/apktool.jar" ] || ln -s "/usr/share/android-apktool/apktool.jar" "$HOME/.apkstudio/vendor/apktool.jar"
[ -e "$HOME/.apkstudio/vendor/VERSION" ] || ln -s "/usr/share/apkstudio-git/APKTOOL_VERSION" "$HOME/.apkstudio/vendor/VERSION"

echo You may now use APK Studio. Have a nice day!