electron

Notarizing electron app with electron-installer-dmg ( without electron-builder )

自闭症网瘾萝莉.ら 提交于 2019-12-11 16:14:11
问题 From macOS Catalina, it is compulsory to Notarize macOS apps. There are many guides avaiable but all are using electron-builder. Have anyone did this using electron-installer-dmg? I don't want to change my configurations but no luck till now using electron-installer-dmg. I could not figure out how to use electron-notarize package with electron-installer-dmg. 来源: https://stackoverflow.com/questions/58321290/notarizing-electron-app-with-electron-installer-dmg-without-electron-builder

progress bar when file download in electron application using node.js

二次信任 提交于 2019-12-11 16:06:19
问题 I want to show a progress bar when my video file download in the electron desktop application using node.js I had alredy tried progressbar.js library but it only show when the downloading is completed. The bellow is the part of my code where I am using the progressbar.js library. componentDidMount(){ this.bar = new ProgressBar.Circle(this.refs.downloadLoader, { strokeWidth: 3, easing: 'easeOut', duration: 1000, color: '#0c9928', trailColor: 'red', trailWidth: 0.3, svgStyle: 'block',

How do I access an object from the main process from a render process [Electron]

穿精又带淫゛_ 提交于 2019-12-11 15:58:57
问题 I'm trying to create a tool for editing files containing a object that is related to my companies business logic. I'm using electron to do so. I've created a javascript class which represents the object, handles its internals, and provides buisness functions on it: class Annotation { constructor() { this._variables = [] this._resourceGenerators = [] } get variables() { return this._variables } get resourceGenerators() { return this._resourceGenerators } save(path) { ... } static load(path) {

Fix Uncaught syntax error unexpected token < in electron

泄露秘密 提交于 2019-12-11 15:58:10
问题 I'm testing an electron app that will use php for some business logics. If I run the app from my MAMP stack all will work correctly, but if I run the app using electron, I will recieve an uncaught syntax error unexpected token < that is referenced to the <!DOCTYPE html> of my templates file. I read about this problem here on SO that is related to the path of my js and css files, but I can't figure out how to fix it, this because the paths are correct. I have an header.php file that include

Microsoft Azure login fails in electron app

℡╲_俬逩灬. 提交于 2019-12-11 15:44:14
问题 I am trying to integrate Microsoft Azure AD login functionality using ms-adal-angular6. This project is on Angular-6 to create a desktop application using Electron. Everywhere the login works fine except when I create the *.exe file because it has a file:// URL system. Below is the login failed screen after entering correct OTP during the login process. I tried adding a file://* Reply URL under portal.azure.com -> Azure Active Directory -> App registrations -> Settings(of one app) -> Redirect

Securing Electron app with Keycloak

喜夏-厌秋 提交于 2019-12-11 15:26:57
问题 I'm new to Keycloak and having a hard time authenticating a desktop app written on Electron. I looked at the documentation that discusses the OpenID Connect endpoint and then found a blog that walks through Keycloak and Postman and I was able to get tokens from Keycloak via this method. I'm pretty sure this is incorrect for a few reasons. How can I authenticate my Electron app without running a client side web server to handle the redirects? There is an example for authenticating a web app,

How to reuse vscode-json-languageservice?

独自空忆成欢 提交于 2019-12-11 15:25:18
问题 I have an Electron app that operates on JSON data, and the JSON data has schema files. The data is served up to my Electron app via Python Flask, and the Electron app displays it and allows editing it (in an abstraction of JSON). I want to enable showing validation of the fields in the Electron app. We wrote the schemas in VSCode and so they all have $schema keys and use many $refs to other schema files. I've found libraires like avj which seem interesting, but then found https://www.npmjs

NWJS, Electron - DOM not updating during long-running process

孤人 提交于 2019-12-11 15:18:06
问题 Just as in this unanswered question, I have a long-running process, during which I wish to update an the HTML of the app's only window -- but the DOM does not get updated until after the above process has completed. This is the case with both NW and Electron. The code is getting called, because the same routine also logs to the console - which is access through a window instance passed to the process, which is in a Node module. I can find no documentation that references such issues, and no

Using a dependency with an 'export' statement breaks at Electron app startup

时光毁灭记忆、已成空白 提交于 2019-12-11 15:08:57
问题 I'm trying to use electron-webpack to build an electron app with atlaskit. I've setup the smallest possible repo to reproduce the issue: fstephany/bug-report-electron-webpack. Here's my package.json: { "name": "electron-webpack-quick-start", "version": "0.0.0", "license": "MIT", "esm": "auto", "scripts": { "dev": "electron-webpack dev", "compile": "electron-webpack", "dist": "yarn compile && electron-builder", }, "dependencies": { "source-map-support": "^0.5.12", "esm": "^3.2.25", "@atlaskit

How to use electron to load the vue plugins installed dynamically into a plugins folder

故事扮演 提交于 2019-12-11 14:58:35
问题 I am using vue with electron to build a desktop application. I am using vue plugins to extend the functionality of the application. These vue plugins are hosted as npm modules in npm directory which can be installed from the applications plugin store using the live-plugin-manager which can be used to dynamically install plugins into plugins directory. I am using webpack to compile the vue front-end. When I directly use these plugins, they work perfectly. I need to know if there is any way I