mirror of
https://github.com/yuezk/GlobalProtect-openconnect.git
synced 2025-04-02 18:31:50 -04:00
* add inih * add configuration file for gpservice * Disable the UI configuration for extra args * remove VERSION_SUFFIX * remove ppa-publish.sh * Use Git repo as the source for PKGBUILD * remove VERSION_SUFFIX * Use Git repo as the source for PKGBUILD * add .install for PKGBUILD * add configuration file * Fix cmake * Fix cmake * Disable snap job * update AUR packaging * Disable the UI configuration for extra args * improve packaging script * update README.md * restart gpservice after package upgrading
26 lines
793 B
Bash
Executable File
26 lines
793 B
Bash
Executable File
#!/bin/bash -e
|
|
|
|
VERSION="$(cat VERSION)"
|
|
|
|
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/PKGBUILD
|
|
cp ./packaging/aur/gp.install ./artifacts/aur/gp.install
|
|
|
|
# Prepare the flatpak package
|
|
cp ./packaging/flatpak/com.yuezk.qt.gpclient.yml ./artifacts/flatpak
|
|
cp ./artifacts/*.tar.gz ./artifacts/flatpak/globalprotect-openconnect.tar.gz |