mirror of
https://github.com/Frooodle/Stirling-PDF.git
synced 2025-08-02 13:48:15 +02:00
Refine sign process
This commit is contained in:
parent
e694835883
commit
74494da39c
17
.github/workflows/tauri-test.yml
vendored
17
.github/workflows/tauri-test.yml
vendored
@ -276,9 +276,13 @@ jobs:
|
|||||||
fi
|
fi
|
||||||
done
|
done
|
||||||
|
|
||||||
# Repackage the nested JAR with signed .dylib files
|
# Repackage the nested JAR with signed .dylib files (preserve manifest)
|
||||||
echo "📦 Repacking $nested_jar with signed libraries..."
|
echo "📦 Repacking $nested_jar with signed libraries..."
|
||||||
jar -cf "$SIGNING_DIR/$nested_jar" -C . .
|
if [ -f "META-INF/MANIFEST.MF" ]; then
|
||||||
|
jar -cfm "$SIGNING_DIR/$nested_jar" META-INF/MANIFEST.MF -C . .
|
||||||
|
else
|
||||||
|
jar -cf "$SIGNING_DIR/$nested_jar" -C . .
|
||||||
|
fi
|
||||||
|
|
||||||
# Clean up
|
# Clean up
|
||||||
cd "$SIGNING_DIR"
|
cd "$SIGNING_DIR"
|
||||||
@ -290,8 +294,8 @@ jobs:
|
|||||||
echo "ℹ️ No BOOT-INF/lib structure found"
|
echo "ℹ️ No BOOT-INF/lib structure found"
|
||||||
fi
|
fi
|
||||||
|
|
||||||
# Also check for .dylib files directly in the main JAR
|
# Also check for .dylib files directly in the main JAR (already extracted)
|
||||||
MAIN_DYLIBS=$(jar -tf "../$MAIN_JAR" | grep '\.dylib$' || true)
|
MAIN_DYLIBS=$(find . -name "*.dylib" -not -path "./BOOT-INF/lib/*" || true)
|
||||||
if [ -n "$MAIN_DYLIBS" ]; then
|
if [ -n "$MAIN_DYLIBS" ]; then
|
||||||
echo "📦 Found .dylib files directly in main JAR:"
|
echo "📦 Found .dylib files directly in main JAR:"
|
||||||
echo "$MAIN_DYLIBS"
|
echo "$MAIN_DYLIBS"
|
||||||
@ -303,16 +307,13 @@ jobs:
|
|||||||
--sign "$CERT_ID" \
|
--sign "$CERT_ID" \
|
||||||
"$dylib_path"
|
"$dylib_path"
|
||||||
echo "✅ Signed: $dylib_path"
|
echo "✅ Signed: $dylib_path"
|
||||||
DYLIB_COUNT=$((DYLIB_COUNT + 1))
|
|
||||||
fi
|
fi
|
||||||
done
|
done
|
||||||
fi
|
fi
|
||||||
|
|
||||||
# Repackage the main JAR preserving Spring Boot structure
|
# Repackage the main JAR preserving Spring Boot structure
|
||||||
echo "📦 Repacking main JAR with Spring Boot structure preserved..."
|
echo "📦 Repacking main JAR with Spring Boot structure preserved..."
|
||||||
# First, extract and preserve the original manifest
|
# The manifest is already extracted in the current directory, use it directly
|
||||||
jar -xf "../$MAIN_JAR" META-INF/MANIFEST.MF
|
|
||||||
# Create new JAR with explicit manifest preservation
|
|
||||||
jar -cfm "../$MAIN_JAR.new" META-INF/MANIFEST.MF -C . .
|
jar -cfm "../$MAIN_JAR.new" META-INF/MANIFEST.MF -C . .
|
||||||
cd ..
|
cd ..
|
||||||
mv "$MAIN_JAR.new" "$MAIN_JAR"
|
mv "$MAIN_JAR.new" "$MAIN_JAR"
|
||||||
|
Loading…
Reference in New Issue
Block a user