### Build and install app with INSTALL=1 Scripts/Assemble.sh Source: https://github.com/1architect/macspace-releases/blob/main/CONTRIBUTING.md Builds Build/MacSpace.app and signs it. With INSTALL=1, quits a running copy and copies the app to /Applications, asking for an administrator password if needed. Use SIGN_IDENTITY=- for ad hoc signature. ```bash INSTALL=1 Scripts/Assemble.sh ``` -------------------------------- ### Install MacSpace with Homebrew Source: https://github.com/1architect/macspace-releases/blob/main/README.md Installs MacSpace via Homebrew using the official cask. Requires macOS 27 or later on Apple Silicon. ```bash brew install --cask 1architect/macspace/macspace ``` -------------------------------- ### Localization entry example for 'Recent cleanups' Source: https://github.com/1architect/macspace-releases/blob/main/CONTRIBUTING.md Example JSON entry mapping the English text to its four translations in order: Portuguese (Brazil), French, Spanish, German. ```json "Recent cleanups": ["Limpezas recentes", "Nettoyages récents", "Limpiezas recientes", "Letzte Bereinigungen"] ``` -------------------------------- ### Run localization generation and check Source: https://github.com/1architect/macspace-releases/blob/main/CONTRIBUTING.md Run both commands from the repository root after changing any text. The first generates localization files; the second also builds the package and checks for missing translations. ```bash swift Scripts/Localize.swift ``` ```bash swift Scripts/Localize.swift --check ``` -------------------------------- ### Build draft release Source: https://github.com/1architect/macspace-releases/blob/main/Docs/Releasing.md Builds the draft release from the tag, runs tests, signs and notarizes the app and disk image, signs the update, writes the feed, and creates a draft release. Nothing is public yet. ```bash Release/Scripts/Release.sh --ref vX.Y.Z --publish draft ``` -------------------------------- ### Run tests with swift test Source: https://github.com/1architect/macspace-releases/blob/main/CONTRIBUTING.md Run the test suite for the MacSpace project. ```bash swift test ``` -------------------------------- ### Publish release Source: https://github.com/1architect/macspace-releases/blob/main/Docs/Releasing.md Checks the draft (assets, checksum, feed), publishes it as Latest, waits for the update feed, and updates the Homebrew cask. ```bash Release/Scripts/Publish.sh vX.Y.Z ``` -------------------------------- ### Build MacSpace from source with swift test and Scripts/Assemble.sh Source: https://github.com/1architect/macspace-releases/blob/main/README.md Builds MacSpace from source on macOS 27 with Xcode 27. The last command builds Build/MacSpace.app and copies it to /Applications. Without a Developer ID certificate, the build is signed ad hoc and not notarized, and macOS asks for Full Disk Access again after each build. A build you make yourself has no update key, so it never checks for updates. ```bash export DEVELOPER_DIR=/Applications/Xcode-beta.app/Contents/Developer swift test INSTALL=1 Scripts/Assemble.sh ``` -------------------------------- ### Check helper status with MacSpaceCli helper --ping Source: https://github.com/1architect/macspace-releases/blob/main/Docs/Handoff.md Command to verify the helper is responding and reports the new binary after an app update. ```bash MacSpaceCli helper --ping ``` -------------------------------- ### Reset background items with sfltool resetbtm Source: https://github.com/1architect/macspace-releases/blob/main/Docs/Handoff.md Command to clear all background items, requiring a restart. Use only on a throwaway VM. ```bash sudo sfltool resetbtm ``` -------------------------------- ### Unregister MacSpace helper Source: https://github.com/1architect/macspace-releases/blob/main/README.md Run this command before deleting the app to unregister the helper. It is part of the manual uninstall steps. ```bash /Applications/MacSpace.app/Contents/MacOS/MacSpaceCli helper --unregister ``` -------------------------------- ### Print helper status and registration error Source: https://github.com/1architect/macspace-releases/blob/main/Docs/Handoff.md Commands to diagnose helper failures: print status and likely reason, print registration error, and inspect macOS's background task management record. ```bash MacSpaceCli helper ``` ```bash helper --register ``` ```bash sudo sfltool dumpbtm | grep -i -B2 -A14 macspace ``` -------------------------------- ### Verify DMG checksum with shasum Source: https://github.com/1architect/macspace-releases/blob/main/SECURITY.md Run in the folder containing the DMG and its .sha256 file. Outputs OK if the checksum matches. ```bash shasum -a 256 -c MacSpace-x.y.z.dmg.sha256 ``` -------------------------------- ### Verify MacSpace app signature and notarization Source: https://github.com/1architect/macspace-releases/blob/main/SECURITY.md Run after dragging MacSpace to Applications. Expected output includes Authority=Developer ID Application, TeamIdentifier=J45ZXS2ZF6, runtime flag, Notarization Ticket=stapled, and spctl accepted with source=Notarized Developer ID. ```bash codesign -dv --verbose=4 /Applications/MacSpace.app codesign --verify --deep --strict --verbose=2 /Applications/MacSpace.app spctl -a -vv /Applications/MacSpace.app xcrun stapler validate /Applications/MacSpace.app ``` -------------------------------- ### Tag and push release Source: https://github.com/1architect/macspace-releases/blob/main/Docs/Releasing.md Creates an annotated tag for the release and pushes it to the main branch. CI's release-metadata job validates the tag, changelog, and release notes. ```bash git tag -a vX.Y.Z -m "MacSpace X.Y.Z" git push origin main vX.Y.Z ``` -------------------------------- ### Set Xcode 27 toolchain with DEVELOPER_DIR Source: https://github.com/1architect/macspace-releases/blob/main/CONTRIBUTING.md Export the DEVELOPER_DIR environment variable to point to the Xcode 27 toolchain. Use the actual path if your Xcode 27 has a different name. ```bash export DEVELOPER_DIR=/Applications/Xcode-beta.app/Contents/Developer ``` -------------------------------- ### Revert a release to draft with gh release edit Source: https://github.com/1architect/macspace-releases/blob/main/Docs/Releasing.md Use this command to turn a bad release back into a draft, making the previous release Latest again and stopping the feed from offering the bad version. Copies that already updated stay on the bad version, so ship the fix as the next patch version. ```bash gh release edit vX.Y.Z --repo 1architect/macspace-releases --draft=true ``` -------------------------------- ### Remove MacSpace data and preferences Source: https://github.com/1architect/macspace-releases/blob/main/SECURITY.md Removes MacSpace data, logs, caches, preferences, and system-level support files. Requires sudo for the final command. ```bash rm -rf ~/Library/Application\ Support/MacSpace ~/Library/Logs/MacSpace ~/Library/Caches/com.macspace.app defaults delete com.macspace.app sudo rm -rf /Library/Application\ Support/MacSpace ``` === COMPLETE CONTENT === This response contains all available snippets from this library. No additional content exists. Do not make further requests.