tommoor / electron-lets-move Goto Github PK
View Code? Open in Web Editor NEWAutomatically move Electron apps to the Applications directory
Automatically move Electron apps to the Applications directory
I just tried to test lets-move
with default settings on unpackaged app.
Not sure if this is known behavior, but when ESC pressed it breaks app starting via npm start
Start script electron .
seems to be broken.
I think ESC calls 'Move To Application' button instead of 'Don't Move' Button by default.
$ npm start
> [email protected] start /app/path
> electron .
events.js:163
throw er; // Unhandled 'error' event
^
Error: spawn /app/path/node_modules/electron/dist/Electron.app/Contents/MacOS/Electron ENOENT
at exports._errnoException (util.js:1050:11)
at Process.ChildProcess._handle.onexit (internal/child_process.js:193:32)
at onErrorNT (internal/child_process.js:367:16)
at _combinedTickCallback (internal/process/next_tick.js:80:11)
at process._tickCallback (internal/process/next_tick.js:104:9)
at Module.runMain (module.js:607:11)
at run (bootstrap_node.js:427:7)
at startup (bootstrap_node.js:151:9)
at bootstrap_node.js:542:3
Reinstalling electron helps to fix this issue
npm install electron -D
Is it possible to move โ or rather copy โ the file in case it's inside a mounted disk? Right now nothing happens.
When the destination directory is not writable you already use sudo to move the application. This works fine, but only when there is not an already existing version of the same application in that directory.
But if there is, you also try to move that already existing application with the same name to the trash. If the destination directory is not writable that fails. And then the move also fails because the destination already exists.
Most electron apps are using two packages like you can see here and here. In turn, the "electron" package won't be inside the package.json
where your package sits.
This will make npm keep throwing the error!
npm WARN [email protected] requires a peer of electron@* but none was installed.
When package an electron app on local machine, it works.
But when I upload the app to a web server and downloaded to Downloads folder it doesn't work. The password popup show correctly though.
Try this sample app.
https://dl.dropboxusercontent.com/u/85873187/gethello/Stack-1.0.0-mac.zip
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.