Repository navigation
feat: import settings and tidy up when switching from the App Store build - #474
Merged
Merged
Conversation
…uild The App Store build keeps its prefs in its sandbox container, so users who switch to the direct build start from scratch (#464). The direct build now offers, once each and only on a click: - importing the App Store settings, whitelisted to the keys the app defines (no SU*, window frames, status item positions or unknown keys), when the container has custom settings and this build has none yet; - moving a leftover App Store copy (a bundle with _MASReceipt and the same bundle id, not the running one) to the Trash via NSWorkspace.recycle; - moving itself into /Applications, then relaunching once this process exits. All of it is compiled only with HIDDENBAR_NATIVE_VISIBILITY; Debug builds skip it unless launched with -forceAppStoreMigration YES. The App Store build's macOS 27 notice also shows `brew install --cask hiddenbar` as selectable text. Its button keeps opening the web page, not the release zip: App Review 2.4.5(iv) and (vii) make an in-app download of a newer build read as an outside update channel.
This was referenced Nov 15, 2026
Closed
tieubao
added a commit
that referenced
this pull request
Nov 15, 2026
Bump MARKETING_VERSION to 1.11.3 and CURRENT_PROJECT_VERSION to 18 in all eight app configurations (App Store and Direct targets), add the 1.11.3 CHANGELOG entry (#475, #474), and add a runbook step that uploads a byte-identical Hidden-Bar-macos.zip so the releases/latest/download/Hidden-Bar-macos.zip URL stays stable.
This was referenced Nov 15, 2026
Merged
tieubao
added a commit
that referenced
this pull request
Nov 15, 2026
MARKETING_VERSION 1.12.0 and CURRENT_PROJECT_VERSION 19 in all 8 app configurations (Direct x4, App Store x4). CHANGELOG: the Unreleased section becomes v1.12.0 (2026-11-15) and folds in the unshipped 1.11.3 entry (#475, #474, #479); there is no separate 1.11.3 section. The microphone checkbox is named as the redesigned Settings window labels it. RUNBOOK: step 5 uploads a byte-identical Hidden-Bar-macos.zip, so releases/latest/download/Hidden-Bar-macos.zip stays stable (carried over from #476).
tieubao
added a commit
that referenced
this pull request
Nov 15, 2026
MARKETING_VERSION 1.12.0 and CURRENT_PROJECT_VERSION 19 in all 8 app configurations (Direct x4, App Store x4). CHANGELOG: the Unreleased section becomes v1.12.0 (2026-11-15) and folds in the unshipped 1.11.3 entry (#475, #474, #479); there is no separate 1.11.3 section. The microphone checkbox is named as the redesigned Settings window labels it. RUNBOOK: step 5 uploads a byte-identical Hidden-Bar-macos.zip, so releases/latest/download/Hidden-Bar-macos.zip stays stable (carried over from #476).
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Why
Both builds use
com.dwarvesv.minimalbar, but the App Store build is sandboxed and keeps its prefs in~/Library/Containers/com.dwarvesv.minimalbar/Data/Library/Preferences/, while the direct build reads~/Library/Preferences/. Switching builds resets every setting (#464). App Review 2.4.5 forbids the App Store build from fetching or installing the other build, so all migration logic lives in the direct build.What (direct build only,
#if HIDDENBAR_NATIVE_VISIBILITY)UserDefaults.Key, type-checked.SU*, window frames, status item positions, internal flags and unknown keys are dropped. After an import the app re-applies login item and hotkey and posts the prefs notifications./Applicationsand~/Applications;NSWorkspace.recycleonly after the click./Applications(an existing direct copy there goes to the Trash first), trashes the original unless translocated, then relaunches from a/bin/shwaiter after this process exits, so the new instance does not quit as a duplicate. Not offered when/Applicationsis not writable or holds the App Store copy (the Trash offer goes first).-forceAppStoreMigration YES.App Store build: macOS 27 notice
brew install --cask hiddenbaras selectable monospaced text.releases/latest/download/<asset>is not stable: assets are versioned (Hidden-Bar-v1.11.2-macos.zipresolves today; an unversioned name 404s), so the link would break on the next release. A test pins this (page, not.zip).Proof
scripts/test.shon developscripts/test.shon this branchSMLoginItemSetEnableddeprecation and two shim selectors), no new warningsAppStoreMigrationagainst a fake HOME (CFFIXED_USER_HOME, fake container plist, fake App Store bundle with_MASReceipt) and the real notice through its menu path; each alert is captured, then dismissed withabortModal(no pointer or key input; no answer recorded)Notes
AppStoreSettingsImport.importableKeysand the whitelist test.