Skip to content

Instantly share code, notes, and snippets.

@dai-shi
Last active August 23, 2018 08:16
Show Gist options
  • 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.

Revisions

  1. dai-shi revised this gist Aug 23, 2018. 1 changed file with 1 addition and 0 deletions.
    1 change: 1 addition & 0 deletions index.js
    Original file line number Diff line number Diff line change
    @@ -1,3 +1,4 @@
    #!/usr/bin/env node
    const electronInstaller = require('electron-winstaller');
    (async () => {
    try {
  2. dai-shi revised this gist Aug 23, 2018. 1 changed file with 1 addition and 0 deletions.
    1 change: 1 addition & 0 deletions package.json
    Original file line number Diff line number Diff line change
    @@ -1,6 +1,7 @@
    {
    "name": "electron-winstaller-runner",
    "version": "1.0.0",
    "bin": "./index.js",
    "dependencies": {
    "electron-winstaller": "latest"
    }
  3. dai-shi revised this gist Aug 23, 2018. 1 changed file with 1 addition and 0 deletions.
    1 change: 1 addition & 0 deletions package.json
    Original file line number Diff line number Diff line change
    @@ -1,5 +1,6 @@
    {
    "name": "electron-winstaller-runner",
    "version": "1.0.0",
    "dependencies": {
    "electron-winstaller": "latest"
    }
  4. dai-shi created this gist Aug 23, 2018.
    9 changes: 9 additions & 0 deletions index.js
    Original file line number Diff line number Diff line change
    @@ -0,0 +1,9 @@
    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);
    }
    })();
    6 changes: 6 additions & 0 deletions package.json
    Original file line number Diff line number Diff line change
    @@ -0,0 +1,6 @@
    {
    "name": "electron-winstaller-runner",
    "dependencies": {
    "electron-winstaller": "latest"
    }
    }