Repack with boot structure

This commit is contained in:
Connor Yoh 2025-07-10 19:58:45 +01:00
parent 17ecdeb675
commit 5705c2675b

View File

@ -325,12 +325,31 @@ jobs:
# Repackage the main JAR preserving Spring Boot structure
echo "📦 Repackaging main JAR with preserved structure..."
jar -cfm "../$MAIN_JAR" META-INF/MANIFEST.MF *
# Create new JAR with exact same structure as original
jar -cf "../$MAIN_JAR.new" -C . .
# Replace original with new one
mv "../$MAIN_JAR.new" "../$MAIN_JAR"
# Clean up
cd ..
rm -rf jar_signing_temp
# Validate the repacked JAR
echo "🔍 Validating repacked JAR..."
if jar -tf "$MAIN_JAR" | grep -q "BOOT-INF/lib"; then
echo "✅ Spring Boot structure preserved"
else
echo "❌ Spring Boot structure missing!"
exit 1
fi
if jar -tf "$MAIN_JAR" | grep -q "META-INF/MANIFEST.MF"; then
echo "✅ Manifest preserved"
else
echo "❌ Manifest missing!"
exit 1
fi
echo "✅ JAR and all nested native libraries signed successfully."
- name: Build Tauri app
uses: tauri-apps/tauri-action@v0