Skip to content

Commit

Permalink
update binary
Browse files Browse the repository at this point in the history
  • Loading branch information
arm64v8a committed Aug 15, 2022
1 parent 5e27f82 commit 784d537
Show file tree
Hide file tree
Showing 5 changed files with 17 additions and 57 deletions.
50 changes: 0 additions & 50 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,9 +8,6 @@ on:
plugin:
description: 'Plugin to build'
required: true
upload:
description: 'Upload: If want ignore'
required: false
publish:
description: 'Publish: If want ignore'
required: false
Expand Down Expand Up @@ -38,22 +35,6 @@ jobs:
with:
name: APKs
path: ${{ env.APK }}
- uses: actions/upload-artifact@v2
with:
name: "SHA256-ARM ${{ env.SHA256_ARM }}"
path: ${{ env.SUM_ARM }}
- uses: actions/upload-artifact@v2
with:
name: "SHA256-ARM64 ${{ env.SHA256_ARM64 }}"
path: ${{ env.SUM_ARM64 }}
- uses: actions/upload-artifact@v2
with:
name: "SHA256-X64 ${{ env.SHA256_X64 }}"
path: ${{ env.SUM_X64 }}
- uses: actions/upload-artifact@v2
with:
name: "SHA256-X86 ${{ env.SHA256_X86 }}"
path: ${{ env.SUM_X86 }}
publish:
name: Publish Release
if: github.event.inputs.publish != 'y'
Expand All @@ -74,35 +55,4 @@ jobs:
mv ghr*linux_amd64/ghr .
mkdir apks
find artifacts -name "*.apk" -exec cp {} apks \;
find artifacts -name "*.sha256sum.txt" -exec cp {} apks \;
./ghr -delete -t "${{ github.token }}" -n "${{ github.event.inputs.tag }}" "${{ github.event.inputs.tag }}" apks
upload:
name: Upload Release
if: github.event.inputs.upload != 'y'
runs-on: ubuntu-latest
needs: build
steps:
- name: Donwload Artifacts
uses: actions/download-artifact@v2
with:
name: APKs
path: artifacts
- name: Release
run: |
mkdir apks
find artifacts -name "*.apk" -exec cp {} apks \;
function upload() {
for apk in $@; do
echo ">> Uploading $apk"
curl https://api.telegram.org/bot${{ secrets.TELEGRAM_TOKEN }}/sendDocument \
-X POST \
-F chat_id="${{ secrets.TELEGRAM_CHANNEL }}" \
-F document="@$apk" \
--silent --show-error --fail >/dev/null &
done
for job in $(jobs -p); do
wait $job || exit 1
done
}
upload apks/*
4 changes: 2 additions & 2 deletions app_brook/build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ setupAll()
android {
defaultConfig {
applicationId = "moe.matsuri.plugin.brook"
versionCode = 1
versionName = "v20220406-1"
versionCode = 2
versionName = "v20220707-1"
}
}
2 changes: 1 addition & 1 deletion app_hysteria/build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,6 @@ android {
defaultConfig {
applicationId = "moe.matsuri.exe.hysteria"
versionCode = 1
versionName = "1.1.0-1"
versionName = "1.2.0-1"
}
}
4 changes: 2 additions & 2 deletions app_xray/build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ setupAll()
android {
defaultConfig {
applicationId = "moe.matsuri.plugin.xray"
versionCode = 6
versionName = "v1.5.8-2"
versionCode = 7
versionName = "v1.5.9-1"
}
}
14 changes: 12 additions & 2 deletions download.sh
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ unzip_xray() {
}

download_xray() {
VERSION="v1.5.8"
VERSION="v1.5.9"
mkdir_libs "app_xray/libs"

curl -Lso xray.zip "https://github.com/XTLS/Xray-core/releases/download/$VERSION/Xray-android-arm64-v8a.zip"
Expand All @@ -33,7 +33,7 @@ dl_and_chmod() {
}

download_brook() {
VERSION="v20220406"
VERSION="v20220707"
mkdir_libs "app_brook/libs"

dl_and_chmod arm64-v8a/libbrook.so "https://github.com/txthinking/brook/releases/download/$VERSION/brook_linux_arm64"
Expand All @@ -42,4 +42,14 @@ download_brook() {
dl_and_chmod x86_64/libbrook.so "https://github.com/txthinking/brook/releases/download/$VERSION/brook_linux_amd64"
}

download_hysteria() {
VERSION="v1.2.0-1"
mkdir_libs "app_hysteria/libs"

dl_and_chmod arm64-v8a/libhysteria.so "https://github.com/MatsuriDayo/hysteria/releases/download/$VERSION/hysteria-linux-arm64"
dl_and_chmod armeabi-v7a/libhysteria.so "https://github.com/MatsuriDayo/hysteria/releases/download/$VERSION/hysteria-linux-arm"
dl_and_chmod x86/libhysteria.so "https://github.com/MatsuriDayo/hysteria/releases/download/$VERSION/hysteria-linux-386"
dl_and_chmod x86_64/libhysteria.so "https://github.com/MatsuriDayo/hysteria/releases/download/$VERSION/hysteria-linux-amd64"
}

download_"$1"

0 comments on commit 784d537

Please sign in to comment.