fix: sparkle update detection and startup hang
This commit is contained in:
@@ -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
|
||||
|
||||
|
||||
@@ -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
@@ -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
|
||||
|
||||
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user