mirror of
https://github.com/arsvendg/Stirling-PDF.git
synced 2026-07-16 19:33:11 +02:00
Optimise Tauri builds (#5404)
# Description of Changes - Just build proper installers in CI for each platform - Provide commands to build just the bundled apps without the need for installers locally - `tauri-dev` - Builds quickly for an unoptimised version of the app - `tauri-build` - Builds the full optimised app installer for release - `tauri-build-dev` - Builds an optimised app with no bundling (builds to a folder on Mac; raw `.exe` on Windows; etc.) - `tauri-build-dev-mac` - Builds an optimised bundled Mac app with no installer (as an `.app` file) - `tauri-build-dev-windows` - Builds an optimised bundled Windows app as an `.nsis` installer - `tauri-build-dev-linux` - Builds an optimised bundled Linux app as an `.appimage`
This commit is contained in:
@@ -507,7 +507,6 @@ jobs:
|
|||||||
find . -name "*.msi" -exec cp {} "../../../dist/Stirling-PDF-${{ matrix.name }}.msi" \;
|
find . -name "*.msi" -exec cp {} "../../../dist/Stirling-PDF-${{ matrix.name }}.msi" \;
|
||||||
elif [ "${{ matrix.platform }}" = "macos-15" ] || [ "${{ matrix.platform }}" = "macos-15-intel" ]; then
|
elif [ "${{ matrix.platform }}" = "macos-15" ] || [ "${{ matrix.platform }}" = "macos-15-intel" ]; then
|
||||||
find . -name "*.dmg" -exec cp {} "../../../dist/Stirling-PDF-${{ matrix.name }}.dmg" \;
|
find . -name "*.dmg" -exec cp {} "../../../dist/Stirling-PDF-${{ matrix.name }}.dmg" \;
|
||||||
find . -name "*.app" -exec cp -r {} "../../../dist/Stirling-PDF-${{ matrix.name }}.app" \;
|
|
||||||
else
|
else
|
||||||
find . -name "*.deb" -exec cp {} "../../../dist/Stirling-PDF-${{ matrix.name }}.deb" \;
|
find . -name "*.deb" -exec cp {} "../../../dist/Stirling-PDF-${{ matrix.name }}.deb" \;
|
||||||
find . -name "*.AppImage" -exec cp {} "../../../dist/Stirling-PDF-${{ matrix.name }}.AppImage" \;
|
find . -name "*.AppImage" -exec cp {} "../../../dist/Stirling-PDF-${{ matrix.name }}.AppImage" \;
|
||||||
@@ -595,8 +594,8 @@ jobs:
|
|||||||
fi
|
fi
|
||||||
elif [ "${{ matrix.platform }}" = "macos-15" ] || [ "${{ matrix.platform }}" = "macos-15-intel" ]; then
|
elif [ "${{ matrix.platform }}" = "macos-15" ] || [ "${{ matrix.platform }}" = "macos-15-intel" ]; then
|
||||||
echo "Checking for macOS artifacts..."
|
echo "Checking for macOS artifacts..."
|
||||||
find . -name "*.dmg" -o -name "*.app" | head -5
|
find . -name "*.dmg" | head -5
|
||||||
if [ $(find . -name "*.dmg" -o -name "*.app" | wc -l) -eq 0 ]; then
|
if [ $(find . -name "*.dmg" | wc -l) -eq 0 ]; then
|
||||||
echo "❌ No macOS artifacts found"
|
echo "❌ No macOS artifacts found"
|
||||||
exit 1
|
exit 1
|
||||||
fi
|
fi
|
||||||
|
|||||||
@@ -77,6 +77,10 @@
|
|||||||
"preview": "vite preview",
|
"preview": "vite preview",
|
||||||
"tauri-dev": "tauri dev --no-watch",
|
"tauri-dev": "tauri dev --no-watch",
|
||||||
"tauri-build": "tauri build",
|
"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",
|
"tauri-clean": "cd src-tauri && cargo clean && cd .. && rm -rf dist build",
|
||||||
"typecheck": "npm run typecheck:proprietary",
|
"typecheck": "npm run typecheck:proprietary",
|
||||||
"typecheck:core": "tsc --noEmit --project tsconfig.core.json",
|
"typecheck:core": "tsc --noEmit --project tsconfig.core.json",
|
||||||
|
|||||||
@@ -26,7 +26,6 @@
|
|||||||
"deb",
|
"deb",
|
||||||
"rpm",
|
"rpm",
|
||||||
"dmg",
|
"dmg",
|
||||||
"app",
|
|
||||||
"msi"
|
"msi"
|
||||||
],
|
],
|
||||||
"icon": [
|
"icon": [
|
||||||
|
|||||||
Reference in New Issue
Block a user