Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up

A fast GUI for Homebrew written in SwiftUI

NotificationsYou must be signed in to change notification settings

buresdv/Cork

Repository files navigation

A fast GUI for Homebrew written in SwiftUI

Mastodon LinkDiscord LinkJoin the Forums

My whole life is falling apart right now, so the development of Cork will be impacted

Special Thanks

I'd like to personally thankSeb 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 thankDmitri Bouniol andBen 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

  • Automatically respecting system proxy.
  • Clearing of cached downloads.
  • Updating packages from the Menu Bar without having Cork open.
  • Seeing this much info about a package in one convenient location.
  • Tagging packages. This is a Cork-only feature that lets you mark any number of packages you'd like to keep track of.

Things that Cork makes easier

  • Listing of installed packages. Cork has its own way of loading packages, which is around 10 times faster than the Homebrew implementation.
  • Knowing which packages you installed intentionally, and which packages were installed only as dependencies. While somewhat possible with thebrew leaves command, it is often unreliable, often not listing packages that should be included.
  • Updating of only selected packages. Again, while possible with Homebrew alone, Cork makes it so easy you wouldn't believe it is not this simple in Homebrew itself.
  • Showing you exactly which packages a package is a dependency of. Super annoying in Homebrew, effortless with Cork.
  • Effortlessly managing Homebrew services with a simple click of a button in a beautiful sub-window.
  • And many other features! Just try Cork out and try finding them all 😉

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:

  • Buy Cork for 25€ through thewebsite. You will get access to all future versions at no additional cost.
  • Become a contributor. For example, you can:
    • Translate Cork into your language, and keep your translation updated. I'd recommend joining theCork Discord, as I always ping the translators there when new text is ready for translating.If you aren't sure how to go about translating Cork, I'd recommend asking the translation team on Discord. They have theLinguist role.If you'd prefer to learn on your own, this Apple documentation article is a nice introduction to the process:Internalization.
    • Implement a feature tagged withHelp Wanted in theIssue Tracker.Please respect the coding style. The main deviation from the Swift convention is thatbrackets are on their own lines.

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 atdev@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. It uses Tuist to generate Xcode projects to speed up compilation.

Prerequisites:

  • macOS Ventura or newer
  • Xcode 16 or newer
  • Git
  • Homebrew

Instructions:

Before you begin

Skip if you already have an Apple Developer account

  1. Enroll your account in the developer program athttps://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, clickXcode → Settings, and in the window that opens, clickAccounts. 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, clickManage Certificates...
  6. On the bottom left, click the+ icon and selectApple Development
  7. When a new item appears in the list calledApple Development Certificates, you can pressDone to close the account manager

Installing Tuist and Its Prerequisites

Skip if you already have Tuist and Mise installed

Installing Mise

Cork uses Mise to prevent conflicts arising from mismatched Tuist versions across Macs. Mise is a tool similar to Homebrew, but offers some advantages for Tuist specifically, like the aforementioned version synchronization.

  1. Install Mise usingcurl https://mise.run | sh
  2. Initialize Mise using the command you see after the installation finishes. It's located undermise: run the following to activate mise in your shell:.
    In my case, it wasecho "eval \"\$(/Users/david/.local/bin/mise activate zsh)\"" >> "/Users/david/.zshrc"

Caution

Make sure to copy the command Mise itself gives you, and not the one I used above. This command is only valid for my Mac, and will not work on your machine.

  1. Addmise to your path using one of the following commands, depending on your shell.
  • zsh:echo 'eval "$(~/.local/bin/mise activate zsh)"' >> ~/.zshrc
  • bash:echo 'eval "$(~/.local/bin/mise activate bash)"' >> ~/.bashrc
  • fish:echo '~/.local/bin/mise activate fish | source' >> ~/.config/fish/config.fish

Tip

zsh is the default macOS shell.

Note

If you don't know which shell you're running, use the commandecho $SHELL. The last part of the output after the last slash is the name of your shellIn my case, the output of the command is/bin/zsh. This means my shell iszsh

Installing Tuist

  1. Install Tuist usingmise install tuist

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. Use the commandgit clone https://github.com/buresdv/Cork.git && cd Cork && mise use tuist@4.25.0 && tuist install && tuist generate --no-binary-cache. Xcode will open the project.
What does this command do?
  1. git clone https://github.com/buresdv/Cork.git downloads the source code
  2. cd Cork opens the folder you downloaded Cork into
  3. mise use tells your system to use version4.25.0 of Tuist to build Cork
  4. tuist install downloads all Cork pre-requisites
  5. tuist generate creates the Xcode project and opens it
  1. Wait until all the dependencies are resolved. It should take a couple minutes at most
  2. In the file browser on the left, clickCork at the very top. It's the icon with the App Store logo
  3. In the pane that opens on the right, clickSigning & Capabilities at the top
  4. UnderSigning, switch theTeam dropdown toNone
  5. UnderSigning → macOS, switch theSigning Certificate toSign to Run Locally
  6. If it isn't already selected, change the Build Scheme toSelf-Compiled in Xcode'stoolbar.Build Scheme Selector

Warning

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

  1. In the Menu Bar, clickProduct → Archive and wait for the building to finish
  2. A new window will open. From the list of Cork rows, select the topmost one, and clickDistribute App
  3. In the popup that appears, clickCustom, then clickNext in the bottom right of the popup
  4. ClickCopy App
  5. 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 underCommons Clause.

This means that Cork's source source is available and you can modify it, contribute 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


[8]ページ先頭

©2009-2025 Movatter.jp