Skip to content

Commit 975b1c3

Browse files
committed
fix: builds
1 parent 0c1afc9 commit 975b1c3

File tree

3 files changed

+51
-20
lines changed

3 files changed

+51
-20
lines changed

.github/workflows/build.yml

+6
Original file line numberDiff line numberDiff line change
@@ -46,3 +46,9 @@ jobs:
4646
env:
4747
GH_TOKEN: ${{ secrets.GH_TOKEN }}
4848
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
49+
50+
# Optional: Clean up after the build
51+
- name: Cleanup
52+
run: |
53+
echo "Cleaning up build artifacts"
54+
rm -rf dist

package-lock.json

+4-15
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

+41-5
Original file line numberDiff line numberDiff line change
@@ -1,23 +1,59 @@
11
{
2-
"name": "thecyberhub-desktop",
2+
"name": "TheCyberHUB-Desktop",
33
"version": "1.0.0",
4-
"main": "src/main.js",
54
"description": "A desktop application for TheCyberHUB website",
5+
"main": "src/main.js",
66
"author": "Your Name",
7+
"license": "MIT",
8+
"homepage": "https://thecyberhub.com",
79
"scripts": {
810
"start": "electron .",
9-
"package": "electron-builder"
11+
"package": "electron-builder",
12+
"build": "electron-builder --win --mac --linux",
13+
"lint": "eslint .",
14+
"test": "echo \"No tests specified\" && exit 0"
1015
},
1116
"build": {
1217
"appId": "com.thecyberhub.desktop",
1318
"files": [
1419
"dist/**/*",
1520
"src/main.js"
1621
],
17-
"icon": "dict/assets/th3cyb3rhub-fav.png"
22+
"icon": "dict/assets/th3cyb3rhub-fav.png",
23+
"mac": {
24+
"category": "public.app-category.utilities",
25+
"target": [
26+
"dmg"
27+
]
28+
},
29+
"linux": {
30+
"target": [
31+
"AppImage"
32+
]
33+
},
34+
"win": {
35+
"target": [
36+
"nsis"
37+
]
38+
},
39+
"publish": {
40+
"provider": "github",
41+
"owner": "th3cyb3rhub",
42+
"repo": "TheCyberHUB-Desktop",
43+
"releaseType": "release"
44+
}
1845
},
1946
"devDependencies": {
47+
"dmg-license": "^1.0.11",
2048
"electron": "^33.0.2",
21-
"electron-builder": "^25.1.8"
49+
"electron-builder": "^25.1.8",
50+
"eslint": "^8.0.0"
51+
},
52+
"repository": {
53+
"type": "git",
54+
"url": "git+https://github.com/th3cyb3rhub/TheCyberHUB-Desktop.git"
55+
},
56+
"bugs": {
57+
"url": "https://github.com/th3cyb3rhub/TheCyberHUB-Desktop/issues"
2258
}
2359
}

0 commit comments

Comments
 (0)