New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

grunt-electron-debian-installer

Package Overview
Dependencies
Maintainers
1
Versions
8
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

grunt-electron-debian-installer - npm Package Compare versions

Comparing version 0.0.3 to 0.0.4

9

Gruntfile.js

@@ -32,3 +32,6 @@ module.exports = function (grunt) {

suggests: [],
categories: []
categories: [],
rename: function (dest) {
return dest + '<%= name %>_<%= arch %>.deb';
}
},

@@ -38,3 +41,3 @@

src: 'test/fixtures/app-with-asar/',
dest: 'test/fixtures/out/foo_i386.deb'
dest: 'test/fixtures/out/'
},

@@ -58,3 +61,3 @@

src: 'test/fixtures/app-without-asar/',
dest: 'test/fixtures/out/bar_amd64.deb'
dest: 'test/fixtures/out/'
}

@@ -61,0 +64,0 @@ },

{
"name": "grunt-electron-debian-installer",
"description": "Create a Debian package for your Electron app.",
"version": "0.0.3",
"version": "0.0.4",
"license": "MIT",

@@ -6,0 +6,0 @@

@@ -53,3 +53,3 @@ # 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)

src: 'path/to/app/',
dest: 'path/to/out/app_0.0.1_i386.deb'
dest: 'path/to/out/'
}

@@ -75,3 +75,6 @@ }

'Utility'
]
],
rename: function (dest, src) {
return dest + '<%= name %>_<%= version %>-<%= revision %>_<%= arch %>.deb';
}
},

@@ -84,3 +87,3 @@

src: 'path/to/linux32/',
dest: 'path/to/out/app_0.0.1_i386.deb'
dest: 'path/to/out/linux32/'
},

@@ -93,3 +96,3 @@

src: 'path/to/linux64/',
dest: 'path/to/out/app_0.0.1_amd64.deb'
dest: 'path/to/out/linux64/'
}

@@ -101,2 +104,14 @@ }

#### src
Type: `String`
Default: `undefined`
Path to the folder that contains your built Electron application.
#### dest
Type: `String`
Default: `undefined`
Path to the folder that will contain your Red Hat installer.
#### options.name

@@ -249,3 +264,9 @@ Type: `String`

#### options.rename
Type: `Function`
Default: `function (dest, src) { return dest + src; }`
Function that renames all files generated by the task just before putting them in your `dest` folder.
## Meta

@@ -252,0 +273,0 @@

@@ -349,6 +349,9 @@ 'use strict';

function (files, callback) {
fs.move(files[0], options.dest, {clobber: true}, callback);
async.each(files, function (file) {
var dest = options.rename(options.dest, path.basename(file));
fs.move(file, _.template(dest)(options), {clobber: true}, callback);
}, callback);
}
], function (err) {
callback(err && new Error('Error moving package: ' + (err.message || err)), dir);
callback(err && new Error('Error moving package files: ' + (err.message || err)), dir);
});

@@ -355,0 +358,0 @@ };

@@ -18,3 +18,3 @@ 'use strict';

testExistence(test, [
'test/fixtures/out/foo_i386.deb'
'test/fixtures/out/footest_i386.deb'
]);

@@ -24,5 +24,5 @@ },

testExistence(test, [
'test/fixtures/out/bar_amd64.deb'
'test/fixtures/out/bartest_amd64.deb'
]);
}
};
SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc