diff --git a/scripts/build-linux.js b/scripts/build-linux.js index 4887a4361d..f0196930c1 100755 --- a/scripts/build-linux.js +++ b/scripts/build-linux.js @@ -16,7 +16,13 @@ builder({ extraMetadata: { version: vars.version, }, - publish: process.env.KEYGEN_TOKEN ? vars.keygenConfig : undefined, + publish: process.env.KEYGEN_TOKEN ? [ + vars.keygenConfig, + { + provider: 'github', + channel: `latest-${process.env.ARCH}`, + }, + ] : undefined, }, publish: process.env.KEYGEN_TOKEN ? isTag ? 'always' : 'onTagOrDraft' : 'never', }).catch(e => { diff --git a/scripts/build-macos.js b/scripts/build-macos.js index 814da71e1c..e7e319a4c9 100755 --- a/scripts/build-macos.js +++ b/scripts/build-macos.js @@ -25,13 +25,13 @@ builder({ identity: !process.env.CI || process.env.CSC_LINK ? undefined : null, }, npmRebuild: process.env.ARCH !== 'arm64', - publish: process.env.KEYGEN_TOKEN ? { - product: { - arm64: '98fbadee-c707-4cd6-9d99-56683595a846', - x86_64: 'f5a48841-d5b8-4b7b-aaa7-cf5bffd36461', - }[process.env.ARCH], - ...vars.keygenConfig, - } : undefined, + publish: process.env.KEYGEN_TOKEN ? [ + vars.keygenConfig, + { + provider: 'github', + channel: `latest-${process.env.ARCH}`, + }, + ] : undefined, }, publish: process.env.KEYGEN_TOKEN ? isTag ? 'always' : 'onTagOrDraft' : 'never', }).catch(e => { diff --git a/scripts/build-windows.js b/scripts/build-windows.js index 9232b3e1f2..9af4524188 100755 --- a/scripts/build-windows.js +++ b/scripts/build-windows.js @@ -15,7 +15,13 @@ builder({ extraMetadata: { version: vars.version, }, - publish: process.env.KEYGEN_TOKEN ? vars.keygenConfig : undefined, + publish: process.env.KEYGEN_TOKEN ? [ + vars.keygenConfig, + { + provider: 'github', + channel: `latest-${process.env.ARCH}`, + }, + ] : undefined, }, publish: process.env.KEYGEN_TOKEN ? isTag ? 'always' : 'onTagOrDraft' : 'never', }).catch(e => {