Better package.sh

This commit is contained in:
TheBrokenRail 2022-07-04 16:51:56 -04:00
parent b539491713
commit 4bd2fecfa2

View File

@ -4,6 +4,7 @@ set -e
# Prepare # Prepare
NAME='minecraft-pi-reborn' NAME='minecraft-pi-reborn'
BRANCH='master'
# Build # Build
./scripts/setup.sh "$1" "$2" -DMCPI_IS_APPIMAGE_BUILD=ON ./scripts/setup.sh "$1" "$2" -DMCPI_IS_APPIMAGE_BUILD=ON
@ -23,7 +24,7 @@ fi
# Package # Package
ARCH="${RUNTIME_ARCH}" appimagetool \ ARCH="${RUNTIME_ARCH}" appimagetool \
--updateinformation "zsync|https://jenkins.thebrokenrail.com/job/minecraft-pi-reborn/job/master/lastSuccessfulBuild/artifact/out/${NAME}-latest-$2.AppImage.zsync" \ --updateinformation "zsync|https://jenkins.thebrokenrail.com/job/minecraft-pi-reborn/job/${BRANCH}/lastSuccessfulBuild/artifact/out/${NAME}-latest-$2.AppImage.zsync" \
--runtime-file "build/appimage/runtime-$2" \ --runtime-file "build/appimage/runtime-$2" \
--comp xz \ --comp xz \
"./out/$1-$2" \ "./out/$1-$2" \