Fixed first issue, added release script
This commit is contained in:
29
release.sh
Executable file
29
release.sh
Executable 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/
|
||||
Reference in New Issue
Block a user