Skip to content
This repository has been archived by the owner on Jan 2, 2025. It is now read-only.

Commit

Permalink
feat(desktop): build DMG for macOS
Browse files Browse the repository at this point in the history
  • Loading branch information
horacioh committed Nov 23, 2023
1 parent f5e1786 commit b65aa22
Show file tree
Hide file tree
Showing 6 changed files with 383 additions and 5 deletions.
Binary file added frontend/apps/desktop/assets/dmg-background.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added frontend/apps/desktop/assets/[email protected]
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
7 changes: 7 additions & 0 deletions frontend/apps/desktop/forge.config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -88,6 +88,13 @@ const config: ForgeConfig = {
// certificateFile: process.env.WINDOWS_PFX_FILE,
// certificatePassword: process.env.WINDOWS_PFX_PASSWORD,
}),
{
name: '@electron-forge/maker-dmg',
config: {
background: './assets/dmg-background.png',
format: 'ULFO',
},
},
],
plugins: [
// {
Expand Down
1 change: 1 addition & 0 deletions frontend/apps/desktop/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,7 @@
"dependencies": {
"@ariakit/react": "^0.3.5",
"@connectrpc/connect-web": "^1.1.3",
"@electron-forge/maker-dmg": "^7.1.0",
"@mintter/app": "*",
"@mintter/prettier": "*",
"@mintter/shared": "*",
Expand Down
4 changes: 2 additions & 2 deletions frontend/apps/site/pages/download-mintter-hypermedia.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -133,10 +133,10 @@ export const getStaticProps: GetStaticProps<EveryPageProps> = async (
// mintter-desktop_2023.10.2_amd64.deb

const macOSarm64 = manifest.assets.find((asset: {name: string}) =>
asset.name.match(/darwin-arm64/),
asset.name.match(/arm64.dmg/),
)
const macOSx64 = manifest.assets.find((asset: {name: string}) =>
asset.name.match(/darwin-x64/),
asset.name.match(/x64.dmg/),
)
const win32x64 = manifest.assets.find((asset: {name: string}) =>
asset.name.match(/win32-x64/),
Expand Down
Loading

0 comments on commit b65aa22

Please sign in to comment.