mirror of
https://github.com/amnezia-vpn/amnezia-client.git
synced 2026-10-23 03:26:59 +09:00
* chore: add Android armv7/arm64-v8a build on Qt 6.10.1 * chore: split Qt 6.10.1/6.10.3 Android AAB by min/max SDK range * chore: bump version to 2141 * chore: drop upper SDK bound on Android 11+ AAB * fix: stage android package source snapshot after libxray.aar is copied in * chore: align Build-Android APK/AAB versionCode and naming to android11+ * chore: add x86/x86_64 APK builds to Qt 6.10.1 Android job * chore: simplify android deploy workflow * chore: add Qt 6.10.3 android9-10 APK build as fallback --------- Co-authored-by: vkamn <vk@amnezia.org>
50 lines
1.5 KiB
Bash
Executable File
50 lines
1.5 KiB
Bash
Executable File
#!/bin/bash
|
|
set -e
|
|
|
|
VERSION=$1
|
|
|
|
if [[ -z "$VERSION" ]]; then
|
|
echo '::error::VERSION does not set. Exiting with error...'
|
|
exit 1
|
|
fi
|
|
|
|
mkdir -p dist
|
|
|
|
cd dist
|
|
|
|
echo $VERSION > VERSION
|
|
curl -s https://api.github.com/repos/amnezia-vpn/amnezia-client/releases/tags/$VERSION | jq -r .published_at > RELEASE_DATE
|
|
curl -s https://api.github.com/repos/amnezia-vpn/amnezia-client/releases/tags/$VERSION | jq -r .body | tr -d '\r' > CHANGELOG
|
|
curl -s https://api.github.com/repos/amnezia-vpn/amnezia-client/releases/tags/$VERSION | jq -r .published_at > RELEASE_DATE
|
|
|
|
if [[ $(cat CHANGELOG) = null ]]; then
|
|
echo '::error::Release does not exists. Exiting with error...'
|
|
exit 1
|
|
fi
|
|
|
|
# Download files with error handling
|
|
download_file() {
|
|
local url=$1
|
|
local filename=$(basename "$url")
|
|
echo "Downloading $filename..."
|
|
if ! wget -q "$url"; then
|
|
echo "::error::Failed to download $filename from $url"
|
|
exit 8
|
|
fi
|
|
echo "Successfully downloaded $filename"
|
|
}
|
|
|
|
download_file https://github.com/amnezia-vpn/amnezia-client/releases/download/${VERSION}/AmneziaVPN_${VERSION}_linux_x64.run
|
|
download_file https://github.com/amnezia-vpn/amnezia-client/releases/download/${VERSION}/AmneziaVPN_${VERSION}_macos_x64.pkg
|
|
download_file https://github.com/amnezia-vpn/amnezia-client/releases/download/${VERSION}/AmneziaVPN_${VERSION}_windows_x64.exe
|
|
|
|
cd ../
|
|
|
|
echo "Syncing to R2..."
|
|
if ! rclone sync ./dist/ r2:/updates/; then
|
|
echo "::error::Failed to sync files to R2"
|
|
exit 8
|
|
fi
|
|
|
|
echo "Deployment completed successfully!"
|