@@ -5,7 +5,10 @@ const rootPackage = require('../package.json');
55
66const DEFAULT_TARGET_PLATFORM = 'darwin' ;
77
8- // 使用双 package.json 结构,自动处理 node_modules
8+ // disable code sign
9+ process . env . CSC_IDENTITY_AUTO_DISCOVERY = false ;
10+
11+ // use double package.json structure, auto handle node_modules
912fs . copyFileSync ( path . join ( __dirname , '../build/package.json' ) , path . join ( __dirname , '../app/package.json' ) ) ;
1013
1114const targetPlatforms = ( process . env . TARGET_PLATFORMS || DEFAULT_TARGET_PLATFORM ) . split ( ',' ) . map ( ( str ) => str . trim ( ) ) ;
@@ -26,8 +29,8 @@ electronBuilder.build({
2629 publish : null ,
2730 targets : targets . size ? targets : undefined ,
2831 config : {
29- productName : 'OpenSumi-Desktop ' ,
30- npmArgs : [ '--registry=https://registry.npm.taobao.org ' ] ,
32+ productName : 'OpenSumi' ,
33+ npmArgs : [ '--registry=https://registry.npmmirror.com ' ] ,
3134 electronVersion : rootPackage . devDependencies . electron , // 根据前置 package.json 判断版本号即可
3235 extraResources : [
3336 {
@@ -40,12 +43,17 @@ electronBuilder.build({
4043 output : path . join ( __dirname , '../out/' ) ,
4144 } ,
4245 asar : true ,
43- asarUnpack : 'node_modules/vscode-ripgrep' ,
46+ asarUnpack : [
47+ 'node_modules/@opensumi/vscode-ripgrep' ,
48+ ] ,
4449 mac : {
50+ icon : 'build/icon/sumi.png' ,
51+ artifactName : '${productName}-Desktop-${version}.${ext}' ,
4552 target : 'dmg' ,
4653 } ,
4754 win : {
48- artifactName : '${productName}-${version}.${ext}' ,
55+ artifactName : '${productName}-Desktop-${version}.${ext}' ,
56+ icon : 'build/icon/sumi.ico' ,
4957 target : [ {
5058 target : 'nsis' ,
5159 arch : [ 'x64' ] ,
0 commit comments