Output: sparkle:edSignature="pbdyPt92pnPkzLfQ7BhS9hbjcV9/ndkzSIlWjFQIUMcaCNbAFO2fzl0tISMNJApG2POTkZY0/kJQ2yZYOSVgAA=" length="13400992" Run the following command: dart run auto_updater:sign_update dist/1.1.0+2/auto_updater_example-1.1.0+2-macos.zip Run the following command: flutter_distributor release -name dev -jobs release-windows Run the following command: flutter_distributor release -name dev -jobs release-macos To simplify the packaging process, Flutter Distributor is used here, A complete tool dedicated to packaging and publishing Flutter apps.Īdd distribute_options.yaml to your project root directory. +// And verify signature using DSA public key: Please Back up your private key and keep it safe, Add your public key to your project either as Windows resource.Ĭhange the file windows/runner/Runner.rc as follows: If you lose it, your users will be unable to upgrade!Ĭommand will generate the private key ( dsa_priv.pem) and the public key ( dsa_pub.pem) for you. Keep it secret and don't share it!ĭsa_pub.pem: public counterpart to include in youe app.īACK UP YOUR PRIVATE KEY AND KEEP IT SAFE! + bHaXClrRGMmKoKP/3HJnr/jn2ODTRPAM3VZhhkI9ZvY=ĭsa_priv.pem: your private key. PfIShU4dEXqPd5ObYNfDBiQWcXozk7estwzTnF9BamQ=Ĭhange the file macos/Runner/ist as follows: The ist of each app for which you intend to use Sparkle for distributing Output: A key has been generated and saved in your keychain. You need to run this command on macOS and Windows systems separately. Run the following command: dart run auto_updater:generate_keys Please see the example app of this plugin for a full example. String feedURL = ' await tFeedURL(feedURL) Īwait tScheduledCheckInterval(3600) WidgetsFlutterBinding.ensureInitialized() Usage # import 'package:auto_updater/auto_updater.dart' This plugin allows Flutter desktop apps to automatically update themselves (based on sparkle and winsparkle).Īdd this to your package's pubspec.yaml file: dependencies:
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |