electron-builder

How to increase the max memory limit for the app built by electron-builder?

旧城冷巷雨未停 提交于 2019-11-30 13:15:06
Version : "electron": "1.6.2", "electron-builder": "^16.8.2", Target : windows x64 I know I can add --js-flags="--max-old-space-size=4096" when run it using electron. But Where should I put this param to the build config of electron-builder? user1349923 In main.js, add: app.commandLine.appendSwitch('js-flags', '--max-old-space-size=4096'); According to Supported Chrome Command Line Switches , this should be called before the ready event is emitted. For example: import { app } from "electron"; app.commandLine.appendSwitch('js-flags', '--max-old-space-size=4096'); app.on('ready', () => { // ...

How to parameterize msi file from electron builder

↘锁芯ラ 提交于 2019-11-30 09:30:04
问题 I'm trying to create an .msi installer file with electron-builder (version 20.39.0), that can be parameterized during install time. The parameters (e.g. server endpoint) should be written in a file. Example: when MsiExec /i "MyProject.msi" SERVER_ENDPOINT=myapp.example.com then myapp.example.com should appear in a file in the installation dir. I tried to edit electron-builder's wix template file adding the following to write ${SERVER_ENDPOINT} to server.txt File C:\...\MyProject\node_modules

Open app and pass parameters with deep linking using Electron (macOS)

99封情书 提交于 2019-11-30 06:43:23
I want to open app and pass parameters with deep linking using Electron (macOS). Project 'electron-deep-linking-mac-win' is on GitHub . Edited package.json , following ‘electron-builder’ quick-setup-guide to produce mac installer: { "name": "electron-deep-linking-osx", "version": "1.0.0", "description": "A minimal Electron application with Deep Linking (OSX)", "main": "main.js", "scripts": { "start": "electron .", "pack": "build --dir", "dist": "build" }, "repository": "https://github.com/oikonomopo/electron-deep-linking-osx", "keywords": [ "Electron", "osx", "deep-linking" ], "author":

How to add folders and files to electron build using electron-builder

十年热恋 提交于 2019-11-30 05:49:07
问题 I am creating an electron which running react generated from create-react-app. Then i add nedbjs(a persistence database) and camojs(ODM for nedb) as dependency. To connect react with nedb i use electron ipc. Here is my project structure: And here is my package.json: "scripts": { "start": "react-scripts start", "build": "react-scripts build", "test": "react-scripts test --env=jsdom", "eject": "react-scripts eject", "electron-dev": "concurrently \"cross-env BROWSER=none yarn start\" \"wait-on

How to increase the max memory limit for the app built by electron-builder?

两盒软妹~` 提交于 2019-11-29 13:14:32
问题 Version : "electron": "1.6.2", "electron-builder": "^16.8.2", Target : windows x64 I know I can add --js-flags="--max-old-space-size=4096" when run it using electron. But Where should I put this param to the build config of electron-builder? 回答1: In main.js, add: app.commandLine.appendSwitch('js-flags', '--max-old-space-size=4096'); According to Supported Chrome Command Line Switches, this should be called before the ready event is emitted. For example: import { app } from "electron"; app

electron-builder vs electron-packager [closed]

核能气质少年 提交于 2019-11-28 15:35:26
问题 Closed . This question needs to be more focused. It is not currently accepting answers. Want to improve this question? Update the question so it focuses on one problem only by editing this post. Closed 12 months ago . What is main difference between electron-builder and electron-packager. Is there some example projects for both? Which is better for standalone .exe application build? 回答1: electron-packager was (update: changed in this commit: "refactor: merge electron-packager") used by

Open app and pass parameters with deep linking using Electron (macOS)

南笙酒味 提交于 2019-11-27 13:15:06
问题 I want to open app and pass parameters with deep linking using Electron (macOS). Project 'electron-deep-linking-mac-win' is on GitHub. Edited package.json , following ‘electron-builder’ quick-setup-guide to produce mac installer: { "name": "electron-deep-linking-osx", "version": "1.0.0", "description": "A minimal Electron application with Deep Linking (OSX)", "main": "main.js", "scripts": { "start": "electron .", "pack": "build --dir", "dist": "build" }, "repository": "https://github.com