-
Notifications
You must be signed in to change notification settings - Fork 96
Packager confusion #113
Comments
More details...this exact workflow works from npm scripts:
NOTE this isnt using asar archiving but it does result in a working app using electron-compile with a two-package.json setup. When I include the |
Hm, I wonder if we're not copying over the entire cache somehow :-/ |
@paulcbetts That is precisely the issue! I just ran the two commands to compare: When I ~/dev/pqls/apps/ui$ ls -a src/.cache/
. 7f5749a966c21214c1a1dab36fb6fcb4536dac86 a6ff080d72ec4d56a33acd957959590114fb1fef
.. 8bdca42c68ad8750be336de3aeafae9314c31e5e compiler-info.json.gz
~/dev/pqls/apps/ui$ ls -a ~/temp/pqlsapp/.cache
. 7f5749a966c21214c1a1dab36fb6fcb4536dac86 compiler-info.json.gz
.. a6ff080d72ec4d56a33acd957959590114fb1fef |
After some more poking at the cause of this, it looks like it is always the |
Yep, I think I know what this is. I'll fix this today or tomorrow. Thanks @mnichols for the solid write-up! |
Thanks..I tried to creep through the code but had a hard time figuring out On Tue, Jul 19, 2016 at 11:43 AM, Paul Betts [email protected]
|
This is fixed in 3.3.5, thanks all for helping track this down |
Hi @paulcbetts , I'm afraid this isn't fixed.
I included a README there that illustrates how to run the app and package+run it. |
@paulcbetts more investigating...it turns out even if I do a flat file structure (single package.json), having subdirectories cause failure. |
@mnichols Do you have electron-compile installed in the src folder? |
I did, yes. On Wed, Aug 17, 2016 at 3:55 PM, SCLeo [email protected] wrote:
|
@mnichols Nice, so we ran into exactly same problem XD |
Yeh I had to abandon using this lib due to .cache oddities unfortunately. On Wed, Aug 17, 2016 at 3:59 PM, SCLeo [email protected] wrote:
|
The only difference between us is that I still get "it was not precompiled!" errors even though I drag it to resources folder manually. XD |
If the |
I've tried walking through every comment in this thread but can't seem to quite get packaging with this lib to work:
To be clear, I am trying to use a 'two package.json' approach (similar to electron-builder) because of the weight of combining the two.
So given this dir structure:
my npm script in root package.json is:
When run
$> open ./build/agent-ui-app-darwin-x64/agent-ui-app.app
I get this error:
UPDATE
Note that when package without asar and manually include the
.cache
inside the.app
directory it works just fine!Do I need to manually run
electron-compile
to get a.cache
dir somewhere to be included in the resulting app.asar? My understanding this was already done under the hood but I can't make sense of it.Any pointers?
The text was updated successfully, but these errors were encountered: