8000 Homebrew Apple Silicon build (ARM64) · Issue #89 · Lord-Kamina/SwiftDefaultApps · GitHub
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content

Homebrew Apple Silicon build (ARM64) #89

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
porg opened this issue Dec 1, 2024 · 2 comments
Open

Homebrew Apple Silicon build (ARM64) #89

porg opened this issue Dec 1, 2024 · 2 comments

Comments

@porg
Copy link
porg commented Dec 1, 2024

Someone already managed to build this for Apple Silicon with some tweaks.

Could we please get an official Apple Silicon build for Homebrew?

@gardinermichael
Copy link
gardinermichael commented Feb 21, 2025
xcode-select --install
gh repo clone Lord-Kamina/SwiftDefaultApps
cd SwiftDefaultApps/
git submodule init
git submodule update
cd Packages/SwiftCLI-2.0.3
swift build
cd ../..
open SwiftDefaultApps\ CLI.xcodeproj

Click into "SwiftDefaultApps CLI" in the sidebar browser, the top level folder/project. Go to the Signing & Capabilities tab. Under Signing, Uncheck "Automatically manage signing". Under macOS, click the "Signing Certificate" dropdown and select "Sign to Run Locally."

In menu bar, go to Product > Build.

In the sidebar, find SwiftDefaultApps CLI > Products > swda. It should no longer be greyed out. Right click the file and select "Show in Finder."

Go back to terminal. type in sudo cp then drag the file into the window. Then, type in /usr/local/bin/swda. Example:

sudo cp '/Users/USERNAME/Library/Developer/Xcode/DerivedData/SwiftDefaultApps_CLI-XXXXXXX/Build/Products/Debug/swda' /usr/local/bin/swda

Close the Xcode window for the "SwiftDefaultApps CLI" project. Go back to terminal. Enter:

open SWDA\ Prefpane.xcodeproj

Click into the "SWDA Prefpane" in the sidebar file browser, the top level project/folder. In the sidebar in the settings panel, so not the file browser sidebar, click "SwiftDefaultApps" under "TARGETS." Right above it should be "SWDA Prefpane" under "PROJECT." Go to the "Signing & Capabilities" tab. Under Signing, Uncheck "Automatically manage signing." Under macOS, click the "Signing Certificate" dropdown and select "Sign to Run Locally."

Under the top level "SWDA Prefpane" project, click into the "AppDoesNothing" project. Go to the "Signing & Capabilities" tab. Under Signing, Uncheck "Automatically manage signing." Under macOS, click the "Signing Certificate" dropdown and select "Sign to Run Locally." Do the same for the "SwiftDefaultApps CLI" project. It should be done already. Click back into "SWDA Prefpane" project in the sidebar file browser.

At the very top of the window there should be a Play button. Next to the Play button is a Git branch icon and "SWDA Prefpane / master." Next to that is a URL bar looking box. There should be dropdown button defaulted to "Build CLI" that's next to a " > My Mac" section. Click the dropdown button and select "Build Prefpane."

In menu bar, go to Product > Build. In the sidebar, find SWDA Prefpane > Products > SwiftDefaultApps and right click it. Select Show in Finder. Double-click the SwiftDefaultApps.prefpane file to install it.

Cry a few tears and finally manage to stop Thunderbird from opening rss feed URIs in 2025.

@porg
Copy link
Author
porg commented Feb 21, 2025

Thanks for sharing these instructions.

For now I can live without SwiftDefaultApps.prefpane but good to know if needed there's a precise instruction. Thx!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants
0