Skip to content

Commit 552063d

Browse files
committed
use the versions from package.json when building
1 parent c94c5a8 commit 552063d

File tree

1 file changed

+10
-6
lines changed

1 file changed

+10
-6
lines changed

Gruntfile.js

Lines changed: 10 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,9 @@
11
module.exports = function (grunt) {
22

3+
var package = require("./package.json");
4+
var version = package.version,
5+
electronVersion = package.electronVersion;
6+
37
// Project configuration.
48
grunt.initConfig({
59
pkg: grunt.file.readJSON('package.json'),
@@ -82,8 +86,8 @@ module.exports = function (grunt) {
8286
name: 'Min',
8387
dir: '',
8488
out: 'dist/app',
85-
version: '0.36.8',
86-
'app-version': '1.0.1',
89+
version: electronVersion,
90+
'app-version': version,
8791
platform: 'darwin',
8892
arch: 'x64',
8993
icon: "icon.icns",
@@ -95,8 +99,8 @@ module.exports = function (grunt) {
9599
name: 'Min',
96100
dir: '',
97101
out: 'dist/app',
98-
version: '0.36.8',
99-
'app-version': '1.0.1',
102+
version: electronVersion,
103+
'app-version': version,
100104
platform: 'win32',
101105
arch: 'all',
102106
ignore: 'dist/app',
@@ -107,8 +111,8 @@ module.exports = function (grunt) {
107111
name: 'Min',
108112
dir: '',
109113
out: 'dist/app',
110-
version: '0.36.8',
111-
'app-version': '1.0.1',
114+
version: electronVersion,
115+
'app-version': version,
112116
platform: 'linux',
113117
arch: 'all',
114118
ignore: 'dist/app',

0 commit comments

Comments
 (0)