1- import { Platform } from "electron-builder"
1+ import { Platform , Arch } from "electron-builder"
22import * as path from "path"
33import { app , copyTestAsset } from "../helpers/packTester"
44
@@ -13,17 +13,41 @@ test.ifAll.ifNotCiMac("portable", app({
1313 }
1414} ) )
1515
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+
1638test . ifNotCiMac ( "portable - artifactName and request execution level" , app ( {
1739 targets : Platform . WINDOWS . createTarget ( [ "portable" ] ) ,
1840 config : {
1941 nsis : {
42+ //tslint:disable-next-line:no-invalid-template-strings
2043 artifactName : "${productName}Installer.${version}.${ext}" ,
2144 installerIcon : "foo test space.ico" ,
2245 } ,
2346 portable : {
2447 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+ } ,
2751 } ,
2852} , {
2953 projectDirCreated : projectDir => {
0 commit comments