Skip to content
SinaMombeinyPublic

About

A minimal macOS C++/SwiftUI app.

Topics

Resources

Stars

0 stars

Watchers

1 watching

Forks

Latest commit

 

History

70 Commits

Folders and files

Repository files navigation

SNote

SNote

A simple native macOS notes app built with SwiftUI and a C++23 application core.

Architecture

  • Swift and SwiftUI contain presentation code only: views, layout, typography, window styling, and forwarding text changes.
  • SNoteCore owns document state, text processing, JSON serialization, legacy preference migration, automatic saving, and file persistence.
  • Notes are saved to ~/Library/Application Support/SNote/Document.json. Existing SNote.notes UserDefaults data is migrated on first launch.

Run as a standalone macOS app

Install Xcode 27 with Swift 6.4 on macOS. You do not need to open the Xcode app.

From the project root, run this in the integrated terminal:

Scripts/package-app.sh

The script builds the SwiftPM executable, wraps it as dist/SNote.app, signs it with an ad-hoc local signature, and opens it through macOS Launch Services. The app runs independently from the terminal. You can also open dist/SNote.app directly from Finder.

To create and open a release build from the integrated terminal:

Scripts/package-app.sh release

The generated app is at dist/SNote.app. You can open it from Finder or drag it to Applications. It uses the generic macOS app icon until a custom icon is added. Local ad-hoc signing is for development; distributing the app to other people requires the Developer ID signing and notarization process described below.

Updating SNote

Choose SNote → Update SNote from the macOS menu to check GitHub Releases. The updater downloads the app archive and verifies its Ed25519 signature before installing it. It is implemented with the macOS SDK and does not bundle Sparkle.

To publish signed update archives, add a GitHub Actions repository secret named SNOTE_UPDATE_PRIVATE_KEY containing the PEM private key matching the public key embedded in Sources/SNoteUI/SNoteUpdater.swift. Keep that private key out of the repository. If the secret is missing, the release workflow publishes the installer but skips the auto-update archive and signature.

The updater can replace SNote without administrator access only when its current app folder is writable. For this, install the app at ~/Applications/SNote.app; an app installed in /Applications may require administrator authorization. The first updater-enabled version must be installed manually because older installed versions do not contain the updater.

macOS download

Download SNote-macOS.dmg or SNote-macOS.zip from GitHub Releases.

Open the DMG and drag SNote.app to the Applications folder. If macOS says Apple could not verify the app, remove the downloaded app quarantine flag, then open it:

xattr -cr /Applications/SNote.app
open /Applications/SNote.app

For a warning-free download, this repository supports Apple Developer ID signing and notarization. Configure these GitHub Actions secrets: BUILD_CERTIFICATE_BASE64, P12_PASSWORD, KEYCHAIN_PASSWORD, NOTARIZATION_APPLE_ID, NOTARIZATION_PASSWORD, and NOTARIZATION_TEAM_ID.

About

A minimal macOS C++/SwiftUI app.

Topics

Resources

Stars

0 stars

Watchers

1 watching

Forks

Releases

Contributors

Languages