Skip to content

Commit

Permalink
Final FINAL package script update
Browse files Browse the repository at this point in the history
  • Loading branch information
xchellx committed Dec 17, 2024
1 parent 9a296d2 commit 598dbad
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion package.sh
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,9 @@ if [ -d "$dp0/build" ] ; then
cp -f -R "$dp0/licenses/." "$dp0/build/package/txtrtool/licenses"
cp -f -R "$dp0/extern/gxtexture_base/licenses/." "$dp0/build/package/txtrtool/licenses"
VERSION="$(git describe --exact-match --tags 2> /dev/null)"
[ -z "${VERSION}" ] && [ -z "$(git status --porcelain 2> /dev/null)" ] && VERSION="$(git rev-parse --short HEAD 2> /dev/null)" || VERSION="$(git rev-parse --short HEAD 2> /dev/null)-dirty"
if [ -z "${VERSION}" ] ; then
[ -z "$(git status --porcelain 2> /dev/null)" ] && VERSION="$(git rev-parse --short HEAD 2> /dev/null)" || VERSION="$(git rev-parse --short HEAD 2> /dev/null)-dirty"
fi
[ -z "${VERSION}" ] && VERSION="unknown"
7za a -ssw -t7z -mx=9 -myx=9 -ms=off -mmt=16 -mmtf=on -mtm=off -mtc=off -mta=off -m0=LZMA2:d=256m:mf=bt4:lc=4:fb=256 "$dp0/build/txtrtool_${VERSION}_msys2-clang64_win-x64.7z" "$dp0/build/package/txtrtool/"
return 0 2>/dev/null
Expand Down

0 comments on commit 598dbad

Please sign in to comment.