-
-
Notifications
You must be signed in to change notification settings - Fork 513
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
Preparing to Package Application for arch: x64 #434
Comments
Thanks for filing an issue! In order to help you with your problem, we're going to need more information about it. In particular:
|
Thanks for the reply, it gets stuck again after printing this:
Checked on a second system (MacOS same version) and it failed in the same way... |
@mmick66 I am having the same problem. It sticks at "Preparing to Package Application for arch: x64" and having the same debug log as you. Did you solved the problem? |
Did you resolve it? |
This comment has been minimized.
This comment has been minimized.
It's difficult to debug this because there's not enough information to get an idea of what's happening. It seems like it's stalling in copying the app.
|
I'm facing the same issue. Please refer the post here for the details Does this only happen on macOS hosts? I can't test this as i am working only on windows.
|
@Mani0608 please limit your discussion to the bug so that it's easier to follow along, questions about his project should go in his issue tracker. The "succeed" bug is #331. Back to the repro steps, I want to confirm that this happens with a minimal app, so it can be reproduced by someone who's willing to fix the bug. Does this hanging behavior happen for you if you create a fresh Forge project, don't add any new dependencies, and run |
@malept Thanks for the response.
But it did complete on a couple of occasions but after 1+ hours. Does it have to do anything with permissions? Because i faced some permission issues while installing electron-forge plugin as a global plugin, with rename package.json steps. But with multiple tries i manage to install it (under roaming/npm/node_modules). Is this related to the issue i'm facing? |
I can't reproduce this on Linux (Debian Stretch) or macOS (10.13.3) (I don't have access to a Windows install right now). I made sure to run |
Does it have to do anything with global plugins that i have installed Or the number of angular dependencies? I tried
nothing worked out. I have removed and installed electron-forge a number of times, but every time i tried to install, i'm facing the permission issue with rename package.json. |
You shouldn't need to install Electron Forge globally. Using |
I tried the command with --ignore-existing flag and still getting the "Permission Error". |
I created a new project on my personal laptop with electron-forge init. Everything ran smooth and the packaging took between 2 to 3 minutes to complete. I will try the same with my actual project and share the results here. For now, i believe its an issue with my work-pc |
OK. I moved the entire application (angular 5, node server) to my personal laptop. Now the packaging completes within 10 minutes (better compared to 1 hour previously). But now i'm getting some error
But the packaging is successful. When i tried to run the application, i'm getting the following error, I'm using the compilerc from electron-forge-template (angular2) here |
I tried packaging app directly using electron-packager that came with electron-forge and the application works fine. That confirms no issues with configuration or my code. There is something seriously wrong with electron-forge and i need help in resolving issues reported in my previous posts. |
I found the root cause of the "getSync" issue. Its because of es6-shim.js |
I'm experience the same issue. It was working for me before until recently it just stopped. So even if I check out commits from 3 months ago that I could build successfully, I can't package the app anymore.
and it stays there forever. |
@okonet At the point, the script is copying all the contents of your node_modules directory to ".../APPDATA/LOCAL/Temp/electron-packager/../" path and then removes/prunes the unnecessary/unwanted (devDependencies). In case your dependencies have grown recently or any macafee/antivirus, this can happen. I had to move entire application from my work-pc to my personal laptop to improve the speed. |
Nope, I didn’t do anything with my dependencies. I didn’t work on my projects for a couple of months and now it’s not building anymore. |
Can you please provide more details on the electron-forge version and your compilerc configuration. I can see you are using an older version of electron-packager. Is it a react or angular application? In case you are using angular, there is a separate compilerc configuration here |
@Mani0608 I'm using React and here is my config: "config": {
"forge": {
"make_targets": {
"darwin": [
"zip"
]
},
"electronPackagerConfig": {
"packageManager": "yarn",
"icon": "resources/icon",
"ignore": [
".idea",
"coverage"
],
"appBundleId": "com.koolesache.CodeStage",
"appCategoryType": "public.app-category.productivity",
"asar": {
"unpackDir": "{src/scripts,node_modules/node-notifier/vendor}"
}
},
"electronWinstallerConfig": {
"name": "codestage"
},
"electronInstallerDebian": {},
"electronInstallerRedhat": {},
"github_repository": {
"owner": "okonet",
"name": "codestage"
}
}
} You can checkout the repo and try it: https://github.com/okonet/codestage |
Super frustrated now since I tried pinning dependencies and still can't make it work. It was working a few weeks ago. Any ideas where to look? |
It works for me on Linux. Does it hang if you use Travis CI's macOS workers? |
I’m using it locally on macOS |
My question is really, can you reproduce this error on another macOS instance somewhere? Travis CI is just one way of accomplishing this. |
Right now I don’t have Travis CI setup but I’ll try later. |
@malept can you help me ? E:\isanedu\isan_electron\test>yarn make
package.json { |
@zlw123 Unfortunately, due to the limited amount of time of the maintainers and the limited amount of information present in your question, we cannot help debug your app at this time. Instead, you should consider using one of the community forums, as there are more people there available to answer questions. |
I am initialising a vanilla electron-forge project and run
I get stuck on
for ever...
OS: Mac OS: 10.12.6
Forge Version: 5.1.0
My config looks like this...
The text was updated successfully, but these errors were encountered: