mirror of
https://github.com/yuezk/GlobalProtect-openconnect.git
synced 2025-05-20 07:26:58 -04:00
update packaging (#100)
This commit is contained in:
26
scripts/_archive-all.sh
Executable file
26
scripts/_archive-all.sh
Executable 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
|
Reference in New Issue
Block a user