File tree Expand file tree Collapse file tree 1 file changed +10
-6
lines changed Expand file tree Collapse file tree 1 file changed +10
-6
lines changed Original file line number Diff line number Diff line change 1
1
module . exports = function ( grunt ) {
2
2
3
+ var package = require ( "./package.json" ) ;
4
+ var version = package . version ,
5
+ electronVersion = package . electronVersion ;
6
+
3
7
// Project configuration.
4
8
grunt . initConfig ( {
5
9
pkg : grunt . file . readJSON ( 'package.json' ) ,
@@ -82,8 +86,8 @@ module.exports = function (grunt) {
82
86
name : 'Min' ,
83
87
dir : '' ,
84
88
out : 'dist/app' ,
85
- version : '0.36.8' ,
86
- 'app-version' : '1.0.1' ,
89
+ version : electronVersion ,
90
+ 'app-version' : version ,
87
91
platform : 'darwin' ,
88
92
arch : 'x64' ,
89
93
icon : "icon.icns" ,
@@ -95,8 +99,8 @@ module.exports = function (grunt) {
95
99
name : 'Min' ,
96
100
dir : '' ,
97
101
out : 'dist/app' ,
98
- version : '0.36.8' ,
99
- 'app-version' : '1.0.1' ,
102
+ version : electronVersion ,
103
+ 'app-version' : version ,
100
104
platform : 'win32' ,
101
105
arch : 'all' ,
102
106
ignore : 'dist/app' ,
@@ -107,8 +111,8 @@ module.exports = function (grunt) {
107
111
name : 'Min' ,
108
112
dir : '' ,
109
113
out : 'dist/app' ,
110
- version : '0.36.8' ,
111
- 'app-version' : '1.0.1' ,
114
+ version : electronVersion ,
115
+ 'app-version' : version ,
112
116
platform : 'linux' ,
113
117
arch : 'all' ,
114
118
ignore : 'dist/app' ,
You can’t perform that action at this time.
0 commit comments