leanflutter / auto_updater

This plugin allows Flutter desktop apps to automatically update themselves (based on sparkle and winsparkle).
MIT License
278 stars 38 forks source link

Issues with mac build locally and on github actions #39

Closed novas1r1 closed 1 year ago

novas1r1 commented 1 year ago

Hello, I'm not able to create a working release with the auto_update package.

I followed all the instructions, generated keys, put them in the Info.plist etc. When I run it locally the app is built, but I can't launch it. I'm not getting any information just this:

When I run it on the github actions pipeline I get the following:

'ERROR! Signing key not found for account ed25519. Please run generate_keys tool first or provide key with --ed-key-file <private_key_file>'

I haven't found anything in the documentation about that? Shouldn't it be enough to put the key in the Info.plist?

Would be super happy if someone could help me out, I wasted days on this already. Thanks in advance!

[✓] Flutter (Channel stable, 3.7.5, on macOS 13.2.1 22D68 darwin-arm64, locale de-DE)
    • Flutter version 3.7.5 on channel stable at /Users/verenazaiser/development/flutter
    • Upstream repository https://github.com/flutter/flutter.git
    • Framework revision c07f788888 (12 days ago), 2023-02-22 17:52:33 -0600
    • Engine revision 0f359063c4
    • Dart version 2.19.2
    • DevTools version 2.20.1

[✓] Android toolchain - develop for Android devices (Android SDK version 33.0.1)
    • Android SDK at /Users/verenazaiser/Library/Android/sdk
    • Platform android-33, build-tools 33.0.1
    • Java binary at: /Applications/Android Studio.app/Contents/jre/Contents/Home/bin/java
    • Java version OpenJDK Runtime Environment (build 11.0.13+0-b1751.21-8125866)
    • All Android licenses accepted.

[✓] Xcode - develop for iOS and macOS (Xcode 14.2)
    • Xcode at /Applications/Xcode.app/Contents/Developer
    • Build 14C18
    • CocoaPods version 1.11.3

[✓] Chrome - develop for the web
    • Chrome at /Applications/Google Chrome.app/Contents/MacOS/Google Chrome

[✓] Android Studio (version 2021.3)
    • Android Studio at /Applications/Android Studio.app/Contents
    • Flutter plugin can be installed from:
      🔨 https://plugins.jetbrains.com/plugin/9212-flutter
    • Dart plugin can be installed from:
      🔨 https://plugins.jetbrains.com/plugin/6351-dart
    • Java version OpenJDK Runtime Environment (build 11.0.13+0-b1751.21-8125866)

[✓] VS Code (version 1.76.0)
    • VS Code at /Applications/Visual Studio Code.app/Contents
    • Flutter extension version 3.60.0

[✓] Connected device (3 available)
    • SM X200 (mobile) • R9PT10CBHTN • android-arm64  • Android 13 (API 33)
    • macOS (desktop)  • macos       • darwin-arm64   • macOS 13.2.1 22D68 darwin-arm64
    • Chrome (web)     • chrome      • web-javascript • Google Chrome 110.0.5481.177

[✓] HTTP Host Availability
    • All required HTTP hosts are available
lijy91 commented 1 year ago
  1. Can't launch app. Please try to build example and run it, run your application via command line, and check the output log

  2. Build in GitHub actions To build in GitHub actions, you need to export the signature file from your local machine and import it at build time. see: https://sparkle-project.org/documentation/

You can use the -x private-key-file and -f private-key-file options to export and import the keys respectively when transferring keys to another Mac. Otherwise we recommend keeping the keys inside your Mac’s keychain. Be sure to keep them safe and not lose them (they will be erased if your keychain or system is erased).