buresdv / Cork

A fast GUI for Homebrew written in SwiftUI
https://corkmac.app
1.86k stars 111 forks source link
homebrew homebrew-cask macos macos-app macos-application macos-swift swift swiftui

Cork

A fast GUI for Homebrew written in SwiftUI

Mastodon Link Discord Link Join the Forums

Special Thanks

I'd like to personally thank Seb Jachec for implementing a system for getting real-time outputs of Brew commands.

Without his contribution, many of the processes that depend on real-time outputs, such as installation, uninstallation and updating of packages, would be impossible.

I'd like to personally thank Dmitri Bouniol and Ben Carlsson for coming up with a way for self-compiled builds to bypass the license check.

Without them, it would be impossible to have a free self-compiled version of the app.

Advantages of Cork

Cork is not just an interface for Homebrew. It has many features that are either very hard to accomplish using Homebrew alone, or straight-up not possible.

Things that are not possible without Cork

Things that Cork makes easier

Getting Cork

Pre-compiled, always up-to-date versions are available from my Homebrew tap. You can get access to it in a few ways:

However, if you don't want to do any of the above, you can always compile Cork yourself. See below for instructions.

Screenshots

Main Window

Start Page

Package Info

Package Info         Package Info - Full-size Caveats         Package Info - Minimized Caveats

Tap Info

Tap Info - Formulae Only         Tap Info - Formulae and Casks

Install Package

Install Package         Install Package - Fetching Dependencies         Install Package - Installing Dependencies

Add Taps

Tap Taps

Brew Maintenance

Brew Maintenance         Brew Maintenance Results

Media

Do you run a blog, a magazine, make videos, or just make content about apps for fun? Get in touch at dev@corkmac.app!

I will provide you with the newest release and development version, answer any questions you have, and introduce you to Cork personally (and for free, or course), so you can focus on creating.

Compiling Cork

Compiling Cork is simple, as it does not have many dependencies.

Prerequisites:

Instructions:

Before you begin

Skip if you already have an Apple Developer account

  1. Enroll your account in the developer program at https://developer.apple.com/. You don't need a paid account, a free one works fine
  2. Install Xcode
  3. Add your Developer account to Xcode. To do so, in the Menu bar, click Xcode → Settings, and in the window that opens, click Accounts. You can add your account there
  4. After you add your account, it will appear in the list of Apple IDs on the left of the screen. Select your account there
  5. At the bottom of the screen, click Manage Certificates...
  6. On the bottom left, click the + icon and select Apple Development
  7. When a new item appears in the list called Apple Development Certificates, you can press Done to close the account manager

Compiling Cork

  1. I recommend you pick a version marked by one of the version tags. Those are released versions. If you decide to compile the current state of any of the branches, you might encounter experience-breaking bugs and unfinished features
  2. Clone this repo using git clone https://github.com/buresdv/Cork.git && cd Cork && open Cork.xcodeproj. Xcode will open the project
  3. Wait until all the dependencies are resolved. It should take a couple minutes at most
  4. In the file browser on the left, click Cork at the very top. It's the icon with the App Store logo
  5. In the pane that opens on the right, click Signing & Capabilities at the top
  6. Under Signing, switch the Team dropdown to None
  7. Under Signing → macOS, switch the Signing Certificate to Sign to Run Locally
  8. If it isn't already selected, change the Build Scheme to Self-Compiled in Xcode's toolbar. Build Scheme Selector

    [!WARNING] If you don't select the correct Build Scheme, Cork will require you to put in a license.

  9. In the Menu Bar, click Product → Archive and wait for the building to finish
  10. A new window will open. From the list of Cork rows, select the topmost one, and click Distribute App
  11. In the popup that appears, click Custom, then click Next in the bottom right of the popup
  12. Click Copy App
  13. Open the resulting folder. You'll see an app called Cork. Drag Cork to your /Applications/ folder, and you're done!

License

Cork is licensed under Commons Clause.

This means that Cork open-source and you can do whatever you want with Cork's source, like modifying it, contributing to it etc., but you can't sell or distribute Cork or modified versions of it.

Moreover, you can’t distribute compiled versions of Cork without consulting me first. Compiling versions for your personal use is fine.

Mutable.ai Auto Wiki