File tree 5 files changed +30
-4
lines changed
5 files changed +30
-4
lines changed Original file line number Diff line number Diff line change @@ -105,6 +105,7 @@ config.json.sample:
105
105
},
106
106
" win" : {
107
107
" title" : " Loopline Systems" ,
108
+ " version" : " x.x.x.x" ,
108
109
" icon" : " assets/win/icon.ico" ,
109
110
" nsiTemplate" : " path/to/custom/installer.nsi.tpl"
110
111
}
@@ -129,6 +130,9 @@ This property contains the configuration for the OSX dmg window. This property i
129
130
### ` win.title `
130
131
Title of your application shown in generated windows installer.
131
132
133
+ ### ` win.version `
134
+ Version of your application shown in add/remove programs list.
135
+
132
136
### ` win.icon `
133
137
Icon to be shown in installation process.
134
138
Original file line number Diff line number Diff line change 10
10
var platforms = require ( './lib/platforms' ) ;
11
11
var path = require ( 'path' ) ;
12
12
var fs = require ( 'fs' ) ;
13
+ var mkdirp = require ( 'mkdirp' ) ;
13
14
14
15
/**
15
16
* Prototype for electron-builder
@@ -42,7 +43,7 @@ var Builder = {
42
43
// directory exists
43
44
if ( ! fs . existsSync ( options . out ) ) {
44
45
options . log ( '- Ouput directory ´' + options . out + '´ does not exist ' ) ;
45
- fs . mkdirSync ( options . out ) ;
46
+ mkdirp . sync ( options . out ) ;
46
47
options . log ( '- Created ´' + options . out + '´ ' ) ;
47
48
}
48
49
Original file line number Diff line number Diff line change @@ -32,6 +32,7 @@ var WinBuilder = {
32
32
var configFilePath = writeConfigFile ( nsiTemplate , {
33
33
appPath : _windowsify ( options . appPath ) ,
34
34
name : options . config . win . title ,
35
+ version : options . config . win . version ,
35
36
out : _windowsify ( options . out )
36
37
} ) ;
37
38
Original file line number Diff line number Diff line change 12
12
"url" : " https://github.com/loopline-systems/electron-builder.git"
13
13
},
14
14
"keywords" : [
15
- " electron"
15
+ " electron" ,
16
+ " builder" ,
17
+ " build" ,
18
+ " installer" ,
19
+ " install" ,
20
+ " packager" ,
21
+ " pack" ,
22
+ " nsis" ,
23
+ " appdmg" ,
24
+ " app" ,
25
+ " dmg" ,
26
+ " msi" ,
27
+ " exe" ,
28
+ " setup" ,
29
+ " Windows" ,
30
+ " OS X" ,
31
+ " Mac"
16
32
],
17
33
"bin" : {
18
34
"electron-builder" : " cli.js"
28
44
"lodash.assign" : " ^3.2.0" ,
29
45
"lodash.camelcase" : " ^3.0.1" ,
30
46
"lodash.template" : " ^3.6.1" ,
31
- "meow" : " ^3.1.0"
47
+ "meow" : " ^3.1.0" ,
48
+ "mkdirp" : " ^0.5.1"
32
49
},
33
50
"optionalDependencies" : {
34
51
"appdmg" : " ^0.3.1"
37
54
"eslint" : " ^0.21.2" ,
38
55
"proxyquire" : " ^1.5.0" ,
39
56
"tap-nyan" : " 0.0.2" ,
40
- "tap-spec" : " ^3.0.0 " ,
57
+ "tap-spec" : " ^4.1.1 " ,
41
58
"tape" : " ^4.0.0" ,
42
59
"tmp" : " 0.0.28"
43
60
}
Original file line number Diff line number Diff line change 1
1
!define APP_NAME "<%= name %>"
2
+ !define APP_VERSION "<%= version %>"
2
3
!define APP_DIR "${ APP_NAME} "
3
4
4
5
Name "${ APP_NAME} "
@@ -58,6 +59,8 @@ Section
58
59
"UninstallString" "$INSTDIR\Uninstall ${ APP_NAME} .exe"
59
60
WriteRegStr HKLM "Software\Microsoft\Windows\CurrentVersion\Uninstall\${ APP_NAME} " \
60
61
"DisplayIcon" "$INSTDIR\icon.ico"
62
+ WriteRegStr HKLM "Software\Microsoft\Windows\CurrentVersion\Uninstall\${ APP_NAME} " \
63
+ "DisplayVersion" "$APP_VERSION"
61
64
SectionEnd
62
65
63
66
# create a section to define what the uninstaller does
You can’t perform that action at this time.
0 commit comments