Skip to content

Commit 2c7ecd8

Browse files
committed
give up and skip it on windows
1 parent 213c696 commit 2c7ecd8

File tree

1 file changed

+18
-14
lines changed

1 file changed

+18
-14
lines changed

packages/compass/scripts/verify-package-contents.ts

Lines changed: 18 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -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

Comments
 (0)