mirror of
https://github.com/Llewellynvdm/nativefier.git
synced 2024-11-05 04:47:54 +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);
|
||||
},
|
||||
|
||||
(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);
|
||||
|
Loading…
Reference in New Issue
Block a user