Skip to content

Commit

Permalink
chore(build): update builder config
Browse files Browse the repository at this point in the history
  • Loading branch information
Enubia committed Mar 13, 2024
1 parent 02bd020 commit a517539
Show file tree
Hide file tree
Showing 4 changed files with 43 additions and 41 deletions.
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -17,10 +17,10 @@
</p>

<p align="center">
<a href="https://github.com/Enubia/ghost-chat/releases/latest/download/Ghost-Chat-2.7.0-win.exe" target="_blank">
<a href="https://github.com/Enubia/ghost-chat/releases/latest" target="_blank">
<img src="./markdown-images/windows-button.png" alt="Buy Me A Coffee" width="350" >
</a>
<a href="https://github.com/Enubia/ghost-chat/releases/latest/download/Ghost-Chat-2.7.0-mac.dmg">
<a href="https://github.com/Enubia/ghost-chat/releases/latest">
<img src="./markdown-images/mac-download-button.png" alt="Donate with PayPal" width="350" />
</a>
</p>
Expand Down
40 changes: 40 additions & 0 deletions electron-builder.config.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,40 @@
/* eslint-disable no-template-curly-in-string */
/**
* @type {import('electron-builder').Configuration}
* @see https://www.electron.build/configuration/configuration
*/
module.exports = {
productName: 'Ghost-Chat',
appId: 'com.github.enubia.ghost-chat',
asar: true,
directories: {
output: 'release/${version}',
},
files: [
'dist-electron',
'dist',
],
mac: {
artifactName: '${productName}-${version}-mac.${ext}',
target: 'default',
publish: ['github'],
},
win: {
artifactName: '${productName}-${version}-win.${ext}',
target: 'nsis',
publish: ['github'],
},
// "linux": {
// "artifactName": "${productName}-${version}-linux.${ext}",
// "target": ["AppImage"],
// "publish": ["github"],
// "desktop": {
// "Name": "GhostChat",
// "Terminal": false
// }
// },
nsis: {
oneClick: false,
allowToChangeInstallationDirectory: true,
},
};
38 changes: 0 additions & 38 deletions electron-builder.json5

This file was deleted.

2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,7 @@
"lint:shared": "eslint shared/",
"lint:src": "eslint src/",
"lint": "pnpm lint:src && pnpm lint:shared && pnpm lint:electron",
"release": "pnpm build && electron-builder",
"release": "pnpm build && electron-builder --config electron-builder.config.js",
"publish": "pnpm changelog:update && release-it",
"postinstall": "simple-git-hooks"
},
Expand Down

0 comments on commit a517539

Please sign in to comment.