electron

Signing a Windows installer (.exe) for application created using Electron

一个人想着一个人 提交于 2019-12-06 02:28:47
I have a simple app built using Electron framework . I packaged the code using electron-packager-interactive . I also created a Windows installer file which is ready for distribution using Inno Setup compiler (Single .exe file). The problem here is when users run the .exe file, a popup from Windows Smart screen blocks it saying publisher is unknown . Only after "More info", it allows to install with " Run anyway ". Probably it's because my application is not signed . So can anyone help me how to sign an Electron application (Windows application) so that it's treated as trusted application ?

How to embed a mac app extension in an Electron app?

本小妞迷上赌 提交于 2019-12-06 02:21:50
问题 I'm trying to embed a Finder Sync extension written in Swift in my app written with Electron. How can I manage to make them work together and communicate with each other? I have read the Apple documentation but it only explains how to add a target to a native application. I also noticed that I can manually inject the .appex compiled file (produced by XCode) in the application Plugins folder using electron builder. How can I develop and test the extension in XCode and embed it correctly in a

How to bundle a third party binary with Electron?

大憨熊 提交于 2019-12-06 01:48:19
问题 I am still new to the electron ecosystem and desktop development in general but what I wish to do is to interface with a third party, open source application that comes bundled in with my software. First, I am unsure on what the package options to distribute should be. Is it customary to have two downloads, one for users that already have the third party binary installed, and another one that includes it? Also how do I go about actually packaging, and installing the binary? Should this be an

Embed Mongodb with Electron

孤街浪徒 提交于 2019-12-06 01:11:31
I am keeping MongoDB source code inside electron source code and running MongoDB using this command : const app = require('electron').app; const child_process = require('child_process'); const dbInstanceDir = app.getAppPath(); const startMongo = dbInstanceDir + mongodb/bin/mongod --dbpath mydbpath --port 27017 --logpath mylogfile child_process.exec(startMongo, (error, stdout, stderr) => { }); Above command is working while development but it not working after bundling. I am using electron builder to make bundle. MongoDB source code is at root level. As far as I know, you cannot package MongoDB

How to import Electron in angular 2 using angular cli

喜欢而已 提交于 2019-12-06 00:46:02
I'm trying to prototype an Electron app using Angular 2 (configured with the latest webpack-based angular cli) for the gui, but I'm stuck since I don't get how to import Electron api in my angular2 components. Specifically I want to be able to open a new BrowserWindow at the click on a button in the ui... so: <button type="button" (click)="openNewWindow()"> open </button> and in my component: openNewWindow() { let appWindow = new BrowserWindow({width: 800, height: 600}); appWindow.loadUrl('http://www.google.com'); } but... how can I import BrowserWindow?! By using: import { BrowserWindow }

What is minimum system requirements to run electron apps?

 ̄綄美尐妖づ 提交于 2019-12-06 00:30:30
问题 I am deciding between options for building native desktop app. I do not find any documentation for minimum system specs (OS/HW) for runtime of electron apps. Can you help me out? 回答1: based on Electron supported platforms and Chrome minimum requirements OS requirements Windows Windows 7 and later are supported, older operating systems are not supported (and do not work). Both x86 and amd64 (x64) binaries are provided for Windows. Please note, the ARM version of Windows is not supported for

Electron JS Images from Local File System

两盒软妹~` 提交于 2019-12-06 00:09:39
问题 I am new to electron and trying to load images from the local file system to display it on screen. So for images from the remote URLs are working just fine when I do <img src='https://example.com/image.jpg' /> But when I try to load the same image from the local file system in my render process it does not work <img src='file:///C:/tmp/image.jpg' /> is not rendered. This is the error I got: > Not allowed to load local resource: > file:///C:/tmp/nW4jY0CHsepy08J9CkF1u3CJVfi4Yvzl_screenshot.png

Read Windows command line option in Electron renderer process

吃可爱长大的小学妹 提交于 2019-12-05 19:53:56
I have a deployed Electron App in Windows. I'm trying to add a command line option on the .exe. "C:\Program Files\MyApp.exe" -debug How I can read the debug flag inside my App? I tried with process.argv, but the debug variable isn't there. All your arguments are inside the process.argv array. So if you are trying to access the arguments from the main process you can just use the following: //the command you called is always argv[0] process.argv[0] == "C:\Program Files\MyApp.exe" //every other argument, separated by spaces, is in the array in order process.argv[1] == "-debug" If you are trying

Save video blob to filesystem electron/node js

半城伤御伤魂 提交于 2019-12-05 19:34:48
In my electron application, users can record video from their webcam using the MediaRecorder API. When the user hit the "stop record" button, I get a blob of the recorded video. What i would like to do is to convert this blob to a real webm video and write it into the user's filesystem with for example : fs.writeFile(localdir + '\\video.webm', videoBlob); // does not work The example below works pretty well with base64 image snapshot that I get from the webcam, but i can't make it work with the video blob that I get. Thanks for enlighten me ! Create a video blob. chunks is an array of event

TestCafe with Electron: Determine if app is visible on Windows desktop

馋奶兔 提交于 2019-12-05 19:01:24
Our Electron application starts minimized to the Windows tray notification area i.e. not visible on the desktop. If I attempt to get visibility information through methods such as this or as described here , checking the 'visible' property always returns true . For example, the below always returns true whether the app is minimized to the notification area or visible on the desktop: if(await Selector('button', { visibilityCheck: true }).visible) console.log("VISIBLE"); else console.log("NOT VISIBLE"); As a hail-mary, I have also attempted to check the 'focused' property but that also always