mirror of
https://github.com/clash-verge-rev/clash-verge-rev
synced 2025-05-05 04:53:44 +08:00
chore: Use Nsis
This commit is contained in:
parent
2cf52f15ab
commit
9106055be1
@ -54,39 +54,23 @@ async function resolveUpdater() {
|
|||||||
const { name, browser_download_url } = asset;
|
const { name, browser_download_url } = asset;
|
||||||
|
|
||||||
// win64 url
|
// win64 url
|
||||||
if (
|
if (name.endsWith("x64-setup.nsis.zip")) {
|
||||||
name.endsWith(".msi.zip") &&
|
|
||||||
name.includes("en-US") &&
|
|
||||||
name.includes("x64")
|
|
||||||
) {
|
|
||||||
updateData.platforms.win64.url = browser_download_url;
|
updateData.platforms.win64.url = browser_download_url;
|
||||||
updateData.platforms["windows-x86_64"].url = browser_download_url;
|
updateData.platforms["windows-x86_64"].url = browser_download_url;
|
||||||
}
|
}
|
||||||
// win64 signature
|
// win64 signature
|
||||||
if (
|
if (name.endsWith("x64-setup.nsis.zip.sig")) {
|
||||||
name.endsWith(".msi.zip.sig") &&
|
|
||||||
name.includes("en-US") &&
|
|
||||||
name.includes("x64")
|
|
||||||
) {
|
|
||||||
const sig = await getSignature(browser_download_url);
|
const sig = await getSignature(browser_download_url);
|
||||||
updateData.platforms.win64.signature = sig;
|
updateData.platforms.win64.signature = sig;
|
||||||
updateData.platforms["windows-x86_64"].signature = sig;
|
updateData.platforms["windows-x86_64"].signature = sig;
|
||||||
}
|
}
|
||||||
|
|
||||||
// win32 url
|
// win32 url
|
||||||
if (
|
if (name.endsWith("x86-setup.nsis.zip")) {
|
||||||
name.endsWith(".msi.zip") &&
|
|
||||||
name.includes("en-US") &&
|
|
||||||
name.includes("x86")
|
|
||||||
) {
|
|
||||||
updateData.platforms["windows-i686"].url = browser_download_url;
|
updateData.platforms["windows-i686"].url = browser_download_url;
|
||||||
}
|
}
|
||||||
// win32 signature
|
// win32 signature
|
||||||
if (
|
if (name.endsWith("x86-setup.nsis.zip.sig")) {
|
||||||
name.endsWith(".msi.zip.sig") &&
|
|
||||||
name.includes("en-US") &&
|
|
||||||
name.includes("x86")
|
|
||||||
) {
|
|
||||||
const sig = await getSignature(browser_download_url);
|
const sig = await getSignature(browser_download_url);
|
||||||
updateData.platforms["windows-i686"].signature = sig;
|
updateData.platforms["windows-i686"].signature = sig;
|
||||||
}
|
}
|
||||||
|
@ -16,7 +16,7 @@
|
|||||||
},
|
},
|
||||||
"bundle": {
|
"bundle": {
|
||||||
"active": true,
|
"active": true,
|
||||||
"targets": "all",
|
"targets": ["deb", "appimage", "nsis", "app", "dmg", "updater"],
|
||||||
"identifier": "moe.elaina.clash.verge",
|
"identifier": "moe.elaina.clash.verge",
|
||||||
"icon": [
|
"icon": [
|
||||||
"icons/32x32.png",
|
"icons/32x32.png",
|
||||||
@ -29,8 +29,8 @@
|
|||||||
"externalBin": ["sidecar/clash-meta", "sidecar/clash-meta-alpha"],
|
"externalBin": ["sidecar/clash-meta", "sidecar/clash-meta-alpha"],
|
||||||
"copyright": "© 2022 zzzgydi All Rights Reserved",
|
"copyright": "© 2022 zzzgydi All Rights Reserved",
|
||||||
"category": "DeveloperTool",
|
"category": "DeveloperTool",
|
||||||
"shortDescription": "A Clash GUI based on tauri.",
|
"shortDescription": "A Clash Meta GUI based on tauri.",
|
||||||
"longDescription": "A Clash GUI based on tauri.",
|
"longDescription": "A Clash Meta GUI based on tauri.",
|
||||||
"deb": {
|
"deb": {
|
||||||
"depends": ["openssl"]
|
"depends": ["openssl"]
|
||||||
},
|
},
|
||||||
@ -45,8 +45,15 @@
|
|||||||
"certificateThumbprint": null,
|
"certificateThumbprint": null,
|
||||||
"digestAlgorithm": "sha256",
|
"digestAlgorithm": "sha256",
|
||||||
"timestampUrl": "",
|
"timestampUrl": "",
|
||||||
"wix": {
|
"webviewInstallMode": {
|
||||||
"language": ["zh-CN", "en-US", "ru-RU"]
|
"type": "embedBootstrapper",
|
||||||
|
"silent": true
|
||||||
|
},
|
||||||
|
"nsis": {
|
||||||
|
"displayLanguageSelector": true,
|
||||||
|
"installerIcon": "icons/icon.ico",
|
||||||
|
"languages": ["SimpChinese", "English"],
|
||||||
|
"license": "../LICENSE"
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
|
Loading…
x
Reference in New Issue
Block a user