feat(tauri): optimize Tauri build size (#2275)

Signed-off-by: GitHub <noreply@github.com>
This commit is contained in:
Fernando Fernández 2024-03-28 17:32:39 +01:00 committed by GitHub
parent e9e55b27f2
commit 72459d67af
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
5 changed files with 18 additions and 37 deletions

View File

@ -184,9 +184,7 @@ jobs:
with:
compression-level: 0
name: jellyfin-vue_linux-amd64
path: |
packaging/tauri/target/release/bundle/deb/*.deb
packaging/tauri/target/release/bundle/appimage_deb
path: packaging/tauri/target/release/bundle/appimage_deb
- name: Upload artifact (MacOS) ⬆️🍎
uses: actions/upload-artifact@v4.3.1
@ -194,9 +192,7 @@ jobs:
with:
compression-level: 0
name: jellyfin-vue_macOS
path: |
packaging/tauri/target/release/bundle/macos
packaging/tauri/target/release/bundle/dmg/*.dmg
path: packaging/tauri/target/release/bundle/macos
- name: Upload artifact (Windows) ⬆️🪟
uses: actions/upload-artifact@v4.3.1

View File

@ -114,9 +114,7 @@ jobs:
with:
compression-level: 0
name: jellyfin-vue_linux-amd64
path: |
packaging/tauri/target/release/bundle/deb/*.deb
packaging/tauri/target/release/bundle/appimage_deb
path: packaging/tauri/target/release/bundle/appimage_deb
- name: Upload artifact (MacOS) ⬆️🍎
uses: actions/upload-artifact@v4.3.1
@ -124,9 +122,7 @@ jobs:
with:
compression-level: 0
name: jellyfin-vue_macOS
path: |
packaging/tauri/target/release/bundle/macos
packaging/tauri/target/release/bundle/dmg/*.dmg
path: packaging/tauri/target/release/bundle/macos
- name: Upload artifact (Windows) ⬆️🪟
uses: actions/upload-artifact@v4.3.1

View File

@ -120,9 +120,7 @@ jobs:
with:
compression-level: 0
name: jellyfin-vue_linux-amd64
path: |
packaging/tauri/target/release/bundle/deb/*.deb
packaging/tauri/target/release/bundle/appimage_deb
path: packaging/tauri/target/release/bundle/appimage_deb
- name: Upload artifact (MacOS) ⬆️🍎
uses: actions/upload-artifact@v4.3.1
@ -130,9 +128,7 @@ jobs:
with:
compression-level: 0
name: jellyfin-vue_macOS
path: |
packaging/tauri/target/release/bundle/macos
packaging/tauri/target/release/bundle/dmg/*.dmg
path: packaging/tauri/target/release/bundle/macos
- name: Upload artifact (Windows) ⬆️🪟
uses: actions/upload-artifact@v4.3.1

View File

@ -22,3 +22,8 @@ tauri = { version = "=1.6.1", features = ["api-all"] }
[features]
default = ["custom-protocol"]
custom-protocol = ["tauri/custom-protocol"]
[profile.release]
strip = true
lto = true
opt-level = 3

View File

@ -6,35 +6,23 @@
"build": {
"distDir": "../../frontend/dist",
"devPath": "http://127.0.0.1:3000",
"beforeDevCommand": "cd ../../frontend && npm start",
"beforeBuildCommand": "cd ../../frontend && npm run build"
"beforeDevCommand": "npm start -w @jellyfin-vue/frontend",
"beforeBuildCommand": "npm run build -w @jellyfin-vue/frontend"
},
"tauri": {
"bundle": {
"active": true,
"targets": "all",
"targets": ["appimage", "msi", "app"],
"identifier": "org.jellyfin.vue.tauri",
"appimage": {
"bundleMediaFramework": true
},
"resources": [],
"externalBin": [],
"copyright": "",
"category": "Entertainment",
"shortDescription": "",
"longDescription": "",
"deb": {
"depends": []
},
"macOS": {
"frameworks": [],
"minimumSystemVersion": "",
"exceptionDomain": "",
"signingIdentity": null,
"entitlements": null
},
"windows": {
"certificateThumbprint": null,
"digestAlgorithm": "sha256",
"timestampUrl": ""
}
"longDescription": ""
},
"updater": {
"active": false