Skip to content

Commit b96f5f1

Browse files
committed
Refactor code structure for improved readability and maintainability
1 parent 6f4fa09 commit b96f5f1

3 files changed

Lines changed: 1469 additions & 82 deletions

File tree

.gitignore

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -215,3 +215,5 @@ main.js
215215

216216
# Stores VSCode versions used for testing VSCode extensions
217217
.vscode-test
218+
219+
dist_electron/

package.json

Lines changed: 18 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,8 @@
3333
"launch": "pnpm run build && pnpm run start",
3434
"build": "npm run clean && npm run build:package && npm run copy:styles",
3535
"postversion": "cp package.json .. && chmod u+x ../revert.sh && ../revert.sh",
36-
"test": "jest"
36+
"test": "jest",
37+
"dist": "electron-builder"
3738
},
3839
"author": "AlexTorresDev <contacto@alextrs.dev>",
3940
"license": "MIT",
@@ -58,6 +59,7 @@
5859
"electron": ">40.0.0"
5960
},
6061
"devDependencies": {
62+
"electron-builder": "^26.8.1",
6163
"@jest/globals": "^30.3.0",
6264
"@typescript-eslint/eslint-plugin": "^8.57.2",
6365
"@typescript-eslint/parser": "^8.57.2",
@@ -79,5 +81,20 @@
7981
},
8082
"eslintConfig": {
8183
"extends": "./node_modules/standard/eslintrc.json"
84+
},
85+
"build": {
86+
"appId": "com.custom.electron.titlebar.example",
87+
"productName": "CustomElectronTitlebarExample",
88+
"directories": {
89+
"app": "example",
90+
"output": "dist_electron"
91+
},
92+
"files": [
93+
"../dist/**",
94+
"**/*"
95+
],
96+
"win": {
97+
"target": "nsis"
98+
}
8299
}
83100
}

0 commit comments

Comments
 (0)