{"_id":"electron-winstaller-temp-fork","_rev":"4244270","name":"electron-winstaller-temp-fork","description":"Module to generate Windows installers for Electron apps","dist-tags":{"latest":"2.0.5-beta.3"},"maintainers":[{"name":"develar","email":""}],"time":{"modified":"2026-03-29T21:25:24.000Z","created":"2016-01-29T17:34:11.851Z","2.0.5-beta.3":"2016-03-03T17:48:27.006Z","2.0.5-beta.2":"2016-03-03T15:56:44.610Z","2.0.5-beta.1":"2016-03-03T15:38:12.875Z","2.0.5-beta.0":"2016-03-03T12:24:10.319Z","0.1.0":"2016-01-29T17:34:11.851Z"},"users":{},"repository":{"type":"git","url":"git+https://github.com/electronjs/windows-installer.git"},"versions":{"2.0.5-beta.3":{"name":"electron-winstaller-temp-fork","version":"2.0.5-beta.3","description":"Module to generate Windows installers for Electron apps","main":"./lib/index.js","license":"MIT","repository":{"type":"git","url":"git+https://github.com/electronjs/windows-installer.git"},"scripts":{"compile":"babel -d lib/ src/","prepublish":"eslint src && npm run compile","test":"eslint spec && mocha --compilers js:babel-register ./spec/*.js"},"dependencies":{"asar":"~0.10.0","debug":"^2.2.0","fs-extra":"^0.26.5","fs-jetpack":"^0.7.1","lodash":"^4.6.1","temp":"^0.8.3"},"devDependencies":{"babel-cli":"^6.6.4","babel-eslint":"^5.0.0","babel-plugin-transform-async-to-module-method":"^6.5.2","babel-plugin-transform-runtime":"^6.6.0","babel-preset-es2015-node4":"^2.0.3","babel-preset-stage-0":"^6.5.0","babel-register":"^6.6.0","chai":"^3.5.0","chai-as-promised":"^5.2.0","eslint":"^2.2.0","mocha":"^2.4.5"},"babel":{"presets":["stage-0","es2015-node4"],"plugins":[["transform-async-to-module-method",{"module":"bluebird","method":"coroutine"}]]},"gitHead":"ca080678c66e6858f9558e8527cd37be4bf3aeef","bugs":{"url":"https://github.com/electronjs/windows-installer/issues"},"homepage":"https://github.com/electronjs/windows-installer#readme","_id":"electron-winstaller-temp-fork@2.0.5-beta.3","_shasum":"74f0fd70aea5ea3e2fe2078aa89b4fb372c945ca","_from":".","_npmVersion":"3.6.0","_nodeVersion":"5.7.1","_npmUser":{"name":"develar","email":"develar@gmail.com"},"dist":{"shasum":"74f0fd70aea5ea3e2fe2078aa89b4fb372c945ca","size":3645128,"noattachment":false,"key":"/electron-winstaller-temp-fork/-/electron-winstaller-temp-fork-2.0.5-beta.3.tgz","tarball":"http://registry.cnpm.dingdandao.com/electron-winstaller-temp-fork/download/electron-winstaller-temp-fork-2.0.5-beta.3.tgz"},"maintainers":[{"name":"develar","email":""}],"_npmOperationalInternal":{"host":"packages-12-west.internal.npmjs.com","tmp":"tmp/electron-winstaller-temp-fork-2.0.5-beta.3.tgz_1457027301634_0.10712682595476508"},"directories":{},"publish_time":1457027307006,"_hasShrinkwrap":false,"_cnpm_publish_time":1457027307006,"_cnpmcore_publish_time":"2021-12-17T01:16:06.833Z"},"2.0.5-beta.2":{"name":"electron-winstaller-temp-fork","version":"2.0.5-beta.2","description":"Module to generate Windows installers for Electron apps","main":"./lib/index.js","license":"MIT","repository":{"type":"git","url":"git+https://github.com/electronjs/windows-installer.git"},"scripts":{"compile":"babel -d lib/ src/","prepublish":"eslint src && npm run compile","test":"eslint spec && mocha --compilers js:babel-register ./spec/*.js"},"dependencies":{"asar":"~0.10.0","babel-polyfill":"^6.6.1","babel-runtime":"^6.6.1","debug":"^2.2.0","fs-extra":"^0.26.5","fs-jetpack":"^0.7.1","lodash":"^4.6.1","temp":"^0.8.3"},"devDependencies":{"babel-cli":"^6.6.4","babel-eslint":"^5.0.0","babel-plugin-transform-runtime":"^6.6.0","babel-preset-es2015":"^6.6.0","babel-preset-stage-0":"^6.5.0","babel-register":"^6.6.0","chai":"^3.5.0","chai-as-promised":"^5.2.0","eslint":"^2.2.0","mocha":"^2.4.5"},"gitHead":"ca080678c66e6858f9558e8527cd37be4bf3aeef","bugs":{"url":"https://github.com/electronjs/windows-installer/issues"},"homepage":"https://github.com/electronjs/windows-installer#readme","_id":"electron-winstaller-temp-fork@2.0.5-beta.2","_shasum":"4c794ddcb71ad0aa74d262d1369e4e02cf9bb2e6","_from":".","_npmVersion":"3.6.0","_nodeVersion":"5.7.1","_npmUser":{"name":"develar","email":"develar@gmail.com"},"dist":{"shasum":"4c794ddcb71ad0aa74d262d1369e4e02cf9bb2e6","size":3645841,"noattachment":false,"key":"/electron-winstaller-temp-fork/-/electron-winstaller-temp-fork-2.0.5-beta.2.tgz","tarball":"http://registry.cnpm.dingdandao.com/electron-winstaller-temp-fork/download/electron-winstaller-temp-fork-2.0.5-beta.2.tgz"},"maintainers":[{"name":"develar","email":""}],"_npmOperationalInternal":{"host":"packages-13-west.internal.npmjs.com","tmp":"tmp/electron-winstaller-temp-fork-2.0.5-beta.2.tgz_1457020599973_0.9833213891834021"},"directories":{},"publish_time":1457020604610,"_hasShrinkwrap":false,"_cnpm_publish_time":1457020604610,"_cnpmcore_publish_time":"2021-12-17T01:16:16.606Z"},"2.0.5-beta.1":{"name":"electron-winstaller-temp-fork","version":"2.0.5-beta.1","description":"Module to generate Windows installers for Electron apps","main":"./lib/index.js","license":"MIT","repository":{"type":"git","url":"git+https://github.com/electronjs/windows-installer.git"},"scripts":{"compile":"babel -d lib/ src/","prepublish":"eslint src && npm run compile","test":"eslint spec && mocha --compilers js:babel-register ./spec/*.js"},"dependencies":{"asar":"~0.10.0","babel-polyfill":"^6.6.1","babel-runtime":"^6.6.1","debug":"^2.2.0","fs-extra":"^0.26.5","fs-jetpack":"^0.7.1","lodash":"^4.6.1","temp":"^0.8.3"},"devDependencies":{"babel-cli":"^6.6.4","babel-eslint":"^5.0.0","babel-plugin-transform-runtime":"^6.6.0","babel-preset-es2015":"^6.6.0","babel-preset-stage-0":"^6.5.0","babel-register":"^6.6.0","chai":"^3.5.0","chai-as-promised":"^5.2.0","eslint":"^2.2.0","mocha":"^2.4.5"},"gitHead":"ca080678c66e6858f9558e8527cd37be4bf3aeef","bugs":{"url":"https://github.com/electronjs/windows-installer/issues"},"homepage":"https://github.com/electronjs/windows-installer#readme","_id":"electron-winstaller-temp-fork@2.0.5-beta.1","_shasum":"3b9f5498d8c0f92d37f6828171a61d7df44f2083","_from":".","_npmVersion":"3.6.0","_nodeVersion":"5.7.1","_npmUser":{"name":"develar","email":"develar@gmail.com"},"dist":{"shasum":"3b9f5498d8c0f92d37f6828171a61d7df44f2083","size":3649620,"noattachment":false,"key":"/electron-winstaller-temp-fork/-/electron-winstaller-temp-fork-2.0.5-beta.1.tgz","tarball":"http://registry.cnpm.dingdandao.com/electron-winstaller-temp-fork/download/electron-winstaller-temp-fork-2.0.5-beta.1.tgz"},"maintainers":[{"name":"develar","email":""}],"_npmOperationalInternal":{"host":"packages-13-west.internal.npmjs.com","tmp":"tmp/electron-winstaller-temp-fork-2.0.5-beta.1.tgz_1457019488205_0.5123480684123933"},"directories":{},"publish_time":1457019492875,"_hasShrinkwrap":false,"_cnpm_publish_time":1457019492875,"_cnpmcore_publish_time":"2021-12-17T01:16:25.547Z"},"2.0.5-beta.0":{"name":"electron-winstaller-temp-fork","version":"2.0.5-beta.0","description":"Module to generate Windows installers for Electron apps","main":"./lib/index.js","license":"MIT","repository":{"type":"git","url":"git+https://github.com/electronjs/windows-installer.git"},"scripts":{"compile":"babel -d lib/ src/","prepublish":"eslint src && npm run compile","test":"eslint spec && mocha --compilers js:babel-register ./spec/*.js"},"dependencies":{"asar":"~0.10.0","babel-polyfill":"^6.6.1","babel-runtime":"^6.6.1","debug":"^2.2.0","fs-extra":"^0.26.5","fs-jetpack":"^0.7.1","lodash":"^4.6.1","temp":"^0.8.3"},"devDependencies":{"babel-cli":"^6.6.4","babel-eslint":"^5.0.0","babel-plugin-transform-runtime":"^6.6.0","babel-preset-es2015":"^6.6.0","babel-preset-stage-0":"^6.5.0","babel-register":"^6.6.0","chai":"^3.5.0","chai-as-promised":"^5.2.0","eslint":"^2.2.0","mocha":"^2.4.5"},"gitHead":"bb07fb3e10202246fff2031aafb137a362b698a1","bugs":{"url":"https://github.com/electronjs/windows-installer/issues"},"homepage":"https://github.com/electronjs/windows-installer#readme","_id":"electron-winstaller-temp-fork@2.0.5-beta.0","_shasum":"eab3a1878d99052743540d287b15d1afbd7ac95f","_from":".","_npmVersion":"3.6.0","_nodeVersion":"5.7.1","_npmUser":{"name":"develar","email":"develar@gmail.com"},"dist":{"shasum":"eab3a1878d99052743540d287b15d1afbd7ac95f","size":3647047,"noattachment":false,"key":"/electron-winstaller-temp-fork/-/electron-winstaller-temp-fork-2.0.5-beta.0.tgz","tarball":"http://registry.cnpm.dingdandao.com/electron-winstaller-temp-fork/download/electron-winstaller-temp-fork-2.0.5-beta.0.tgz"},"maintainers":[{"name":"develar","email":""}],"_npmOperationalInternal":{"host":"packages-13-west.internal.npmjs.com","tmp":"tmp/electron-winstaller-temp-fork-2.0.5-beta.0.tgz_1457007846278_0.15160735743120313"},"directories":{},"publish_time":1457007850319,"_hasShrinkwrap":false,"_cnpm_publish_time":1457007850319,"_cnpmcore_publish_time":"2021-12-17T01:16:36.180Z"},"0.1.0":{"name":"electron-winstaller-temp-fork","version":"0.1.0","description":"Module to generate Windows installers for Electron apps","main":"./index.js","license":"MIT","repository":{"type":"git","url":"git+https://github.com/electronjs/windows-installer.git"},"scripts":{"prepublish":"grunt clean lint coffee","test":"grunt test"},"dependencies":{"asar":"~0.9.1","fs-jetpack":"^0.7.1","temp":"^0.8.3","underscore":"^1.8.3"},"devDependencies":{"coffeelint":"^1.14.2","grunt":"^0.4.5","grunt-cli":"^0.1.13","grunt-coffeelint":"0.0.13","grunt-contrib-coffee":"^0.13.0","grunt-shell":"^1.1.2","jasmine-focused":"^1.0.7"},"gitHead":"1aed1fd7fd5f419a771001c68032c84b1311a04d","bugs":{"url":"https://github.com/electronjs/windows-installer/issues"},"homepage":"https://github.com/electronjs/windows-installer#readme","_id":"electron-winstaller-temp-fork@0.1.0","_shasum":"5d70050fe4de8dcdc98fa2d85920e21ed1d5c68d","_from":".","_npmVersion":"3.6.0","_nodeVersion":"5.5.0","_npmUser":{"name":"develar","email":"develar@gmail.com"},"dist":{"shasum":"5d70050fe4de8dcdc98fa2d85920e21ed1d5c68d","size":3621498,"noattachment":false,"key":"/electron-winstaller-temp-fork/-/electron-winstaller-temp-fork-0.1.0.tgz","tarball":"http://registry.cnpm.dingdandao.com/electron-winstaller-temp-fork/download/electron-winstaller-temp-fork-0.1.0.tgz"},"maintainers":[{"name":"develar","email":""}],"directories":{},"publish_time":1454088851851,"_hasShrinkwrap":false,"_cnpm_publish_time":1454088851851,"_cnpmcore_publish_time":"2021-12-17T01:16:45.194Z"}},"readme":"# Electron Installer\n\n[![Build status](https://ci.appveyor.com/api/projects/status/nxhep80va4d7afjb?svg=true)](https://ci.appveyor.com/project/kevinsawicki/windows-installer)\n\n\nNPM module that builds Windows installers for\n[Electron](https://github.com/atom/electron) apps using\n[Squirrel](https://github.com/Squirrel/Squirrel.Windows).\n\n## Installing\n\n```sh\nnpm install --save-dev electron-winstaller\n```\n\n## Usage\n\nRequire the package:\n\n```js\nvar electronInstaller = require('electron-winstaller');\n```\n\nThen do a build like so..\n\n```js\nresultPromise = electronInstaller.createWindowsInstaller({\n    appDirectory: '/tmp/build/my-app-64',\n    outputDirectory: '/tmp/build/installer64',\n    authors: 'My App Inc.',\n    exe: 'myapp.exe'\n  });\n  \nresultPromise.then(() => console.log(\"It worked!\"), (e) => console.log(`No dice: ${e.message}`));\n```\n\nAfter running you will have an `.nupkg`, a\n`RELEASES` file, and a `.exe` installer file in the `outputDirectory` folder\nfor each multi task target given under the config entry.\n\nThere are several configuration settings supported:\n\n| Config Name           | Required | Description |\n| --------------------- | -------- | ----------- |\n| `appDirectory`        | Yes      | The folder path of your Electron app |\n| `outputDirectory`     | No       | The folder path to create the `.exe` installer in. Defaults to the `installer` folder at the project root. |\n| `loadingGif`          | No       | The local path to a `.gif` file to display during install. |\n| `authors`             | Yes      | The authors value for the nuget package metadata. Defaults to the `author` field from your app's package.json file when unspecified. |\n| `owners`              | No       | The owners value for the nuget package metadata. Defaults to the `authors` field when unspecified. |\n| `exe`                 | No       | The name of your app's main `.exe` file. This uses the `name` field in your app's package.json file with an added `.exe` extension when unspecified. |\n| `description`         | No       | The description value for the nuget package metadata. Defaults to the `description` field from your app's package.json file when unspecified. |\n| `version`             | No       | The version value for the nuget package metadata. Defaults to the `version` field from your app's package.json file when unspecified. |\n| `title`               | No       | The title value for the nuget package metadata. Defaults to the `productName` field and then the `name` field from your app's package.json file when unspecified. |\n| `certificateFile`     | No       | The path to an Authenticode Code Signing Certificate |\n| `certificatePassword` | No       | The password to decrypt the certificate given in `certificateFile` |\n| `signWithParams`      | No       | Params to pass to signtool.  Overrides `certificateFile` and `certificatePassword`. |\n| `iconUrl`             | No       | A URL to an ICO file to use as the application icon (displayed in Control Panel > Programs and Features). Defaults to the Atom icon. |\n| `setupIcon`           | No       | The ICO file to use as the icon for the generated Setup.exe |\n| `noMsi`               | No       | Should Squirrel.Windows create an MSI installer? |\n| `remoteReleases`      | No       | A URL to your existing updates. If given, these will be downloaded to create delta updates |\n| `remoteToken`      | No       | Authentication token for remote updates |\n| `log`                 | No       | By default, logging at info and above goes to console. The value `false` will stop all logging. An object with the functions `error`, `warn`, `info`, `debug` will use those for logging. |\n\n## Sign your installer or else bad things will happen\n\nFor development / internal use, creating installers without a signature is okay, but for a production app you need to sign your application. Internet Explorer's SmartScreen filter will block your app from being downloaded, and many anti-virus vendors will consider your app as malware unless you obtain a valid cert.\n\nAny certificate valid for \"Authenticode Code Signing\" will work here, but if you get the right kind of code certificate, you can also opt-in to [Windows Error Reporting](http://en.wikipedia.org/wiki/Windows_Error_Reporting). [This MSDN page](http://msdn.microsoft.com/en-us/library/windows/hardware/hh801887.aspx) has the latest links on where to get a WER-compatible certificate. The \"Standard Code Signing\" certificate is sufficient for this purpose.\n\n## Handling Squirrel Events\n\nSquirrel will spawn your app with command line flags on first run, updates,\nand uninstalls. it is **very** important that your app handle these events as _early_\nas possible, and quit **immediately** after handling them. Squirrel will give your\napp a short amount of time (~15sec) to apply these operations and quit.\n\nYou should handle these events in your app's `main` entry point with something\nsuch as:\n\n```js\nvar app = require('app');\n\nvar handleStartupEvent = function() {\n  if (process.platform !== 'win32') {\n    return false;\n  }\n\n  var squirrelCommand = process.argv[1];\n  switch (squirrelCommand) {\n    case '--squirrel-install':\n    case '--squirrel-updated':\n\n      // Optionally do things such as:\n      //\n      // - Install desktop and start menu shortcuts\n      // - Add your .exe to the PATH\n      // - Write to the registry for things like file associations and\n      //   explorer context menus\n\n      // Always quit when done\n      app.quit();\n\n      return true;\n    case '--squirrel-uninstall':\n      // Undo anything you did in the --squirrel-install and\n      // --squirrel-updated handlers\n\n      // Always quit when done\n      app.quit();\n\n      return true;\n    case '--squirrel-obsolete':\n      // This is called on the outgoing version of your app before\n      // we update to the new version - it's the opposite of\n      // --squirrel-updated\n      app.quit();\n      return true;\n  }\n};\n\nif (handleStartupEvent()) {\n  return;\n}\n```\n","_attachments":{},"homepage":"https://github.com/electronjs/windows-installer#readme","bugs":{"url":"https://github.com/electronjs/windows-installer/issues"},"license":"MIT"}