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

Can't convert packaged app to snap. #45

Closed
3 tasks done
ncodeyx opened this issue Oct 20, 2019 · 2 comments
Closed
3 tasks done

Can't convert packaged app to snap. #45

ncodeyx opened this issue Oct 20, 2019 · 2 comments
Labels

Comments

@ncodeyx
Copy link

ncodeyx commented Oct 20, 2019

  • I have read the contribution documentation for this project.
  • I agree to follow the code of conduct that this project follows, as appropriate.
  • I have searched the issue tracker for an issue that matches the one I want to file, without success.

Please describe your issue:
I am trying to convert my Electron app that was built by electron-packager on Linux x64, but it fails.

Console output when you run electron-installer-snap with the environment variable DEBUG='electron-installer-snap:*'. Please include the stack trace if one exists.

codey@codey:~/Desktop/electronpw/PenguinWorld-linux-x64$ npx electron-installer-snap DEBUG='electron-installer-snap:*'
npx: installed 76 in 4.627s
Cloning into '/tmp/electron-snap-307026TRYHqIGjFtT/parts/desktop-gtk3/src'...
remote: Enumerating objects: 37, done.        
remote: Counting objects: 100% (37/37), done.        
remote: Compressing objects: 100% (33/33), done.        
remote: Total 1387 (delta 9), reused 20 (delta 2), pack-reused 1350        
Receiving objects: 100% (1387/1387), 261.40 KiB | 966.00 KiB/s, done.
Resolving deltas: 100% (715/715), done.
(node:30702) UnhandledPromiseRejectionWarning: Error: Exited with status 2
    at closeArgsToError (/home/codey/.npm/_npx/30702/lib/node_modules/electron-installer-snap/node_modules/cross-spawn-promise/lib/index.js:20:16)
    at ChildProcess.<anonymous> (/home/codey/.npm/_npx/30702/lib/node_modules/electron-installer-snap/node_modules/cross-spawn-promise/lib/index.js:76:19)
    at Object.onceWrapper (events.js:277:13)
    at ChildProcess.emit (events.js:189:13)
    at Process.ChildProcess._handle.onexit (internal/child_process.js:248:12)
(node:30702) UnhandledPromiseRejectionWarning: Unhandled promise rejection. This error originated either by throwing inside of an async function without a catch block, or by rejecting a promise which was not handled with .catch(). (rejection id: 1)
(node:30702) [DEP0018] DeprecationWarning: Unhandled promise rejections are deprecated. In the future, promise rejections that are not handled will terminate the Node.js process with a non-zero exit code.

What command line arguments are you passing? Alternatively, if you are using the API, what
parameters are you passing to the snap() function?

npx electron-installer-snap 

in the packaged directory

Am I missing or not doing something correctly?

@welcome
Copy link

welcome bot commented Oct 20, 2019

👋 Thanks for opening your first issue here! If you have a question about using electron-installer-snap, read the support docs. If you're reporting a 🐞 bug, please make sure you include steps to reproduce it. Development and issue triage is community-driven, so please be patient and we will get back to you as soon as we can.

To help make it easier for us to investigate your issue, please follow the contributing guidelines.

@malept
Copy link
Member

malept commented Nov 21, 2019

Without knowing what the debug information is (see the section on debugging in our docs), I can only speculate as to what the problem is. My guess is that it's failing since the base isn't set and you're using a relatively recent version of Linux (e.g., not Ubuntu 16.04). #47 will autodetect the value for you if it isn't set already.

If this isn't the case, please supply the appropriate debugging information per the docs and we can try to determine what's actually wrong.

@malept malept closed this as completed Nov 21, 2019
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

2 participants