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

Install CLI without the GUI? #270

Open
jhiggins opened this issue Mar 13, 2024 · 4 comments
Open

Install CLI without the GUI? #270

jhiggins opened this issue Mar 13, 2024 · 4 comments

Comments

@jhiggins
Copy link

Is there a way to install the CLI without using the user interface? The shell script in the bundle, as noted elsewhere, is templated.

@michaelherger
Copy link

michaelherger commented Aug 27, 2024

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)

@michaelherger
Copy link

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 Bin/darwin/platypus folder:

      - 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

@ad-si
Copy link

ad-si commented Jan 19, 2025

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/

@sveinbjornt
Copy link
Owner

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.

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

4 participants