A native macOS / windows / Linux database IDE built with Swift and AppKit. Connect to PostgreSQL, MySQL, SQLite, and Redis from a single app with a fast, keyboard-driven interface.
C++
fix: Release
Tobie2c41296f90e
diff --git a/macos/Services/Updater/UpdaterService.swift b/macos/Services/Updater/UpdaterService.swiftindex 6239885..1a88eba 100644--- a/macos/Services/Updater/UpdaterService.swift+++ b/macos/Services/Updater/UpdaterService.swift@@ -14,25 +14,31 @@ import Sparklefinal class UpdaterService: ObservableObject {static let shared = UpdaterService()- private let controller: SPUStandardUpdaterController+ private let controller: SPUStandardUpdaterController?- @Published var canCheckForUpdates: Bool = true-- var updater: SPUUpdater { controller.updater }+ @Published var canCheckForUpdates: Bool = falseprivate init() {- controller = SPUStandardUpdaterController(+ let os = ProcessInfo.processInfo.operatingSystemVersion+ guard os.majorVersion < 26 else {+ controller = nil+ return+ }++ let c = SPUStandardUpdaterController(startingUpdater: true,updaterDelegate: nil,userDriverDelegate: nil)+ controller = c+ canCheckForUpdates = c.updater.canCheckForUpdates- controller.updater.publisher(for: \.canCheckForUpdates)+ c.updater.publisher(for: \.canCheckForUpdates).receive(on: RunLoop.main).assign(to: &$canCheckForUpdates)}func checkForUpdates() {- controller.checkForUpdates(nil)+ controller?.checkForUpdates(nil)}}diff --git a/scripts/build-app.sh b/scripts/build-app.shindex ed8380e..ed866a0 100755--- a/scripts/build-app.sh+++ b/scripts/build-app.sh@@ -100,7 +100,7 @@ fi# 7b. Embed Sparkle.framework (for in-app auto-update).# Located in SPM binary artifacts: .build/artifacts/sparkle/Sparkle/Sparkle.xcframework/macos-arm64_x86_64/-SPARKLE_FRAMEWORK=$(find "$PROJECT_DIR/.build/artifacts" -type d -name "Sparkle.framework" 2>/dev/null | grep "macos-" | head -1)+SPARKLE_FRAMEWORK=$(find "$PROJECT_DIR/.build/artifacts" -type d -name "Sparkle.framework" 2>/dev/null | grep "macos-" | head -1 || true)if [ -z "$SPARKLE_FRAMEWORK" ]; then# Fallback to per-arch build output (symlinked from xcframework)SPARKLE_FRAMEWORK="$BUILD_DIR/Sparkle.framework"@@ -112,6 +112,8 @@ if [ -d "$SPARKLE_FRAMEWORK" ]; then# Copy preserving symlinks (Sparkle uses Versions/B + Current symlink)rm -rf "$FRAMEWORKS_DIR/Sparkle.framework"cp -R "$SPARKLE_FRAMEWORK" "$FRAMEWORKS_DIR/Sparkle.framework"+ # SPM sets rpath to @executable_path — add ../Frameworks so dyld finds the framework+ install_name_tool -add_rpath "@executable_path/../Frameworks" "$MACOS_DIR/$APP_NAME" 2>/dev/null || trueelseecho "⚠ Sparkle.framework not found — auto-update will be disabled in this build."fidiff --git a/scripts/release-all.sh b/scripts/release-all.shindex 214bf69..84f1f83 100755--- a/scripts/release-all.sh+++ b/scripts/release-all.sh@@ -63,6 +63,11 @@ lipo -create \echo "✓ Universal binary:"lipo -info "$APP_BUNDLE/Contents/MacOS/Gridex"+# Fix rpath so dyld finds Sparkle.framework in Contents/Frameworks/+# SPM sets @loader_path (= MacOS dir) — we need ../Frameworks too.+echo "→ Fixing rpath for Sparkle.framework..."+install_name_tool -add_rpath "@loader_path/../Frameworks" "$APP_BUNDLE/Contents/MacOS/Gridex" 2>/dev/null || true+# 4. Sign + notarize the universal .appecho ""echo "━━━ Step 4: Sign + Notarize .app ━━━"