mirror of
https://github.com/Llewellynvdm/nativefier.git
synced 2024-09-26 19:49:02 +00: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