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

Commit a5e64ea

Browse files
committed
dist building
1 parent 2a33da4 commit a5e64ea

File tree

8 files changed

+958
-2076
lines changed

8 files changed

+958
-2076
lines changed

.gitignore

-112 Bytes
Binary file not shown.

PNetEditor/.gitignore

Lines changed: 0 additions & 1 deletion
This file was deleted.

PNetEditor/PNetEditor.njsproj

Lines changed: 0 additions & 174 deletions
This file was deleted.

PNetEditor/package.json

Lines changed: 13 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -6,11 +6,12 @@
66
"main": "./js_compiled/program.js",
77
"license": "MIT",
88
"scripts": {
9-
"electron":"electron .",
9+
"electron": "electron .",
1010
"start": "yarn build && electron .",
1111
"script": "cd ./scripts/ && ts-node-script",
1212
"build": "tsc && yarn script build",
13-
"clean": "yarn script clean"
13+
"clean": "yarn script clean",
14+
"dist": "yarn build && electron-builder"
1415
},
1516
"keywords": [
1617
"Electron",
@@ -25,18 +26,23 @@
2526
},
2627
"devDependencies": {
2728
"@types/d3": "5.7.0",
28-
"@types/object-hash": "^1.3.0",
2929
"@types/node": "^13.1.8",
30-
"typescript": "^4.0.2",
31-
"ts-node": "^9.0.0",
30+
"@types/object-hash": "^1.3.0",
3231
"electron": "^10.1.1",
33-
"pkg": "^4.4.8"
32+
"electron-builder": "^22.8.0",
33+
"pkg": "^4.4.8",
34+
"ts-node": "^9.0.0",
35+
"typescript": "^4.0.2"
3436
},
3537
"build": {
3638
"appId": "PetriNetEditor",
3739
"win": {
3840
"target": "portable",
39-
"icon": "./PNIcon.png"
41+
"icon": "./src/PNIcon.png"
42+
},
43+
"linux":{
44+
"target":"deb",
45+
"icon": "./src/PNIcon.png"
4046
}
4147
}
4248
}

PNetEditor/scripts/clean.ts

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,3 +2,6 @@ import { existsSync, rmdirSync } from "fs";
22

33
if (existsSync("../js_compiled/"))
44
rmdirSync("../js_compiled/", { recursive: true });
5+
6+
if (existsSync("../dist/"))
7+
rmdirSync("../dist/", { recursive: true });

0 commit comments

Comments
 (0)