File tree 3 files changed +11
-3
lines changed
3 files changed +11
-3
lines changed Original file line number Diff line number Diff line change
1
+ *
Original file line number Diff line number Diff line change 5
5
"main" : " main.js" ,
6
6
"scripts" : {
7
7
"prestart" : " ./node_modules/typescript/bin/tsc" ,
8
- "start" : " electron ."
8
+ "start" : " electron ." ,
9
+ "predist" : " ./node_modules/typescript/bin/tsc" ,
10
+ "dist" : " ./node_modules/electron-zip-packager/bin/cmd.js . --all --overwrite --out=build/"
9
11
},
10
12
"repository" : {
11
13
"type" : " git" ,
32
34
"async" : " ^2.0.1" ,
33
35
"cheerio" : " ^0.20.0" ,
34
36
"electron-json-storage" : " ^2.0.0" ,
37
+ "electron-packager" : " ^7.7.0" ,
38
+ "electron-zip-packager" : " ^3.0.0" ,
35
39
"electron-prebuilt" : " ^1.2.0" ,
36
40
"he" : " ^1.1.0" ,
37
41
"jquery" : " ^3.1.0" ,
41
45
"vue" : " ^1.0.26" ,
42
46
"vue-class-component" : " ^3.2.0"
43
47
},
44
- "dependencies" : {}
48
+ "dependencies" : {
49
+
50
+ }
45
51
}
Original file line number Diff line number Diff line change 1
1
const templates = { } ;
2
2
const fs = require ( 'fs' ) ;
3
- const tplPath = './render/views/' ;
3
+ const path = require ( 'path' ) ;
4
+ const tplPath = path . join ( path . dirname ( __filename ) , '/views/' ) ;
4
5
5
6
export function template ( name ) {
6
7
if ( templates [ name ] ) {
You can’t perform that action at this time.
0 commit comments