magiatranslate-client/ci_check_for_update.sh
segfault-bilibili 2e4f815732
Automatic build with GitHub Actions (#5)
* extract armv7 lib; make build.bat immune to spaced path

* update submodules

1.update dobby to latest:
original commit hash: b0176de574104726bb68dff3b77ee666300fc338
plus compilation error fix

2.update untp to include plistlib fix

* fix build errors

1. define RS_SUCCESS in MagiaClient.cpp,
which was deleted in Dobby f4643b8d14d7cc94516b446ca77d952d0b986d50

2. fix dobby not being statically linked

* terminate build script on error

let build.sh exit on error
let build.bat fail if signing fails

* sign_example.bat: use zipalign and apksigner

* upgrade to apktool 2.7.0; check hash of apktool

* handle fake python3

* control whether to include audiofix

* build.bat: go back to base dir on exit

* update readme

* update suggested ndk path

* build and release with GitHub Actions

* avoid unnecessary rebuild

* remove nodejs dependency

fix Dobby so that we can implement audiofix in MagiaHook again

* automatic build

* update apktool to 2.8.1

* fix max method number exceeded
2023-08-10 20:11:14 +01:00

18 lines
671 B
Bash
Executable file

#!/bin/bash
set -e
set -o pipefail
UA="Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/114.0.0.0 Safari/537.36"
CHECKSUM_URL="https://jp.rika.ren/apk/Origin/checksum.txt"
. ci_versions/src_apk.sh
LATEST_SRCAPK_VER=$(curl -s -A "${UA}" -L "${CHECKSUM_URL}" | grep -E -i "^Version\s+name:\s+" | tail -n1 | grep -P -o "(\\d+\\.)+\\d+$")
if echo "${SRCAPK_VER}" | grep -q -P "^(\\d+\\.)+\\d+$" && echo "${LATEST_SRCAPK_VER}" | grep -q -P "^(\\d+\\.)+\\d+$"; then
if [[ "${SRCAPK_VER}" != "${LATEST_SRCAPK_VER}" ]]; then
echo "latest-src-apk-ver=${LATEST_SRCAPK_VER}"
echo "new-version-available=true"
fi
fi