Skip to content
This repository was archived by the owner on Aug 12, 2021. It is now read-only.

Commit 3668b66

Browse files
committed
Add a proper build
1 parent 093c11a commit 3668b66

File tree

4 files changed

+2132
-5
lines changed

4 files changed

+2132
-5
lines changed

.gitignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,3 +3,4 @@
33
/web/models/
44
/build/
55
.DS_Store
6+
/release/

app/areas.js

Lines changed: 12 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,18 @@
33
const fs = require('fs');
44
const utils = require('./utils');
55

6-
let files = fs.readdirSync(__dirname + '/areas/');
6+
// let files = fs.readdirSync(__dirname + '/areas/')
7+
// .filter(n => n.endsWith(".json"));
8+
let files = [
9+
"13d79165.MLVL.json",
10+
"39f2de28.MLVL.json",
11+
"83f6ff6f.MLVL.json",
12+
"b1ac4d65.MLVL.json",
13+
"158efe17.MLVL.json",
14+
"3ef8237c.MLVL.json",
15+
"a8be6291.MLVL.json",
16+
"c13b09d1.MLVL.json"
17+
];
718
let dgrpLookup = new Map();
819
let areaHeaders = [];
920

package.json

Lines changed: 34 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,44 @@
11
{
2-
"name": "PrimeWatch",
3-
"description": "A prime memory watcher (remote for Dolphin or Nintendont)",
2+
"name": "prime-watch",
3+
"description": "A prime memory watcher (remote for Dolphin)",
44
"author": "Pwootage",
55
"version": "1.0.0",
66
"main": "app/mainForm.js",
77
"dependencies": {
88
"binary": "^0.3.0",
99
"binary-parser": "^1.1.5",
1010
"smalltalk": "^2.1.3"
11+
},
12+
"devDependencies": {
13+
"electron": "^4.1.0",
14+
"electron-builder": "^20.39.0"
15+
},
16+
"scripts": {
17+
"dist": "yarn dist:win && yarn dist:linux && yarn dist:macOS",
18+
"dist:linux": "electron-builder build --linux",
19+
"dist:win": "electron-builder build --windows",
20+
"dist:macOS": "electron-builder build --mac"
21+
},
22+
"build": {
23+
"appId": "com.pwootage.prime.watch",
24+
"productName": "Prime Watch",
25+
"directories": {
26+
"output": "release/"
27+
},
28+
"win": {
29+
"target": [
30+
"zip"
31+
]
32+
},
33+
"mac": {
34+
"target": [
35+
"dmg", "zip"
36+
]
37+
},
38+
"linux": {
39+
"target": [
40+
"tar.gz"
41+
]
42+
}
1143
}
1244
}

0 commit comments

Comments
 (0)