Skip to content
This repository has been archived by the owner on Jun 11, 2021. It is now read-only.

Commit

Permalink
Merge pull request #1529 from alexandrev/issue-1521
Browse files Browse the repository at this point in the history
Changes to the Gruntfile to allow to create a release version on Windows
  • Loading branch information
FrenchBen committed May 9, 2016
2 parents e8098e6 + 684278f commit 8df589c
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions Gruntfile.js
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ module.exports = function (grunt) {
var OSX_OUT = './dist';
var OSX_OUT_X64 = OSX_OUT + '/' + OSX_APPNAME + '-darwin-x64';
var OSX_FILENAME = OSX_OUT_X64 + '/' + OSX_APPNAME + '.app';

var IS_WINDOWS = process.platform === 'win32';
grunt.initConfig({
IDENTITY: 'Developer ID Application: Docker Inc',
OSX_FILENAME: OSX_FILENAME,
Expand Down Expand Up @@ -256,7 +256,11 @@ module.exports = function (grunt) {
});

grunt.registerTask('default', ['newer:babel', 'less', 'newer:copy:dev', 'shell:electron', 'watchChokidar']);
grunt.registerTask('release', ['clean:release', 'babel', 'less', 'copy:dev', 'electron', 'copy:osx', 'shell:sign', 'shell:zip', 'copy:windows', 'rcedit:exes', 'compress']);
if (!IS_WINDOWS) {
grunt.registerTask('release', ['clean:release', 'babel', 'less', 'copy:dev', 'electron', 'copy:osx', 'shell:sign', 'shell:zip', 'copy:windows', 'rcedit:exes', 'compress']);
}else {
grunt.registerTask('release', ['clean:release', 'babel', 'less', 'copy:dev', 'electron:windows', 'copy:windows', 'rcedit:exes', 'compress']);
}

process.on('SIGINT', function () {
grunt.task.run(['shell:electron:kill']);
Expand Down

0 comments on commit 8df589c

Please sign in to comment.