@@ -13,8 +13,8 @@ const buildTarget =
1313const getMacArch = ( ) => {
1414 if ( buildTarget === "darwin-x64" ) return [ "x64" ] ;
1515 if ( buildTarget === "darwin-arm64" ) return [ "arm64" ] ;
16- // darwin (universal) or fallback: build both
17- return [ "x64" , " arm64"] ;
16+ // 只构建 ARM64(现代 macOS 设备主要是 ARM)
17+ return [ "arm64" ] ;
1818} ;
1919
2020const dir = buildTarget + "/" + dayjs ( ) . format ( "YYYY_MM_DD_HH_mm_ss" ) ;
@@ -51,7 +51,7 @@ const config = {
5151 to : "assets/icons" ,
5252 } ,
5353 {
54- from : "./assets/wallpaper" ,
54+ from : "./public/ assets/wallpaper" ,
5555 to : "assets/wallpaper" ,
5656 } ,
5757 ] ,
@@ -74,10 +74,6 @@ const config = {
7474 target : "dmg" ,
7575 arch : getMacArch ( ) ,
7676 } ,
77- {
78- target : "zip" ,
79- arch : getMacArch ( ) ,
80- } ,
8177 ] ,
8278 } ,
8379 // MAC Store
@@ -117,8 +113,7 @@ const config = {
117113 win : {
118114 icon : resolve ( __dirname , `./public/assets/icons/icon.ico` ) ,
119115 target : [
120- { target : "nsis" , arch : [ "x64" , "ia32" ] } ,
121- { target : "portable" , arch : [ "x64" ] } ,
116+ { target : "nsis" , arch : [ "x64" ] } , // 只构建 x64 版本
122117 ] ,
123118 verifyUpdateCodeSignature : false ,
124119 requestedExecutionLevel : "asInvoker" ,
@@ -137,9 +132,8 @@ const config = {
137132 artifactName : "${productName}-${version}-${env.BUILD_ENV}-portable.${ext}" ,
138133 } ,
139134 linux : {
140- artifactName : "${productName}-${version}-${env.BUILD_ENV}.${ext}" ,
135+ artifactName : "${productName}-${version}-${env.BUILD_ENV}-${arch} .${ext}" ,
141136 target : [
142- { target : "AppImage" , arch : [ "x64" , "arm64" ] } ,
143137 { target : "deb" , arch : [ "x64" , "arm64" ] } ,
144138 { target : "rpm" , arch : [ "x64" , "arm64" ] } ,
145139 ] ,
0 commit comments