Skip to content

Repository files navigation

O'Clock

A macOS app that blocks a user-chosen set of other apps during scheduled weekly time windows, organized into independent "groups." Fully local — no backend, no accounts, no sync.

Built with SwiftUI and Realm, targeting macOS 14+.

Requirements

  • macOS 14 (Sonoma) or later
  • Xcode 15+
  • XcodeGen (only needed if you edit project.yml)

Running the project

Open OClock.xcodeproj in Xcode, select the OClock scheme, and run (Cmd+R).

If you change project.yml, regenerate the Xcode project first:

xcodegen generate

Running tests

Run the OClockTests target in Xcode with Cmd+U, or via the Makefile:

make test

Building an unsigned .dmg

To produce a distributable disk image without an Apple Developer account:

make dmg

This lands OClock.dmg in the project root. Since the app is unsigned, macOS Gatekeeper will block it on first launch — right-click the app, choose Open, then confirm.

Makefile

  • make lint — builds the project, which runs SwiftLint as a build plugin
  • make test — runs the OClockTests target from the command line
  • make app — builds an unsigned Release .app
  • make dmg — packages the .app into OClock.dmg

About

A macOS app that blocks a user-chosen set of other apps during scheduled weekly time windows

Resources

Stars

1 star

Watchers

0 watching

Forks

Releases

Packages

Contributors

Languages