1
- import { Platform } from "electron-builder"
1
+ import { Platform , Arch } from "electron-builder"
2
2
import * as path from "path"
3
3
import { app , copyTestAsset } from "../helpers/packTester"
4
4
@@ -13,17 +13,41 @@ test.ifAll.ifNotCiMac("portable", app({
13
13
}
14
14
} ) )
15
15
16
+ test . ifAll . ifNotCi ( "portable zip" , app ( {
17
+ targets : Platform . WINDOWS . createTarget ( "portable" ) ,
18
+ config : {
19
+ publish : null ,
20
+ portable : {
21
+ useZip : true ,
22
+ } ,
23
+ compression : "normal" ,
24
+ }
25
+ } ) )
26
+
27
+ test . ifAll . ifNotCi ( "portable zip several archs" , app ( {
28
+ targets : Platform . WINDOWS . createTarget ( "portable" , Arch . ia32 , Arch . x64 ) ,
29
+ config : {
30
+ publish : null ,
31
+ portable : {
32
+ useZip : true ,
33
+ } ,
34
+ compression : "store" ,
35
+ }
36
+ } ) )
37
+
16
38
test . ifNotCiMac ( "portable - artifactName and request execution level" , app ( {
17
39
targets : Platform . WINDOWS . createTarget ( [ "portable" ] ) ,
18
40
config : {
19
41
nsis : {
42
+ //tslint:disable-next-line:no-invalid-template-strings
20
43
artifactName : "${productName}Installer.${version}.${ext}" ,
21
44
installerIcon : "foo test space.ico" ,
22
45
} ,
23
46
portable : {
24
47
requestExecutionLevel : "admin" ,
25
- artifactName : "${productName}Portable.${version}.${ext}"
26
- }
48
+ //tslint:disable-next-line:no-invalid-template-strings
49
+ artifactName : "${productName}Portable.${version}.${ext}" ,
50
+ } ,
27
51
} ,
28
52
} , {
29
53
projectDirCreated : projectDir => {
0 commit comments