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

App bundle from UNIX Executable File #248

Open
gahbes opened this issue Apr 10, 2023 · 2 comments
Open

App bundle from UNIX Executable File #248

gahbes opened this issue Apr 10, 2023 · 2 comments

Comments

@gahbes
Copy link

gahbes commented Apr 10, 2023

Platypus has been suggested by many sources to do this but I can't figure out how.

Is this actually supported? I already tried creating the app bundle manually by creating the correct folder structure and info.plist but the app keeps closing right after opening.

Running the Unix exec directly works fine.

@gahbes
Copy link
Author

gahbes commented Apr 10, 2023

To clarify, using script type sh, bash or zsh (with interface text window) shows the following when I run the app.. 'Test.app/Contents/Resources/script: cannot execute binary file'.

Using 'Other' as script type shows no output and just a spinning wheel in the bottom left corner of the app window.

Creating an app with Script Editor using the following works as intended..
to run
tell application "Terminal"
do script "path_to_unix_exec"
end tell
end run

@bornjre
Copy link

bornjre commented Nov 13, 2023

Just create with simple sh script and execute you actual binary. (your added binaries/files are in resources folder)

#!/bin/sh

echo 'Hello, World'

echo $PWD

exec ./mybinary

also if u donot like panel created by platypus and instead want to execute your binary directly just copy your binary to Contents/Macos and replace binary there. There probably is better way by writing .plist file yourself though.

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