update packaging (#100)

This commit is contained in:
Kevin Yue
2021-10-24 12:11:54 +08:00
committed by GitHub
parent 36d9753008
commit 9e7fb17bd3
46 changed files with 823 additions and 1192 deletions

26
scripts/_archive-all.sh Executable file
View File

@@ -0,0 +1,26 @@
#!/bin/bash -e
VERSION=$(cat VERSION VERSION_SUFFIX)
rm -rf ./artifacts && mkdir -p ./artifacts/{obs,aur,flatpak}
# Add the version file
echo $VERSION > ./artifacts/VERSION
# Archive the source code
git-archive-all \
--force-submodules \
--prefix=globalprotect-openconnect-${VERSION}/ \
./artifacts/globalprotect-openconnect-${VERSION}.tar.gz
# Prepare the OBS package
cp -r ./packaging/obs ./artifacts
cp ./artifacts/*.tar.gz ./artifacts/obs/globalprotect-openconnect.tar.gz
# Prepare the AUR package
cp ./packaging/aur/PKGBUILD ./artifacts/aur
cp ./artifacts/*.tar.gz ./artifacts/aur/globalprotect-openconnect.tar.gz
# Prepare the flatpak package
cp ./packaging/flatpak/com.yuezk.qt.gpclient.yml ./artifacts/flatpak
cp ./artifacts/*.tar.gz ./artifacts/flatpak/globalprotect-openconnect.tar.gz