Add scripts that add Java dependency to deb and rpm files, and fix names on build

Co-authored-by: Mahor <73415437+mahor1221@users.noreply.github.com>
This commit is contained in:
Syer10
2022-01-18 18:33:04 -05:00
parent 7cfc6a6853
commit e5e2491f05
5 changed files with 80 additions and 0 deletions

21
scripts/NamingFix.sh Normal file
View File

@@ -0,0 +1,21 @@
#!/bin/bash
msi="$(find ./build/compose/binaries/main/msi/*.msi 2>/dev/null)"
if [ -f "$msi" ]; then
dir="$(dirname "$msi")"
version=$(tmp="${msi%.*}" && echo "${tmp##*-}")
if [ "$(basename "$msi")" != "Tachidesk-JUI-windows-x64-$version.msi" ]; then
mv "$msi" "$dir/Tachidesk-JUI-windows-x64-$version.msi"
fi
fi
dmg="$(find ./build/compose/binaries/main/dmg/*.dmg 2>/dev/null)"
if [ -f "$dmg" ]; then
dir="$(dirname "$dmg")"
version=$(tmp="${dmg%.*}" && echo "${tmp##*-}")
if [ "$(basename "$dmg")" != "Tachidesk-JUI-macos-x64-$version.dmg" ]; then
mv "$dmg" "$dir/Tachidesk-JUI-macos-x64-$version.dmg"
fi
fi