File tree Expand file tree Collapse file tree 1 file changed +4
-15
lines changed Expand file tree Collapse file tree 1 file changed +4
-15
lines changed Original file line number Diff line number Diff line change 1
1
const fs = require ( 'fs' ) ;
2
2
3
- var packagejson = require ( './lens/packages/ open-lens/package.json' ) ;
3
+ var packagejson = require ( './lens/open-lens/package.json' ) ;
4
4
5
5
packagejson . build . publish = [ {
6
- url : "https://github.com/beliys /OpenLens/releases/download/Latest" ,
6
+ url : "https://github.com/MuhammedKalkan /OpenLens/releases/download/Latest" ,
7
7
provider : "generic"
8
8
} ] ;
9
9
10
10
packagejson . build . win . artifactName = "OpenLens.Setup.${version}.${ext}" ;
11
+ packagejson . build . npmRebuild = true ;
11
12
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 ) ) ;
You can’t perform that action at this time.
0 commit comments