fix: Build error with custom tar.gz naming

This commit is contained in:
LukeGus
2025-10-25 01:44:24 -05:00
parent 47766cd2a1
commit 8df20774cf
2 changed files with 25 additions and 3 deletions

View File

@@ -146,6 +146,31 @@ jobs:
- name: Build Linux (All Architectures)
run: npm run build && npx electron-builder --linux --x64 --arm64 --armv7l
- name: Rename tar.gz files to match convention
run: |
VERSION=$(node -p "require('./package.json').version")
cd release
# Rename x64 tar.gz if it exists
if [ -f "termix-${VERSION}-x64.tar.gz" ]; then
mv "termix-${VERSION}-x64.tar.gz" "termix_linux_x64_${VERSION}_portable.tar.gz"
echo "Renamed x64 tar.gz"
fi
# Rename arm64 tar.gz if it exists
if [ -f "termix-${VERSION}-arm64.tar.gz" ]; then
mv "termix-${VERSION}-arm64.tar.gz" "termix_linux_arm64_${VERSION}_portable.tar.gz"
echo "Renamed arm64 tar.gz"
fi
# Rename armv7l tar.gz if it exists
if [ -f "termix-${VERSION}-armv7l.tar.gz" ]; then
mv "termix-${VERSION}-armv7l.tar.gz" "termix_linux_armv7l_${VERSION}_portable.tar.gz"
echo "Renamed armv7l tar.gz"
fi
cd ..
- name: List release files
run: |
echo "Contents of release directory:"