Skip to content
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

Native Apple Silicon Support without Rosetta #70

Open
hologerry opened this issue Dec 18, 2023 · 4 comments
Open

Native Apple Silicon Support without Rosetta #70

hologerry opened this issue Dec 18, 2023 · 4 comments

Comments

@hologerry
Copy link

Thanks for this amazing workflow, which I use everyday.
Previously, I was using an Intel Mac, but now I have switched to Apple Silicon. I can help build native Apple Silicon binary files, but I am unsure about how to package them into an Alfred .workflow file.

@drgrib
Copy link
Owner

drgrib commented Dec 18, 2023

Hi @hologerry. If you have Go installed and set to build Apple Silicon binaries (the default setting on Silicon Macs), the easiest way to rebuild all the binaries is to open the workflow folder in VS Code and run the "go build all" task. On my setup, I have the build menu in VS Code mapped to the cmd+B, which I think is the default but can't remember if it is or not.

@hologerry
Copy link
Author

hologerry commented Dec 18, 2023

Hi @drgrib, Thanks.
I have built all the Apple Silicon binaries without any warning or error.
I replaced the newly built cmd folder in the Alfred workflow folder user.workflow.xxxxxxx (which is opened using "open in Finder" in Alfred Preferences), this workflow works!
But I don't know how to package the whole repo to a .workflow file for directly installing the workflow.

@drgrib
Copy link
Owner

drgrib commented Dec 18, 2023

For future reference, you can actually just build the binaries in-place in user.workflow.xxxxxxx by opening that folder in VS Code. You don't need to do it externally.

For personal use, user.workflow.xxxxxxx is the workflow.

The only reason to export a .workflow file is if you want to share the workflow with other people. To do that, you would open Workflows > Bear (e.g. by typing ?bear in the Alfred prompt), right-click the "Bear" item in the vertical list, and select "Export...".

But, again, this does not sound like what you want to do. For a personal setup with the Apple Silicon binaries, you are already done. All the .workflow file does is create the user.workflow.xxxxxxx folder in your Alfred installation, which you already have.

@hologerry
Copy link
Author

I understand, thank you very much.

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