Fixed first issue, added release script

This commit is contained in:
2026-02-23 15:19:15 +01:00
parent b03d9bf998
commit 4d00936719
16 changed files with 142 additions and 38 deletions

29
release.sh Executable file
View File

@@ -0,0 +1,29 @@
# get the varaibles from PKGBUILD
source ./PKGBUILD
# assets to pack in the tar ball
ASSETS=(
"source/"
"modules/"
"assets/"
"frontend/build/"
"shadowrun-server.service"
"CMakeLists.txt"
"shadowrun-server.install"
)
# create the tar ball
tar czf ${pkgname}-${pkgver}.tar.gz "${ASSETS[@]}"
# create the package
makepkg -f
# create the release directory and store all files there
RELEASE_DIR="release-${pkgver}/"
mkdir -p ${RELEASE_DIR}
mv ${pkgname}-${pkgver}.tar.gz ${RELEASE_DIR}
mv ${pkgname}-${pkgver}-1-x86_64.pkg.tar.zst ${RELEASE_DIR}
mv ${pkgname}-debug-${pkgver}-1-x86_64.pkg.tar.zst ${RELEASE_DIR}
mv src/ ${RELEASE_DIR}
#scp ${RELEASE_DIR}${pkgname}-${pkgver}-1-x86_64.pkg.tar.zst lukas@192.168.1.101:/home/lukas/Drive/archrepo/x86_64/