mirror of
https://github.com/Frooodle/Stirling-PDF.git
synced 2025-08-02 13:48:15 +02:00
Repack jar with manifest explicitly
This commit is contained in:
parent
9e47602408
commit
6b64760629
12
.github/workflows/tauri-test.yml
vendored
12
.github/workflows/tauri-test.yml
vendored
@ -256,8 +256,12 @@ jobs:
|
|||||||
"$dylib_file"
|
"$dylib_file"
|
||||||
done
|
done
|
||||||
|
|
||||||
# Repackage the nested JAR
|
# Repackage the nested JAR with preserved manifest
|
||||||
jar -cf "$OLDPWD/$nested_jar" *
|
if [ -f "META-INF/MANIFEST.MF" ]; then
|
||||||
|
jar -cfm "$OLDPWD/$nested_jar" META-INF/MANIFEST.MF *
|
||||||
|
else
|
||||||
|
jar -cf "$OLDPWD/$nested_jar" *
|
||||||
|
fi
|
||||||
cd "$OLDPWD"
|
cd "$OLDPWD"
|
||||||
rm -rf "$nested_temp_dir"
|
rm -rf "$nested_temp_dir"
|
||||||
done
|
done
|
||||||
@ -271,9 +275,9 @@ jobs:
|
|||||||
"$dylib_file"
|
"$dylib_file"
|
||||||
done
|
done
|
||||||
|
|
||||||
# Repackage the main JAR
|
# Repackage the main JAR with preserved manifest
|
||||||
echo "📦 Repackaging main JAR..."
|
echo "📦 Repackaging main JAR..."
|
||||||
jar -cf "../$(basename "$MAIN_JAR")" *
|
jar -cfm "../$(basename "$MAIN_JAR")" META-INF/MANIFEST.MF *
|
||||||
|
|
||||||
# Clean up
|
# Clean up
|
||||||
cd ..
|
cd ..
|
||||||
|
Loading…
Reference in New Issue
Block a user