mirror of
https://github.com/Suwayomi/TachideskJUI.git
synced 2025-12-10 06:42:05 +01:00
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:
21
scripts/NamingFix.sh
Normal file
21
scripts/NamingFix.sh
Normal 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
|
||||
Reference in New Issue
Block a user