PhilippLgh / electron-toolkit
- суббота, 9 декабря 2017 г. в 03:14:57
Tools to make launching Electron apps easier
"Command Line Gui Tools" to make launching Electron apps easier, faster and fun
.ico
for Windows.icns
for macOS.png
for LinuxOverview |
---|
|
Electron Builder GUI | Icon Generator |
---|---|
|
|
Screen Capturer | Website Builder |
---|---|
|
|
npm install electron-toolkit --save-dev
{
...
"scripts": {
"electron-toolkit": "electron ./node_modules/electron-toolkit"
}
}
npm install electron --save-dev
npm install electron-builder --save-dev
npm run electron-toolkit
See Wiki
<webview :src="'https://' + url" :preload="preloadScript" ></webview>
<webview>
tags before they get attached using the will-attach-webview eventapp.on('web-contents-created', (event, contents) => {
contents.on('will-attach-webview', (event, webPreferences, params) => {
// Strip away preload scripts if unused or verify their location is legitimate
delete webPreferences.preload
delete webPreferences.preloadURL
// Disable node integration
webPreferences.nodeIntegration = false
// Verify URL being loaded
if (!params.src.startsWith('https://yourapp.com/')) {
event.preventDefault()
}
})
})
We welcome and encourage all sorts of contributions that help us make this project more awesome. Contact me philipplgh@gmail.com.
License for electron-toolkit
MIT License
Copyright (c) 2017 Philipp Langhans & Alina Sinelnikova / Hytag,inc
License for website template (inside Website Builder)
Copyright (c) 2017 Hytag, inc
The License grants you, free of charge, an ongoing, non-exclusive, worldwide license to use, copy, modify, manipulate the template to create a website for your commercial or non-commercial end product. You are not allowed to sublicense, and/or sell the template.