Skip to content

Commit

Permalink
chore: build as .dmg
Browse files Browse the repository at this point in the history
  • Loading branch information
nguyencongcuong committed Sep 21, 2024
1 parent 67765bb commit 5f2949a
Show file tree
Hide file tree
Showing 3 changed files with 256 additions and 2 deletions.
6 changes: 6 additions & 0 deletions forge.config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,8 @@ import { VitePlugin } from '@electron-forge/plugin-vite';
import { FusesPlugin } from '@electron-forge/plugin-fuses';
import { FuseV1Options, FuseVersion } from '@electron/fuses';
import path from 'path';
import MakerDMG from '@electron-forge/maker-dmg';
import packageInfo from './package.json';

const config: ForgeConfig = {
packagerConfig: {
Expand All @@ -17,6 +19,10 @@ const config: ForgeConfig = {
makers: [
new MakerSquirrel({}),
new MakerZIP({}, ['darwin']),
new MakerDMG({
name: `${packageInfo.name}-${packageInfo.version}-mac-arm64`,
appPath: '',
}),
new MakerRpm({}),
new MakerDeb({}),
],
Expand Down
1 change: 1 addition & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,7 @@
"@ant-design/icons": "^5.5.1",
"@electron-forge/cli": "^7.4.0",
"@electron-forge/maker-deb": "^7.4.0",
"@electron-forge/maker-dmg": "^7.5.0",
"@electron-forge/maker-rpm": "^7.4.0",
"@electron-forge/maker-squirrel": "^7.4.0",
"@electron-forge/maker-zip": "^7.4.0",
Expand Down
Loading

0 comments on commit 5f2949a

Please sign in to comment.