|# url : https://gist.github.com/672684|
|# version : 2.0.2|
|# name : appify|
|# description : Create the simplest possible mac app from a shell script.|
|# usage : cat my-script.sh | appify MyApp|
|# platform : Mac OS X|
|# author : Thomas Aylott <firstname.lastname@example.org>|
|if [[ -a "$APPNAME.app" ]]; then|
|echo "App already exists :'(" >&2|
|mkdir -p "$APPNAME.app/Contents/MacOS"|
|chmod +x "$APPNAME.app/Contents/MacOS/$APPNAME"|
|until $DONE ;do|
|read || DONE=true|
|[[ ! $REPLY ]] && continue|
|echo "$REPLY" >> "$APPNAME.app/Contents/MacOS/$APPNAME"|
I used this today to on a .sh script of mine. When launching the app it states: "You can't open the application...because PowerPC applications are no longer supported. I'm running Mountain Lion. My .sh script runs fine natively, it is small and just uses a couple curl lines to download some tar.gz files. Any ideas?
Running on mac OSX 10.10.2
OS X 10.10.5:
adding the Info.plist with next content didn't help:
Any ideas how to make it work on Yosemite?
and i added the execution permission for my .sh file.
The applified application dies immediately and I see the following entry in the console log:
os is 10.11.5
I forked this and added option-parsing, overridable icons file, and some other bits: https://gist.github.com/oubiwann/453744744da1141ccc542ff75b47e0cf
Trying to run Electron without using electron-packager.
I can get
But not when I double-click from the Finder, or right-click and select "Open".
Here are the repro steps:
#!/bin/bash cd $(dirname "$0")/../../.. ./node_modules/.bin/electron .
Any help would be awesome.
Looks like it wasn't working because
This works as intended:
can any one help???
When you're troubleshooting problems, it might look like changes to the shebang line or such things could do the trick, but they do not. The problem is that macOS caches app information which might result in things not working even after you modified the bundle. If that is the case, just run "touch" on your application's bundle. That will make macOS re-read your Info.plist.