Changed Build Script for CI

This commit is contained in:
Phil 2024-10-06 00:12:34 +02:00
parent 19d963d6eb
commit a450dd97b2
Signed by: Phil
GPG key ID: 350C8B7C4EF5DED4

View file

@ -19,14 +19,14 @@ mkdir -vp $(dirname "$0")/compiled
mv -v *.dat $(dirname "$0")/compiled mv -v *.dat $(dirname "$0")/compiled
rm *.lno rm *.lno
mkdir dist mkdir dist
if [[ -n "${DRONE_TAG}" ]] if [[ -n "${CI_COMMIT_TAG}" ]]
then then
echo "Making ready for Tag: ${DRONE_TAG}" echo "Making ready for Tag: ${CI_COMMIT_TAG}"
zip -9 dist/compiled-${DRONE_TAG}.zip compiled/csprogs.dat compiled/progs.dat compiled/menu.dat zip -9 dist/compiled-${CI_COMMIT_TAG}.zip compiled/csprogs.dat compiled/progs.dat compiled/menu.dat
elif [[ -n "${DRONE_COMMIT_SHA}" ]] elif [[ -n "${DRONE_COMMIT_SHA}" ]]
then then
echo "Making ready for Commit: ${DRONE_COMMIT_SHA:0:10}" echo "Making ready for Commit: ${CI_COMMIT_SHA:0:10}"
zip -9 dist/compiled-${DRONE_COMMIT_SHA:0:10}.zip compiled/csprogs.dat compiled/progs.dat compiled/menu.dat zip -9 dist/compiled-${CI_COMMIT_SHA:0:10}.zip compiled/csprogs.dat compiled/progs.dat compiled/menu.dat
else else
zip -9 dist/compiled.zip compiled/csprogs.dat compiled/progs.dat compiled/menu.dat zip -9 dist/compiled.zip compiled/csprogs.dat compiled/progs.dat compiled/menu.dat
fi fi