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

set an argument for the interpreter doesn't work #243

Open stephane-archer opened 1 year ago

stephane-archer commented 1 year ago

When using Platypus, if I set an argument for the interpreter (bash) then when clicking to "Create App" nothing happens. if I don't, everything work as expected

miko007 commented 1 year ago

same for me.

image

this whole setup is not working. Clicking on the "create app" button does absolutely nothing but change the title of the application from "Platypus" to "Platypus – Select destination". But i can not proceed in any meaningful way.

yourScript is located under /usr/local/bin/

ghost commented 1 year ago

ive had the exact same issue, what breaks it is setting anything as arguments

sveinbjornt commented 1 year ago

This is a known bug in the latest version, will be fixed in the next update.

jdelker commented 1 year ago

Same problem here. Using the "Args" popup once seems to break the dialog system completely.

Is there any projection for when the next version can be expected?

jglass524 commented 8 months ago

I just ran into this problem too. as a workaround, what I did was create a config.sh script which set the arguments that I want: set -- -x -y -z "$@" and then the bash script reads config.sh before parsing the command-line options: if [ -f config.sh ]; then . config.sh; fi; options=$(getopt ...)

and then in Platypus, I added config.sh to the "Bundled Files" section

m-thomson commented 8 months ago

@jglass524 I think this issue is fixed, the author just hasn't released a new binary with the fix. Try compiling the project yourself and I believe it should just work. It does for me 👍🏼

cedmos commented 7 months ago

There is another workaround: Change the args as you want and save as profile.

Then close and go to 'Load Profile' (and don't change the args anymore).

After that it'll work