diff --git a/src-tauri/capabilities/DevJson.json b/src-tauri/capabilities/DevJson.json index 36f1880f..2650efa1 100644 --- a/src-tauri/capabilities/DevJson.json +++ b/src-tauri/capabilities/DevJson.json @@ -37,5 +37,5 @@ ] } ], - "platforms": ["windows", "macOS"] + "platforms": ["windows", "macOS", "linux"] } diff --git a/src-tauri/capabilities/Mys.json b/src-tauri/capabilities/Mys.json index 419b75de..3c3523d9 100644 --- a/src-tauri/capabilities/Mys.json +++ b/src-tauri/capabilities/Mys.json @@ -34,5 +34,5 @@ "remote": { "urls": ["https://*.mihoyo.com/*", "https://*.miyoushe.com/*", "https://*.genshinnet.com/*"] }, - "platforms": ["windows", "macOS"] + "platforms": ["windows", "macOS", "linux"] } diff --git a/src-tauri/capabilities/SubWindow.json b/src-tauri/capabilities/SubWindow.json index c61dcf27..9b7b18c8 100644 --- a/src-tauri/capabilities/SubWindow.json +++ b/src-tauri/capabilities/SubWindow.json @@ -54,5 +54,5 @@ ] } ], - "platforms": ["windows", "macOS"] + "platforms": ["windows", "macOS", "linux"] } diff --git a/src-tauri/capabilities/Teyvat.Guide.json b/src-tauri/capabilities/Teyvat.Guide.json index 527b1fa7..c2a771b3 100644 --- a/src-tauri/capabilities/Teyvat.Guide.json +++ b/src-tauri/capabilities/Teyvat.Guide.json @@ -61,5 +61,5 @@ ] } ], - "platforms": ["windows", "macOS"] + "platforms": ["linux"] } diff --git a/src-tauri/tauri.conf.json b/src-tauri/tauri.conf.json index 142ba914..ddbf1cb0 100644 --- a/src-tauri/tauri.conf.json +++ b/src-tauri/tauri.conf.json @@ -27,10 +27,7 @@ "icons/Square150x150Logo.png", "icons/Square284x284Logo.png", "icons/Square310x310Logo.png" - ], - "targets": ["msi", "app", "dmg"], - "windows": { "wix": { "language": "zh-CN" } }, - "macOS": {} + ] }, "app": { "withGlobalTauri": true, diff --git a/src-tauri/tauri.macos.conf.json b/src-tauri/tauri.macos.conf.json new file mode 100644 index 00000000..5fe5c109 --- /dev/null +++ b/src-tauri/tauri.macos.conf.json @@ -0,0 +1,7 @@ +{ + "$schema": "https://schema.tauri.app/config/2", + "bundle": { + "targets": ["app", "dmg"], + "macOs": {} + } +} diff --git a/src-tauri/tauri.windows.conf.json b/src-tauri/tauri.windows.conf.json index 9e155081..4d99efc2 100644 --- a/src-tauri/tauri.windows.conf.json +++ b/src-tauri/tauri.windows.conf.json @@ -1,6 +1,8 @@ { "$schema": "https://schema.tauri.app/config/2", "bundle": { - "resources": { "lib/YaeAchievementLib.dll": "resources/YaeAchievementLib.dll" } + "resources": { "lib/YaeAchievementLib.dll": "resources/YaeAchievementLib.dll" }, + "targets": ["msi"], + "windows": { "wix": { "language": "zh-CN" } } } }