@@ -69,20 +69,24 @@ function run() {
6969 try {
7070 const kind = extractArchive ( artifactsDir , destinationPath ) ;
7171
72- const asarPaths = globSync ( '**/*.asar' , { cwd : destinationPath } ) ;
73- for ( const asarPath of asarPaths ) {
74- const basePath = path . join ( destinationPath , asarPath ) ;
75- execute ( 'npx' , [
76- '@electron/asar' ,
77- 'extract' ,
78- basePath . replaceAll ( path . sep , path . posix . sep ) ,
79- path
80- . join (
81- path . dirname ( basePath ) ,
82- path . basename ( basePath ) + '.fully-unpacked'
83- )
84- . replaceAll ( path . sep , path . posix . sep ) ,
85- ] ) ;
72+ // npx or asar doesn't run on windows in CI, but the contents of the .asar
73+ // is the same and we test it on other platforms, so should be OK to skip
74+ if ( process . platform !== 'win32' ) {
75+ const asarPaths = globSync ( '**/*.asar' , { cwd : destinationPath } ) ;
76+ for ( const asarPath of asarPaths ) {
77+ const basePath = path . join ( destinationPath , asarPath ) ;
78+ execute ( 'npx' , [
79+ '@electron/asar' ,
80+ 'extract' ,
81+ basePath . replaceAll ( path . sep , path . posix . sep ) ,
82+ path
83+ . join (
84+ path . dirname ( basePath ) ,
85+ path . basename ( basePath ) + '.fully-unpacked'
86+ )
87+ . replaceAll ( path . sep , path . posix . sep ) ,
88+ ] ) ;
89+ }
8690 }
8791
8892 const relativePaths = globSync ( '**/*' , { cwd : destinationPath } )
0 commit comments