File tree 2 files changed +10
-4
lines changed
2 files changed +10
-4
lines changed Original file line number Diff line number Diff line change @@ -26,6 +26,7 @@ install:
26
26
27
27
build_script :
28
28
# - yarn test
29
- - npm run release
29
+ - yarn build --win --ia32
30
+ - yarn release
30
31
31
32
test : off
Original file line number Diff line number Diff line change @@ -3,6 +3,10 @@ function resolve (dir) {
3
3
return path . join ( __dirname , dir )
4
4
}
5
5
6
+ console . log ( process . argv )
7
+
8
+ const arch = process . argv . includes ( '--ia32' ) ? 'ia32' : 'x64'
9
+
6
10
const config = {
7
11
configureWebpack : {
8
12
devtool : 'nosources-source-map'
@@ -66,11 +70,12 @@ const config = {
66
70
} ,
67
71
win : {
68
72
icon : 'build/icons/icon.ico' ,
73
+ // eslint-disable-next-line no-template-curly-in-string
74
+ artifactName : `PicGo Setup \${version}-${ arch } .exe` ,
69
75
target : [ {
70
- targe : 'nsis' ,
76
+ target : 'nsis' ,
71
77
arch : [
72
- 'x64' ,
73
- 'ia32'
78
+ arch
74
79
]
75
80
} ]
76
81
} ,
You can’t perform that action at this time.
0 commit comments