somekay / sound-machine-electron-guide Goto Github PK
View Code? Open in Web Editor NEWAccompanying repository for the Electron guide
License: MIT License
Accompanying repository for the Electron guide
License: MIT License
I simple wanted to check the behavior of the app.quit() in this app. We are making an app with a tray icon as well. But they trying to implement osx behavior by not quiting app when all windows are closed. However the normal command cmd + q now needs to be pressed twice??
But trying package this app i get this error in return. Im not really into electron lets make that clear.
CANNOT RUN WITH NODE 10.15.3
Electron Packager requires Node 4.0 or above.
error Command failed with exit code 1.
Run yarn start does work
Great app. I have built a electron app on the top of this demo. I want to load the URL from settings.html. Currently I have to add the Url manually but it should be user defined. How can I do this? I am having hard time figuring this out. Is it possible to have a mainWindow.loadUrl = somevariable and load it via input value of the field.
Amazing tutorial, thanks so much.
When I try to build the application though, I keep getting this error...
Here's the output:
>npm run-script package
> [email protected] package /Users/michele.pasin/Dropbox/code/electron/sound-machine-electron-guide
> electron-packager ./ SoundMachine --all --out ~/Desktop/SoundMachine --version 0.30.2 --overwrite --icon=./app/img/app-icon.icns
The strict-ssl parameter is deprecated, use download.strictSSL instead
The strict-ssl parameter is deprecated, use download.strictSSL instead
The strict-ssl parameter is deprecated, use download.strictSSL instead
The strict-ssl parameter is deprecated, use download.strictSSL instead
The strict-ssl parameter is deprecated, use download.strictSSL instead
The strict-ssl parameter is deprecated, use download.strictSSL instead
Packaging app for platform linux ia32 using electron v0.30.2
Packaging app for platform win32 ia32 using electron v0.30.2
spawn wine ENOENT
npm ERR! Darwin 15.3.0
npm ERR! argv "/usr/local/bin/node" "/usr/local/bin/npm" "run-script" "package"
npm ERR! node v4.4.3
npm ERR! npm v2.15.1
npm ERR! code ELIFECYCLE
npm ERR! [email protected] package: `electron-packager ./ SoundMachine --all --out ~/Desktop/SoundMachine --version 0.30.2 --overwrite --icon=./app/img/app-icon.icns`
npm ERR! Exit status 1
npm ERR!
npm ERR! Failed at the [email protected] package script 'electron-packager ./ SoundMachine --all --out ~/Desktop/SoundMachine --version 0.30.2 --overwrite --icon=./app/img/app-icon.icns'.
npm ERR! This is most likely a problem with the sound_machine package,
npm ERR! not with npm itself.
npm ERR! Tell the author that this fails on your system:
npm ERR! electron-packager ./ SoundMachine --all --out ~/Desktop/SoundMachine --version 0.30.2 --overwrite --icon=./app/img/app-icon.icns
npm ERR! You can get information on how to open an issue for this project with:
npm ERR! npm bugs sound_machine
npm ERR! Or if that isn't available, you can get their info via:
npm ERR!
npm ERR! npm owner ls sound_machine
npm ERR! There is likely additional logging output above.
npm ERR! Please include the following file with any support request:
npm ERR! /Users/michele.pasin/Dropbox/code/electron/sound-machine-electron-guide/npm-debug.log
Following this blog: https://medium.com/developers-writing/building-a-desktop-application-with-electron-204203eeb658
$ npm install --save-dev electron-prebuilt
npm WARN deprecated [email protected]: electron-prebuilt has been renamed to electron. For more details, see http://electron.atom.io/blog/2016/08/16/npm-install-electron
@bojzi I will work around errors as long as I can and report issues here. If you are not interested in further issues regarding the blog or you are not going to fix them anyway, just let me know to save me that work. Thanks.
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.