I've shallow-researched this and could not get any answers. I have been able to use the electron-packager (assume latest) to package my electron application, but I don't want to deliver DevTools as a feature to the end-user. I recognize that you can disable it, but are there any electron configuration options that I could modify to not deliver DevTools or is it something that would be managed by the electron packager module?
Related
I have my own update server to use in my applications and I want to use with Electron, I downloaded the update in zip format but I can't replace the app file because it's in use. How can I handle this?
The Electron framework from GitHub has a feature that lets you automatically update your app by using some server utility called Squirrel. What I am wondering is whether an Electron app can simply just update itself without depending on any server utility. Since an Electron app is basically a web-based app using HTML and Javascript, couldn't you just create an "empty" app that has no UI or code other than some bootup Javascript code that downloads the entire UI and other scripts to run the app?
In Electron,
I need to call an external program to do some work, wait for it to finish and terminate, and then move on to my next line of code.
I've tried shell.openItem("/applications/apptocall.app")
This works to launch the app, but it runs the next line of code in my electron app immediately instead of waiting for the externally launched app to finish.
What is the easiest way to do this?
The shell.openItem command of the Electron API is not meant to control the execution of external executables.
Instead, check out the node.js API for child_process.execFileSync (Docs).
There are certain limitations when using the child_process API along with ASAR archive packaging in Electron concerning fs.stats and child_process.spawn, you should read up on these issues here.
Is it possible to show the dev tools within a built electron app? The executable that I built using electron-packager is behaving differently from the app run using electron at the command line, and I have no way to see what kinds of exceptions are being thrown.
Yes it's possible to show the DevTools in a packaged app, just call someBrowserWindow.webContents.openDevTools(). If you want a menu item and/or keyboard shortcut to do it then you'll need to create and set your own menu for the browser window using someBrowserWindow.setMenu(someMenu).
I want to be able to access folders and files via my app, the problem is, when i want to access files on the desktop, i have to run it from a server or at least to emulate one using a program like xampp.
I know PhoneGap has it's own API to access files, but i need to make the app work on desktop too, and i don't mind it to be as normal offline website ( via index.html, not an exe ), but i still need to solve the security issues, i can't tell clients to run it from a server...
The big idea after it, is that i need the app to check for new files in the server, if there are any, to download them.
Also, i want the app to be able to access those downloaded files when it is offline as well.
I guess using only phonegap in ios will solve this, but i still need it to work on windows desktop as well.
PhoneGap released PhoneGap Desktop
http://phonegap.com/blog/2014/12/11/phonegap-desktop-app-beta/
I think this is what you are looking for!