You can add files to the final asar using electron-builder's extraFiles field in package.json.
In package.json,
"build": {
"additionalFiles": {
"from": "resources/${os}/myBin",
"to": "Resources/bin/myBin",
"pattern": "**/*"
}You can add files to the final asar using electron-builder's extraFiles field in package.json.
In package.json,
"build": {
"additionalFiles": {
"from": "resources/${os}/myBin",
"to": "Resources/bin/myBin",
"pattern": "**/*"
}In main/index.js,
import { globalShortcut } from 'electron'
// mainWindow is an instance of BrowserWindow
let mainWindow;
app.on('ready', () => {
globalShortcut.on('CommandOrControl+,', () => {
mainWindow.webContents.send('shortcut-settings')Electron allows execution via child_process.execFile but, restricts fs, fork and exec in the production runtime unless the executable is unpacked.
Asar is the tar-like archiving format used by Electron. All packed files are treated as "read only". To execute a distributed file, electron-builder needs to be configured to leave our executable as an "unpacked file".
In package.json,
"build": {
"asarUnpack": [
"lib/mybin"| docker save <my_image> | ssh -C [email protected] docker load |
| /* | |
| usage: @import url("container.css"); at the top of your base stylesheet | |
| */ | |
| /* ------------ */ | |
| /* Mobile first */ | |
| /* ------------ */ | |
| .container { | |
| padding: 0 50px; |
| # For formatting see: https://git-scm.com/docs/pretty-formats | |
| git log --pretty=format:"* \`%ad\` - %s %n%b" --date=short | sed '/^\s*$/d' > gitlog.md |
| package main | |
| import ( | |
| "fmt" | |
| "io" | |
| "github.com/alecthomas/chroma" | |
| "github.com/alecthomas/chroma/formatters/html" | |
| "github.com/alecthomas/chroma/lexers" |
I hereby claim:
To claim this, I am signing this object:
Please note, that this is a guide that assumes you're on OSX.
For details see https://github.com/moovweb/gvm
| localhost:9002 | |
| root dist | |
| gzip | |
| log ../access.log | |
| pprof | |
| rewrite { | |
| r ^(.+)$ | |
| if {file} not favicon.ico | |
| to {path} {path}/ /index.html?{1} | |
| } |