Skip to content

Commit 247c7da

Browse files
authored
Update update.js
1 parent a4a1599 commit 247c7da

File tree

1 file changed

+4
-15
lines changed

1 file changed

+4
-15
lines changed

update.js

Lines changed: 4 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -1,24 +1,13 @@
11
const fs = require('fs');
22

3-
var packagejson = require('./lens/packages/open-lens/package.json');
3+
var packagejson = require('./lens/open-lens/package.json');
44

55
packagejson.build.publish = [{
6-
url: "https://github.com/beliys/OpenLens/releases/download/Latest",
6+
url: "https://github.com/MuhammedKalkan/OpenLens/releases/download/Latest",
77
provider: "generic"
88
}];
99

1010
packagejson.build.win.artifactName = "OpenLens.Setup.${version}.${ext}";
11+
packagejson.build.npmRebuild = true;
1112

12-
if (process.platform != "win32") {
13-
// build both x86_64 and arm64 for Linux and Darwin
14-
packagejson.scripts['build:app'] = "electron-builder --publish onTag --x64 --arm64";
15-
}
16-
17-
fs.writeFileSync('./lens/packages/open-lens/package.json', JSON.stringify(packagejson));
18-
19-
20-
let npmrc = fs.readFileSync('./lens/.npmrc','utf-8');
21-
npmrc = npmrc.replace("disturl \"","disturl = \"")
22-
npmrc = npmrc.replace("target \"","target = \"")
23-
npmrc = npmrc.replace("runtime \"","runtime = \"")
24-
fs.writeFileSync('./lens/.npmrc',npmrc)
13+
fs.writeFileSync('./lens/open-lens/package.json', JSON.stringify(packagejson));

0 commit comments

Comments
 (0)