mirror of
https://github.com/Frooodle/Stirling-PDF.git
synced 2025-08-06 13:48:58 +02:00
absolute jar paths
This commit is contained in:
parent
74494da39c
commit
fe1f283dd5
15
.github/workflows/tauri-test.yml
vendored
15
.github/workflows/tauri-test.yml
vendored
@ -112,7 +112,7 @@ jobs:
|
|||||||
run: |
|
run: |
|
||||||
chmod +x ./gradlew
|
chmod +x ./gradlew
|
||||||
echo "🔧 Building Stirling-PDF JAR..."
|
echo "🔧 Building Stirling-PDF JAR..."
|
||||||
./gradlew clean bootJar --no-daemon
|
STIRLING_PDF_DESKTOP_UI=false ./gradlew clean bootJar --no-daemon
|
||||||
|
|
||||||
# Find the built JAR
|
# Find the built JAR
|
||||||
STIRLING_JAR=$(ls stirling-pdf/build/libs/stirling-pdf-*.jar | head -n 1)
|
STIRLING_JAR=$(ls stirling-pdf/build/libs/stirling-pdf-*.jar | head -n 1)
|
||||||
@ -226,9 +226,10 @@ jobs:
|
|||||||
echo "🔐 Signing JAR and all nested native libraries..."
|
echo "🔐 Signing JAR and all nested native libraries..."
|
||||||
cd ./frontend/src-tauri/libs
|
cd ./frontend/src-tauri/libs
|
||||||
|
|
||||||
# Get the main JAR
|
# Get the main JAR with absolute path
|
||||||
MAIN_JAR=$(ls stirling-pdf*.jar | head -n 1)
|
MAIN_JAR=$(ls stirling-pdf*.jar | head -n 1)
|
||||||
echo "📦 Processing main JAR: $MAIN_JAR"
|
MAIN_JAR_PATH=$(realpath "$MAIN_JAR")
|
||||||
|
echo "📦 Processing main JAR: $MAIN_JAR_PATH"
|
||||||
|
|
||||||
# Create a backup
|
# Create a backup
|
||||||
cp "$MAIN_JAR" "${MAIN_JAR}.backup"
|
cp "$MAIN_JAR" "${MAIN_JAR}.backup"
|
||||||
@ -240,7 +241,7 @@ jobs:
|
|||||||
# Extract the main JAR to access nested JARs
|
# Extract the main JAR to access nested JARs
|
||||||
echo "📦 Extracting main JAR to scan nested JARs..."
|
echo "📦 Extracting main JAR to scan nested JARs..."
|
||||||
cd "$SIGNING_DIR"
|
cd "$SIGNING_DIR"
|
||||||
jar -xf "../$MAIN_JAR"
|
jar -xf "$MAIN_JAR_PATH"
|
||||||
|
|
||||||
# Find .dylib files in nested JARs within BOOT-INF/lib/
|
# Find .dylib files in nested JARs within BOOT-INF/lib/
|
||||||
echo "🔍 Scanning for .dylib files in nested JARs..."
|
echo "🔍 Scanning for .dylib files in nested JARs..."
|
||||||
@ -314,9 +315,9 @@ jobs:
|
|||||||
# 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..."
|
||||||
# The manifest is already extracted in the current directory, use it directly
|
# The manifest is already extracted in the current directory, use it directly
|
||||||
jar -cfm "../$MAIN_JAR.new" META-INF/MANIFEST.MF -C . .
|
jar -cfm "$MAIN_JAR_PATH.new" META-INF/MANIFEST.MF -C . .
|
||||||
cd ..
|
cd $(dirname "$MAIN_JAR_PATH")
|
||||||
mv "$MAIN_JAR.new" "$MAIN_JAR"
|
mv "$MAIN_JAR_PATH.new" "$MAIN_JAR_PATH"
|
||||||
|
|
||||||
echo "✅ Processed and signed native libraries in JAR"
|
echo "✅ Processed and signed native libraries in JAR"
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user