github-file-icons icon indicating copy to clipboard operation
github-file-icons copied to clipboard

Safari support?

Open arguiot opened this issue 7 years ago • 9 comments

It would be great 👍 if there were a Safari version of it 😊.

arguiot avatar Jan 09 '18 13:01 arguiot

Haven't try it yet. I would do it when I'm free. PRs are welcome 😄

homerchen19 avatar Jan 10 '18 09:01 homerchen19

I got the extension working in Safari locally with the following steps:

  1. Configure Safari in macOS to Run Unsigned Extensions

  2. Convert web extension:

    # In github-file-icons/
    npm run build && xcrun safari-web-extension-converter build
    

    This creates and opens an Xcode project

  3. Select 'macOS (Extension)' in Xcode sidebar, then choose Product > Run from the menubar. This will open what looks like a desktop version of File Icons for GitHub and GitLab.

  4. Click 'Quit and Open Safari Extensions Preferences...'

  5. Enable File Icons for GitHub and GitLab

GitHub File Icons extension running on Safari

patrik-csak avatar Nov 15 '21 03:11 patrik-csak

Thanks! This still works 👍🏽

christopherpickering avatar Jun 17 '22 18:06 christopherpickering

@ptrkcsk did you find a way to keep the extension after a reboot? I have to read it after a reboot.

edit: it seems safari just reset the "enable unsigned..." when I restarted.

christopherpickering avatar Jun 20 '22 19:06 christopherpickering

i have the same issue

patrik-csak avatar Jun 21 '22 19:06 patrik-csak

It seems like to get the extension to be signed you have to fork out the $100 to add it to the appstore/get a developer certificate to sign it. https://stackoverflow.com/questions/39927598/can-you-distribute-a-safari-app-extension-outside-the-mac-app-store

I'm happy to put it on the App Store. Any one interested in contributing to the fees? From browsing other repos it looks like a GitHub action can be setup to build and deploy it to the App Store. https://preece.dev/2020/06/ios-testflight-deploy-with-github-actions/. If I do it, I'd probably make a separate repo that checks here for pushes on master once a day and build a new version where there's been an update. @homerchen19 what do you think?

christopherpickering avatar Jun 22 '22 11:06 christopherpickering

@ptrkcsk I took the plunge :D I had to tweak a few files in the extension converter output to make it build a usable package. Let me know if they work for you w/out turning on the unsigned option in Safari.

christopherpickering avatar Jun 23 '22 17:06 christopherpickering

I got a GitHub action to build the extension using my cert, here's a build with the app you can download. After unzipping It needs to go into "applications" before running.

https://github.com/christopherpickering/github-file-icons/actions/runs/2551948841

christopherpickering avatar Jun 23 '22 21:06 christopherpickering

Here's a build in the App Store: https://apps.apple.com/app/file-icons-for-github/id1631366167

christopherpickering avatar Jun 25 '22 12:06 christopherpickering

https://github.com/homerchen19/github-file-icons/pull/119

homerchen19 avatar Nov 21 '22 09:11 homerchen19