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 · 2 comments
Open

Install CLI without the GUI? #270

jhiggins opened this issue Mar 13, 2024 · 2 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

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