Skip to content

Instantly share code, notes, and snippets.

@dai-shi
Last active August 23, 2018 08:16
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save dai-shi/15d8edac8075fc70e36f10fa531540a6 to your computer and use it in GitHub Desktop.
Save dai-shi/15d8edac8075fc70e36f10fa531540a6 to your computer and use it in GitHub Desktop.
#!/usr/bin/env node
const electronInstaller = require('electron-winstaller');
(async () => {
try {
const options = JSON.parse(process.env.OPTIONS || process.argv[process.argv.length - 1]);
await electronInstaller.createWindowsInstaller(options);
} catch (e) {
console.error(e);
}
})();
{
"name": "electron-winstaller-runner",
"version": "1.0.0",
"bin": "./index.js",
"dependencies": {
"electron-winstaller": "latest"
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment