Skip to content

Commit

Permalink
Update update.js
Browse files Browse the repository at this point in the history
  • Loading branch information
0xbilko committed Mar 17, 2023
1 parent eff1c08 commit 27334b9
Showing 1 changed file with 8 additions and 1 deletion.
9 changes: 8 additions & 1 deletion update.js
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ const fs = require('fs');
var packagejson = require('./lens/packages/open-lens/package.json');

packagejson.build.publish = [{
url: "https://github.com/MuhammedKalkan/OpenLens/releases/download/Latest",
url: "https://github.com/beliys/OpenLens/releases/download/Latest",
provider: "generic"
}];

Expand All @@ -15,3 +15,10 @@ if (process.platform != "win32") {
}

fs.writeFileSync('./lens/packages/open-lens/package.json', JSON.stringify(packagejson));


let npmrc = fs.readFileSync('./lens/.npmrc','utf-8');
npmrc = npmrc.replace("disturl \"","disturl = \"")
npmrc = npmrc.replace("target \"","target = \"")
npmrc = npmrc.replace("runtime \"","runtime = \"")
fs.writeFileSync('./lens/.npmrc',npmrc)

0 comments on commit 27334b9

Please sign in to comment.