grunt-electron-debian-installer
Advanced tools
Comparing version 0.0.2 to 0.0.3
{ | ||
"name": "grunt-electron-debian-installer", | ||
"description": "Create a Debian package for your Electron app.", | ||
"version": "0.0.2", | ||
"version": "0.0.3", | ||
"license": "MIT", | ||
@@ -37,2 +37,3 @@ | ||
"get-folder-size": "^0.1.1", | ||
"glob": "^5.0.14", | ||
"lodash": "^3.10.0", | ||
@@ -39,0 +40,0 @@ "temp": "^0.8.3", |
@@ -137,2 +137,8 @@ # grunt-electron-debian-installer [![Version](https://img.shields.io/npm/v/grunt-electron-debian-installer.svg)](https://www.npmjs.com/package/grunt-electron-debian-installer) [![Build Status](https://img.shields.io/travis/unindented/grunt-electron-debian-installer.svg)](http://travis-ci.org/unindented/grunt-electron-debian-installer) [![Dependency Status](https://img.shields.io/gemnasium/unindented/grunt-electron-debian-installer.svg)](https://gemnasium.com/unindented/grunt-electron-debian-installer) | ||
#### options.revision | ||
Type: `String` | ||
Default: `package.revision` | ||
Revision number of the package, used in the [`Version` field of the `control` specification](https://www.debian.org/doc/debian-policy/ch-controlfields.html#s-f-Version). | ||
#### options.section | ||
@@ -158,3 +164,3 @@ Type: `String` | ||
Marchine architecture the package is targeted to, used in the [`Architecture` field of the `control` specification](https://www.debian.org/doc/debian-policy/ch-controlfields.html#s-f-Architecture). | ||
Machine architecture the package is targeted to, used in the [`Architecture` field of the `control` specification](https://www.debian.org/doc/debian-policy/ch-controlfields.html#s-f-Architecture). | ||
@@ -183,3 +189,3 @@ For possible values see the output of `dpkg-architecture -L`. | ||
Type: `String` | ||
Default: `package.author.url` | ||
Default: `package.homepage || package.author.url` | ||
@@ -186,0 +192,0 @@ URL of the homepage for the package, used in the [`Homepage` field of the `control` specification](https://www.debian.org/doc/debian-policy/ch-controlfields.html#s-f-Homepage). |
@@ -9,2 +9,3 @@ 'use strict'; | ||
var fsize = require('get-folder-size'); | ||
var glob = require('glob'); | ||
var path = require('path'); | ||
@@ -104,2 +105,3 @@ var temp = require('temp').track(); | ||
version: pkg.version || '0.0.0', | ||
revision: pkg.revision || '1', | ||
@@ -145,6 +147,6 @@ section: 'utils', | ||
homepage: pkg.author && (typeof pkg.author === 'string' ? | ||
homepage: pkg.homepage || (pkg.author && (typeof pkg.author === 'string' ? | ||
pkg.author.replace(/.*\(([^)]+)\).*/, '$1') : | ||
pkg.author.url | ||
), | ||
)), | ||
@@ -346,3 +348,9 @@ bin: pkg.name || 'electron', | ||
var movePackage = function (options, dir, callback) { | ||
fs.move(dir + '.deb', options.dest, {clobber: true}, function (err) { | ||
var packagePattern = path.join(dir, '../*.deb'); | ||
async.waterfall([ | ||
async.apply(glob, packagePattern), | ||
function (files, callback) { | ||
fs.move(files[0], options.dest, {clobber: true}, callback); | ||
} | ||
], function (err) { | ||
callback(err && new Error('Error moving package: ' + (err.message || err)), dir); | ||
@@ -349,0 +357,0 @@ }); |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
737111
427
259
9
+ Addedglob@^5.0.14