-
-
Notifications
You must be signed in to change notification settings - Fork 174
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
Install CLI without the GUI? #270
Comments
I'd be very interested, too. As I hope to be able to run builds in a Github action, we would need a way to run the CLI version completely without GUI. Maybe this hint might help? #245 (comment) |
Thanks @berleant! Your hint in #245 (comment) was spot on (except that some of the files are gzipped and need to be extracted. Here's my Github Action snippet which would build a Hello World application using the Platypus CLI. Assuming the three files mentioned in the above comment and the sample script are in your repo's - name: Platypus Test
run: |
cd Bin/darwin/platypus
sudo mkdir -p /usr/local/share/platypus || echo $?
sudo cp -nfr * /usr/local/share/platypus || echo $?
/usr/local/share/platypus/platypus_clt -y helloworld.sh
zip -r9 HelloWorld.zip Helloworld.app
- name: Upload artifacts
uses: actions/upload-artifact@v4
with:
path: Bin/darwin/platypus/HelloWorld.zip |
Here another example GitHub workflow from ad-si/Perspec: - name: Make Platypus CLI available
run: |
brew install --cask platypus
mv /Applications/Platypus.app/Contents/Resources/platypus_clt.gz .
gunzip platypus_clt.gz
mv platypus_clt /usr/local/bin/platypus
sudo mkdir -p /usr/local/share/platypus
mv /Applications/Platypus.app/Contents/Resources/ScriptExec.gz .
gunzip ScriptExec.gz
sudo mv ScriptExec /usr/local/share/platypus/
sudo mv \
/Applications/Platypus.app/Contents/Resources/MainMenu.nib \
/usr/local/share/platypus/ |
I'm planning for the next version of the Platypus command line tool to store the nib in the binary itself so it will be completely self-contained. That way, an install will simply involve copying a single binary file to a given location. |
Is there a way to install the CLI without using the user interface? The shell script in the bundle, as noted elsewhere, is templated.
The text was updated successfully, but these errors were encountered: