Skip to content
This repository was archived by the owner on Jan 17, 2025. It is now read-only.

Commit e5c57df

Browse files
committed
don't attempt chdir for app.asar directories
1 parent bc6d327 commit e5c57df

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lib/create-from-source.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -143,7 +143,7 @@ exports.compileToFSM = (src, opts={}) => new Promise((resolve, reject) => {
143143
try {
144144
process.chdir(ui.findFile(dir))
145145
} catch (err) {
146-
if (dir.indexOf('@demos') >= 0) {
146+
if (dir.indexOf('@demos') >= 0 || dir.indexOf('app.asar') >= 0) {
147147
// this is probably ok, if the dir is one of our @demos
148148
console.error(err)
149149
} else {

0 commit comments

Comments
 (0)