From 6b6476062941f7048994ff281abc42eb919bf114 Mon Sep 17 00:00:00 2001 From: Connor Yoh Date: Thu, 10 Jul 2025 18:11:31 +0100 Subject: [PATCH] Repack jar with manifest explicitly --- .github/workflows/tauri-test.yml | 12 ++++++++---- 1 file changed, 8 insertions(+), 4 deletions(-) diff --git a/.github/workflows/tauri-test.yml b/.github/workflows/tauri-test.yml index c1f43b2b7..1d31ec679 100644 --- a/.github/workflows/tauri-test.yml +++ b/.github/workflows/tauri-test.yml @@ -256,8 +256,12 @@ jobs: "$dylib_file" done - # Repackage the nested JAR - jar -cf "$OLDPWD/$nested_jar" * + # Repackage the nested JAR with preserved manifest + 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" rm -rf "$nested_temp_dir" done @@ -271,9 +275,9 @@ jobs: "$dylib_file" done - # Repackage the main JAR + # Repackage the main JAR with preserved manifest echo "📦 Repackaging main JAR..." - jar -cf "../$(basename "$MAIN_JAR")" * + jar -cfm "../$(basename "$MAIN_JAR")" META-INF/MANIFEST.MF * # Clean up cd ..