hack for multiarch build

This commit is contained in:
Megrez Lu 2023-01-29 17:45:06 +08:00
parent 389a75b3a8
commit 1f8cc2139b
1 changed files with 5 additions and 0 deletions

View File

@ -9,4 +9,9 @@ packagejson.build.publish = [{
packagejson.build.win.artifactName = "OpenLens.Setup.${version}.${ext}";
if (process.platform != "win32") {
// build both x86_64 and arm64 for Linux and Darwin
packagejson.scripts['build:app'] = "electron-builder --publish onTag --x64 --arm64";
}
fs.writeFileSync('./lens/packages/open-lens/package.json', JSON.stringify(packagejson));