mirror of
https://github.com/jiahaog/Nativefier
synced 2024-06-29 08:00:47 +02:00
Somehow electron packager returns appPath as an array instead of a string, this fixes it
This commit is contained in:
parent
b7e2fbf86e
commit
0a90cb2ee7
|
@ -60,7 +60,12 @@ function buildApp(options, callback) {
|
||||||
packager(options, callback);
|
packager(options, callback);
|
||||||
},
|
},
|
||||||
|
|
||||||
(appPath, callback) => {
|
(appPathArray, callback) => {
|
||||||
|
// somehow appPathArray is a 1 element array
|
||||||
|
if (appPathArray.length !== 1) {
|
||||||
|
console.warn('Warning: Packaged app path contains more than one element', appPathArray);
|
||||||
|
}
|
||||||
|
const appPath = appPathArray[0];
|
||||||
callback(null, appPath);
|
callback(null, appPath);
|
||||||
}
|
}
|
||||||
], callback);
|
], callback);
|
||||||
|
|
Loading…
Reference in New Issue
Block a user