Deploy
Build the Electron app as a .app bundle (no DMG) and copy it to /Applications.
Steps
- Run the build with
--dirto skip DMG packaging:
pnpm build:electron --dir
- Copy the built app to
/Applications, replacing any existing version:
rm -rf "/Applications/Type Here.app"
cp -R "release/0.0.1/mac-arm64/Type Here.app" "/Applications/Type Here.app"
- Verify the app was installed:
ls -la "/Applications/Type Here.app"
- Report success to the user with the installed path.
Notes
- The
--dirflag tells electron-builder to output an unpacked app directory instead of a DMG. - The output path is
release/0.0.1/mac-arm64/Type Here.appon Apple Silicon. If the build output differs (e.g.release/0.0.1/mac/Type Here.appon Intel), adjust the copy source accordingly. Checkrelease/0.0.1/contents if the expected path doesn't exist. - If the app is currently running, the user should quit it before deploying.