This is a beta build tutorial, so its structure, implementation steps, and sample code may continue to change.
Package and Release
In this chapter, we will learn how to package and release the Flutter desktop application.
Build Application
Run the following command to build the application:
flutter build macos --releaseThe built application is located at:
build/macos/Build/Products/Release/Configure App Information
Configure app information such as app name and version number in macos/Runner/Info.plist.
Create Installer
You can use the create-dmg tool to create a macOS installer:
brew install create-dmg
create-dmg \
--volname "Hotkey App" \
--window-pos 200 120 \
--window-size 800 400 \
--icon-size 100 \
--icon "Hotkey App.app" 200 190 \
--hide-extension "Hotkey App.app" \
--app-drop-link 600 185 \
"Hotkey App.dmg" \
"build/macos/Build/Products/Release/"Publish to App Store
To publish to the Mac App Store:
- Register the app in Apple Developer backend
- Configure signing and certificates
- Use Xcode to archive and upload
Next Steps
Congratulations! You have completed the development of the hotkey application.