Skip to content
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

Error when creating/building installer for linux (ubuntu 16.04) #15

Closed
Rongky opened this issue Nov 12, 2016 · 8 comments
Closed

Error when creating/building installer for linux (ubuntu 16.04) #15

Rongky opened this issue Nov 12, 2016 · 8 comments
Labels

Comments

@Rongky
Copy link

Rongky commented Nov 12, 2016

When running npm run desktop -- build-installer [ddp_url], below is the error:

...
Packaging for platform linux x64 using electron 1.4.4 to .desktop-installer/linux-unpacked

Unhandled rejection Error: Exit code: ENOENT. spawn icns2png ENOENT
at /home/user/myMeteorApp/node_modules/electron-builder/src/util/util.ts:102:16
at exithandler (child_process.js:220:5)
at ChildProcess.errorhandler (child_process.js:232:5)
at emitOne (events.js:77:13)
at ChildProcess.emit (events.js:169:7)
at Process.ChildProcess._handle.onexit (internal/child_process.js:198:12)
at onErrorNT (internal/child_process.js:344:16)
at nextTickCallbackWith2Args (node.js:442:9)
at process._tickCallback (node.js:356:17)
From previous event:
...
ERROR installerBuilder: error while building installer: [Error: Exit code: ENOENT. spawn icns2png ENOENT]

However, its fine when only packaging for linux (npm run desktop -- package [ddp_url]).

@aboire
Copy link

aboire commented Nov 12, 2016

sudo apt-get install icnsutils

@wojtkowiak
Copy link
Owner

You have to add linux property in builderOptions in settings.json and conform to these requirements https://github.com/electron-userland/electron-builder/wiki/Multi-Platform-Build#linux.
I am interested if somebody could prepare a default linux config for the default settings.json in current scaffold as this is absent currently.

@wojtkowiak
Copy link
Owner

I will add some notes about it in the docs.

wojtkowiak added a commit that referenced this issue Nov 13, 2016
@Rongky
Copy link
Author

Rongky commented Nov 14, 2016

Thanks for the replies.

After following this link (https://github.com/electron-userland/electron-builder/wiki/Multi-Platform-Build#linux), below is the error:

ERROR  installerBuilder:  error while building installer:  [Error: Exit code: 1. Command failed: gm convert -size 96x96 /tmp/electron-builder-1107-15860e9a7dc-0/t-1107-1-electron-builder-linux.iconset/icon_256x256x32.png -resize 96x96 /tmp/electron-builder-1107-15860e9a7dc-0/t-1107-1-electron-builder-linux.iconset/icon_96x96x32.png
gm convert: Unable to open file (/tmp/electron-builder-1107-15860e9a7dc-0/t-1107-1-electron-builder-linux.iconset/icon_256x256x32.png) [No such file or directory].
gm convert: Unable to open file (/tmp/electron-builder-1107-15860e9a7dc-0/t-1107-1-electron-builder-linux.iconset/icon_256x256x32.png) [No such file or directory].]

As a workaround per discussion here: electron-userland/electron-builder#239,
creating a build/icons folder at the app's root directory and placing inside the following images/icons found at https://github.com/develar/onshape-desktop-shell/tree/master/build/icons, addresses the issue.

However, it would be much cleaner if build/icons folder is inside .desktop/assets directory since it is part of meteor-desktop build process in linux. But either way, it doesn't matter as long as it works!!!

Very much grateful for this package!!! Thanks!

@wojtkowiak
Copy link
Owner

I'm glad you have managed to work it out.
Thanks for sharing that knowledge. I will think about it as I already had a .desktop/build directory in plan for 0.3.0 as it is not nice that currently you can not split your assets to the ones needed by build process and the ones needed by the desktop app itself.

@SantoshSrinivas79
Copy link

@Rongky I'm trying to create a testapp but running into all sorts of issues.

I did meteor create testApp first, then meteor --mobile-server=127.0.0.1:3000 in one terminal .. it shows the below warning:

I20161116-08:18:29.259(5.5)? [meteor-desktop] .desktop HCP will not work because either web.cordova architecture is missing or the bundler had troubles with creating desktop.asar. Be sure that you are running mobile target or with --mobile-server.

meteor run desktop throws the following error:

ERROR meteorApp: no mobile build found at /home/ghost/temp/testApp/.meteor/local/build/programs/web.cordova ERROR meteorApp: are you sure you did run meteor with --mobile-server?

Can you pls advise on the exact steps to following to create a test app on Ubuntu?

Thank you.

@SantoshSrinivas79
Copy link

@Rongky ... pls ignore ... I didn't realize that I need to add a platform even I didnt need one ... I ran meteor add-platform ios and it started fine. Sorry!

@Rongky
Copy link
Author

Rongky commented Nov 16, 2016

No probs @SantoshSrinivas79. That was also my initial error. This step was commented out in the docs, that's why.

@Rongky Rongky closed this as completed Nov 16, 2016
wojtkowiak added a commit that referenced this issue Jan 10, 2017
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

4 participants