Skip to content

Commit

Permalink
feat(updater)!: use nsis instead of msi
Browse files Browse the repository at this point in the history
  • Loading branch information
greenhat616 committed Feb 7, 2024
1 parent ce3c138 commit c0cde77
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions scripts/updater-nightly.ts
Original file line number Diff line number Diff line change
Expand Up @@ -53,12 +53,12 @@ async function resolveUpdater() {
const { name, browser_download_url } = asset;

// win64 url
if (name.endsWith(".msi.zip") && name.includes("en-US")) {
if (name.endsWith(".nsis.zip")) {
updateData.platforms.win64.url = browser_download_url;
updateData.platforms["windows-x86_64"].url = browser_download_url;
}
// win64 signature
if (name.endsWith(".msi.zip.sig") && name.includes("en-US")) {
if (name.endsWith(".nsis.zip.sig")) {
const sig = await getSignature(browser_download_url);
updateData.platforms.win64.signature = sig;
updateData.platforms["windows-x86_64"].signature = sig;
Expand Down
4 changes: 2 additions & 2 deletions scripts/updater.ts
Original file line number Diff line number Diff line change
Expand Up @@ -55,12 +55,12 @@ async function resolveUpdater() {
const { name, browser_download_url } = asset;

// win64 url
if (name.endsWith(".msi.zip") && name.includes("en-US")) {
if (name.endsWith(".nsis.zip")) {
updateData.platforms.win64.url = browser_download_url;
updateData.platforms["windows-x86_64"].url = browser_download_url;
}
// win64 signature
if (name.endsWith(".msi.zip.sig") && name.includes("en-US")) {
if (name.endsWith(".nsis.zip.sig")) {
const sig = await getSignature(browser_download_url);
updateData.platforms.win64.signature = sig;
updateData.platforms["windows-x86_64"].signature = sig;
Expand Down

0 comments on commit c0cde77

Please sign in to comment.