-
Notifications
You must be signed in to change notification settings - Fork 262
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
run long time #189
Comments
same, electon 1.7.4.beta |
Yeah, I'm currently running it for the first time and it has taken about 15 minutes so far. Did it ever finish for you? i.e. is it stuck in a loop or just takes a long time? |
Same. My debug output
Just hangs afterwards. Edit: I am seeing similar results when running on Windows 10. |
Same problem with node v7.4.0, electron 1.6.11, mono 5.0.1.1 and wine 2.0.2 in OSX El Capitan 10.11.6. I am using the simple script to create installator. var electronInstaller = require('electron-winstaller');
resultPromise = electronInstaller.createWindowsInstaller({
appDirectory: './smart-body',
outputDirectory: './',
authors: 'Smart Fit',
exe: 'smart-body.exe'
});
resultPromise.then(() => console.log("It worked!"), (e) => console.log(`No dice: ${e.message}`)); |
Someone got something working here ? Process seems to hang for ages on a mono sgen command .. |
Personally I make sure that node_modules is excluded from my package, and therefore excluded from the installer. This seems to improve the time it takes.
... the It takes about 10 seconds for electron-packager and 2m16s for the electron-winstaller now. |
@bishbashbosh123 Excluding |
I use Rollup, then delete node_modules, makes a big difference. |
Yes, I should clarify... I am using webpack so all web app dependencies are bundled up, so I don't have any runtime |
@lukeapage can i ask what your setup is for rollup? I'm having a heck of a time getting it to work with my local js other than src/main.js (config file, logger file, auth modules, etc.). It's pulling in all of my npm dependecies just fine, but my local modules aren't being picked up for some reason. @bishbashbosh123 are you using webpack for your node modules too? Would you mind sharing your webpack config? I've had the same problem with building the windows exe. It builds the NuSpec file and then just hangs forever. I am on Ubuntu 17.04 using node 8.9.1. Console Output
|
Same issue, seems to not finish. Edit: Found the issue, was hard to find since no errors are displayed by this module... |
It took a bit of fiddling around and debugging. the biggest issue was node modules with circular dependencies - I had to exclude those. |
For me, if I add the flag: This old issue helped: #55 |
Hi All....can anybody please tell what it the final solution or workaround for this problem? I am facing the same issue. The script keeps on running without any output. For me, the script was never completed and I manually aborted the script in progress. |
I would try putting console logs throughout this module to get more information on what is causing the issue. |
After I install Wine on my Macbook, I have to restart Mac. Or it will get stuck when I try to build the exe for Windows. |
Same behavior here, as described by madhuni. |
In my case, the script was running forever without any message (even with DEBUG environment variable) because of back slashes in the value of appDirectory and outputDirectory properties. |
In my case, when running it as Later it turned out it was having issues with a space in name of one of the directories in the output path. |
Same for me, packaging with |
This happened several months ago for us. The code signing takes forever! |
Has there been a solve for this? I am going through same issue where it just takes forever (and never completes) the installer creation. I tried with both
Anything else I should try? |
I just realized that my comment was not suited for this repo. Just in case this is a similar issue, here's what we did for ours. We're using Squirrel.Windows to package our WinApp but the code signing took forever on our AppVeyor instance. The reason being is because it's doing a round trip on each file we're shipping and we have a lot of files. Solution: We ended up importing our cert on the AppVeyor instance to prevent the round trip. Now our builds are running much faster. |
I use simple example from the docs https://github.com/electron/windows-installer#usage and it takes about 10 minutes on my Ryzen 5 1600 |
I am having the same problem using |
I've been unable to build Windows 10 and I tried to enable
Can someone explain to me how to enable debug mode? |
It worked for me. I am using Node 18 and "asar": true. I was getting a missing LICENSE error, and adding a LICENSE file solved that.
|
I was stuck with that all day. End up wiping it all and using |
hello,
Executed more than 30 minutes according to the document,
There is no finished result, and there is no wrong information.
The text was updated successfully, but these errors were encountered: