fix: sparkle update detection and startup hang

This commit is contained in:
edde746
2026-03-04 01:09:35 +01:00
parent efac1a9f28
commit cc86afb31d
4 changed files with 16 additions and 7 deletions
+5 -1
View File
@@ -712,11 +712,14 @@ jobs:
id: version
run: |
VERSION=$(grep '^version:' pubspec.yaml | sed 's/version: //' | sed 's/+.*//')
BUILD_NUMBER=$(grep '^version:' pubspec.yaml | sed 's/.*+//')
echo "version=$VERSION" >> $GITHUB_OUTPUT
echo "build_number=$BUILD_NUMBER" >> $GITHUB_OUTPUT
- name: Generate appcast.xml
run: |
VERSION="${{ steps.version.outputs.version }}"
BUILD_NUMBER="${{ steps.version.outputs.build_number }}"
# Read macOS signature metadata (may be empty if secrets not configured)
MACOS_ED_SIG=""
@@ -745,7 +748,8 @@ jobs:
<title>Plezy Updates</title>
<item>
<title>Version ${VERSION}</title>
<sparkle:version>${VERSION}</sparkle:version>
<sparkle:version>${BUILD_NUMBER}</sparkle:version>
<sparkle:shortVersionString>${VERSION}</sparkle:shortVersionString>
<sparkle:releaseNotesLink>https://gh-html.edde746.dev/edde746/plezy/${VERSION}</sparkle:releaseNotesLink>
XMLEOF
+1 -1
View File
@@ -191,7 +191,7 @@ class _MainScreenState extends State<MainScreen> with RouteAware, WindowListener
Future<void> _checkForUpdatesOnStartup() async {
// Delay slightly to allow UI to settle
await Future.delayed(const Duration(milliseconds: 500));
await Future.delayed(const Duration(seconds: 3));
if (!mounted) return;
+6 -5
View File
@@ -67,12 +67,13 @@ packages:
source: git
version: "1.0.0"
auto_updater_macos:
dependency: transitive
dependency: "direct overridden"
description:
name: auto_updater_macos
sha256: ef9de0daf38d782d2243fe131503a9404d62df762f5386e5360020e43c01867f
url: "https://pub.dev"
source: hosted
path: "packages/auto_updater_macos"
ref: HEAD
resolved-ref: "6a21278549a7b988302ea1a9b2a3210fe0cd177c"
url: "https://github.com/edde746/auto_updater"
source: git
version: "1.0.0"
auto_updater_platform_interface:
dependency: transitive
+4
View File
@@ -73,6 +73,10 @@ dev_dependencies:
drift_dev: ^2.14.0
dependency_overrides:
auto_updater_macos:
git:
url: https://github.com/edde746/auto_updater
path: packages/auto_updater_macos
auto_updater_windows:
git:
url: https://github.com/edde746/auto_updater