Skip to content

Commit 3e673f8

Browse files
Added release scripts.
1 parent bd508d6 commit 3e673f8

File tree

3 files changed

+11
-3
lines changed

3 files changed

+11
-3
lines changed

build/.gitignore

+1
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
*

package.json

+8-2
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,9 @@
55
"main": "main.js",
66
"scripts": {
77
"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/"
911
},
1012
"repository": {
1113
"type": "git",
@@ -32,6 +34,8 @@
3234
"async": "^2.0.1",
3335
"cheerio": "^0.20.0",
3436
"electron-json-storage": "^2.0.0",
37+
"electron-packager": "^7.7.0",
38+
"electron-zip-packager": "^3.0.0",
3539
"electron-prebuilt": "^1.2.0",
3640
"he": "^1.1.0",
3741
"jquery": "^3.1.0",
@@ -41,5 +45,7 @@
4145
"vue": "^1.0.26",
4246
"vue-class-component": "^3.2.0"
4347
},
44-
"dependencies": {}
48+
"dependencies": {
49+
50+
}
4551
}

render/template.ts

+2-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
const templates = {};
22
const fs = require('fs');
3-
const tplPath = './render/views/';
3+
const path = require('path');
4+
const tplPath = path.join(path.dirname(__filename), '/views/');
45

56
export function template(name) {
67
if (templates[name]) {

0 commit comments

Comments
 (0)