sveinbjornt / Platypus

Create native Mac applications from command line scripts.
https://sveinbjorn.org/platypus
BSD 3-Clause "New" or "Revised" License
2.84k stars 171 forks source link

Request for update: Platypus version in Homebrew is outdated #245

Open torhector2 opened 1 year ago

torhector2 commented 1 year ago

Hey there,

We're using the Platypus program from Homebrew to create apps in our GitHub Actions workflows. But the version we're using (5.3) isn't working right, and the apps we make won't run. It turns out that newer versions of Platypus (5.4 and 5.4.1) have fixed this issue.

Could you update the version of Platypus in Homebrew to the newest one, so we can use it and other people can too?

Thank you very much for your help and for providing such a great app.

michalzaq12 commented 1 year ago

@sveinbjornt Is there any way to download latest CLI directly? Thanks in advance!

sveinbjornt commented 1 year ago

You can install the command line client via the Preferences window in Platypus.

sveinbjornt commented 1 year ago

That being said, I should try to fix the issue with including Platypus in Homebrew.

berleant commented 8 months ago

Since brew install platypus is now disabled, how do you recommend installing the CLI on a GitHub Actions runner (with no GUI)?

sveinbjornt commented 8 months ago

The command line tool is in the Platypus.app bundle. It's also a target in the xcodeproj. That stuff is definitely fixable. Probably the simplest is to include the binary in your repo.

berleant commented 8 months ago

Thanks for the quick response!

For anyone else trying to get this to work, here is what I did:

  1. Save the following files from Platypus.app/Contents/Resources into the repo (some of these files needed to be unzipped first): platypus_clt ScriptExec MainMenu.nib
  2. As part of the pipeline, copy ScriptExec and MainMenu.nib into /usr/local/share/platypus
  3. As part of the pipeline, install platypus via brew according to the instructions on the website. (I'm not sure if this is actually necessary)
  4. Change the platypus command in the pipeline to platypus_clt
michaelherger commented 2 months ago

FWIW: I've successfully followed @berleant's instructions with some tweaks:

I've created a Github action which would successfully bundle a Hello World script and upload the asset. See https://github.com/sveinbjornt/Platypus/issues/270#issuecomment-2312235079.