squirrel
설치 가능한 데스크톱 앱 만들기
Squirrel를 사용하여 Flutter 애플리케이션용 설치 프로그램을 빌드하세요
아래는 영문 원문 스냅샷입니다. 최신 내용은 GitHub에서 확인하세요.
This package creates desktop installers for Windows 7+ as well as implements auto-update, via Squirrel.Windows, an installer technology used originally as part of the Atom text editor and now deployed on millions of machines via projects such as Slack, Discord, GitHub Desktop, as well as hundreds of other projects.
Run the following command, it will tell you what to do next (put an extra block in your pubspec.yaml).
flutter pub run squirrel:installer_windows
Now take that folder that it generates and upload that to Cloudfront / Fastly / any static CDN. Bingo bongo, you're done!
This is WIP, but the extremely lazy answer is, run this command on startup via Process.run:
$WHATEVER_FOLDER_MY_EXECUTABLE_IS_IN/../Update.exe --update https://wherever-i-put-my-update-folder
` Before this package reaches 1.0, it will have a proper API to do this!
Read the Squirrel documentation - note that some of the names in this package have been clarified / simplified vs. what they are called in Squirrel.Windows, read installer_windows.dart in this package to see how things map.