Skip to content

#1 PDF Application on GitHub that lets you edit PDFs on any device anywhere

Optimise Tauri builds (#5404)

James Bruntonb4dd7afe03cc
diff --git a/.github/workflows/tauri-build.yml b/.github/workflows/tauri-build.yml
index dea68a60b8..b8a899c9b3 100644
--- a/.github/workflows/tauri-build.yml
+++ b/.github/workflows/tauri-build.yml
@@ -507,7 +507,6 @@ jobs:
find . -name "*.msi" -exec cp {} "../../../dist/Stirling-PDF-${{ matrix.name }}.msi" \;
elif [ "${{ matrix.platform }}" = "macos-15" ] || [ "${{ matrix.platform }}" = "macos-15-intel" ]; then
find . -name "*.dmg" -exec cp {} "../../../dist/Stirling-PDF-${{ matrix.name }}.dmg" \;
- find . -name "*.app" -exec cp -r {} "../../../dist/Stirling-PDF-${{ matrix.name }}.app" \;
else
find . -name "*.deb" -exec cp {} "../../../dist/Stirling-PDF-${{ matrix.name }}.deb" \;
find . -name "*.AppImage" -exec cp {} "../../../dist/Stirling-PDF-${{ matrix.name }}.AppImage" \;
@@ -595,8 +594,8 @@ jobs:
fi
elif [ "${{ matrix.platform }}" = "macos-15" ] || [ "${{ matrix.platform }}" = "macos-15-intel" ]; then
echo "Checking for macOS artifacts..."
- find . -name "*.dmg" -o -name "*.app" | head -5
- if [ $(find . -name "*.dmg" -o -name "*.app" | wc -l) -eq 0 ]; then
+ find . -name "*.dmg" | head -5
+ if [ $(find . -name "*.dmg" | wc -l) -eq 0 ]; then
echo "❌ No macOS artifacts found"
exit 1
fi
diff --git a/frontend/package.json b/frontend/package.json
index 5db9a0b847..788f8eb814 100644
--- a/frontend/package.json
+++ b/frontend/package.json
@@ -77,6 +77,10 @@
"preview": "vite preview",
"tauri-dev": "tauri dev --no-watch",
"tauri-build": "tauri build",
+ "tauri-build-dev": "tauri build --no-bundle",
+ "tauri-build-dev-mac": "tauri build --bundles app",
+ "tauri-build-dev-windows": "tauri build --bundles nsis",
+ "tauri-build-dev-linux": "tauri build --bundles appimage",
"tauri-clean": "cd src-tauri && cargo clean && cd .. && rm -rf dist build",
"typecheck": "npm run typecheck:proprietary",
"typecheck:core": "tsc --noEmit --project tsconfig.core.json",
diff --git a/frontend/src-tauri/tauri.conf.json b/frontend/src-tauri/tauri.conf.json
index e08c53004c..853ae3eabf 100644
--- a/frontend/src-tauri/tauri.conf.json
+++ b/frontend/src-tauri/tauri.conf.json
@@ -26,7 +26,6 @@
"deb",
"rpm",
"dmg",
- "app",
"msi"
],
"icon": [