Skip to content

Commit

Permalink
Merge pull request #1 from Vendicated/ilovejiff
Browse files Browse the repository at this point in the history
Bump buildtool and fix flaws in build.sh
AAGaming authored May 23, 2021
2 parents bb43b28 + 33becdc commit f1979c7
Showing 2 changed files with 6 additions and 7 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/build.yml
Original file line number Diff line number Diff line change
@@ -39,7 +39,7 @@ jobs:
run: |
echo "$ANDROID_HOME/build-tools/29.0.2" >> $GITHUB_PATH
mkdir -p ~/bin
wget https://github.com/Aliucord/buildtool/releases/download/v0.0.3/buildtool -P ~/bin
wget https://github.com/Aliucord/buildtool/releases/download/v0.1.0/buildtool -P ~/bin
chmod +x ~/bin/buildtool
chmod +x $GITHUB_WORKSPACE/src/gradlew
echo "{\"aliucord\":\"$GITHUB_WORKSPACE/Aliucord\",\"plugins\":\"$GITHUB_WORKSPACE/src\",\"androidSDK\":\"$ANDROID_HOME\",\"outputsPlugins\":\"$GITHUB_WORKSPACE/builds\"}" > ~/config.json
11 changes: 5 additions & 6 deletions build.sh
100644 → 100755
Original file line number Diff line number Diff line change
@@ -1,11 +1,10 @@
#/bin/sh
#!/bin/sh
# POSIX Shell script to build plugin, push it to device, and reopen discord via adb.
set -e
old_dir=$PWD
trap "cd '$PWD'" EXIT
set -ex
cd ../buildtool
./main -p $1
./main -p "$1"
cd ./buildsPlugins
adb push ./${1}.apk /storage/emulated/0/Aliucord/plugins
adb push "./${1}.apk" /storage/emulated/0/Aliucord/plugins
adb shell am force-stop com.aliucord
adb shell monkey -p com.aliucord -c android.intent.category.LAUNCHER 1
cd $old_dir

0 comments on commit f1979c7

Please sign in to comment.