You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Based on that blog post I eventually ended up with a heavily tweaked Rakefile. I need to remove some cruft, but it eventually gives me something to allow Platypus to build a macOS app.
However, opening this app shows 2 icons: one that I created for the app, and the other which is the "exec" terminal icon that macOS displays whenever a shell is being executed and there's no icon associated. Application switching (using Cmd+Tab) to the icon I created does give me access to the menus created by glimmer-dsl-libui, which is great, but the application is not shown. To do that, I must application switch over to the "exec" icon.
Do you have any examples or suggestions for eliminating the "exec" icon as well as showing the app when the icon from my Platypus config is selected?
Here are some screenshots and details for reference...
Pathos macOS (created using glimmer-dsl-libui):
Platypus configuration used for creating the "PathosMacOS.app" directory. The Script Path points to a package directory created via my Rakefile. I used rake package:osx to create the package directory, pathos_gui-1.0.0-osx-arm64:
The Script Path ultimately points to this script:
#!/bin/bashset -e
# TODO: update this for each app
APP_ROOT="pathos_gui/launch.rb"# Figure out where this script is located.
SELFDIR="`dirname \"$0\"`"
SELFDIR="`cd \"$SELFDIR\"&& pwd`"# Tell Bundler where the Gemfile and gems are.export BUNDLE_GEMFILE="$SELFDIR/lib/vendor/Gemfile"unset BUNDLE_IGNORE_CONFIG
# Run the actual app using the bundled Ruby interpreter, with Bundler activated.exec"$SELFDIR/lib/ruby/bin/ruby" -rbundler/setup "$SELFDIR/lib/app/$APP_ROOT"
Running open PathosMacOS.app via the terminal displays the 2 icons.
Application switching (via Cmd-Tab) to this icon will show the menus created by glimmer-dsl-lib, but does not focus the app:
Application switching (via Cmd-Tab) to this icon will show the app created with glimmer-dsl-libui (i.e., "put the app in focus"), but is not the icon I use for the app:
Summary
I believe the "exec" icon is shown because the Script Path points to a bash script, which in turn launches the glimmer-dsl-libui app. However, I need some suggestions for launching the glimmer-dsl-lib app directly so that it can include the necessary gems, Traveling Ruby, icons, etc.
Sorry if this was too long. Any suggestions are greatly appreciated. Thanks so much for your effort on this project!
The text was updated successfully, but these errors were encountered:
Hi @AndyObtiva,
I was inspired by the article (and your comment) at Create a MacOS desktop application with pure Ruby (Tutorial) and wanted to package my Pathos app, as seen here Go version and here Ruby version, into something available for macOS via the AppStore.
Based on that blog post I eventually ended up with a heavily tweaked Rakefile. I need to remove some cruft, but it eventually gives me something to allow Platypus to build a macOS app.
However, opening this app shows 2 icons: one that I created for the app, and the other which is the "exec" terminal icon that macOS displays whenever a shell is being executed and there's no icon associated. Application switching (using Cmd+Tab) to the icon I created does give me access to the menus created by glimmer-dsl-libui, which is great, but the application is not shown. To do that, I must application switch over to the "exec" icon.
Do you have any examples or suggestions for eliminating the "exec" icon as well as showing the app when the icon from my Platypus config is selected?
P.S. Additional inspiration in issue #65
Here are some screenshots and details for reference...
Pathos macOS (created using glimmer-dsl-libui):
Platypus configuration used for creating the "PathosMacOS.app" directory. The Script Path points to a package directory created via my Rakefile. I used
rake package:osx
to create the package directory, pathos_gui-1.0.0-osx-arm64:The Script Path ultimately points to this script:
Running
open PathosMacOS.app
via the terminal displays the 2 icons.Application switching (via Cmd-Tab) to this icon will show the menus created by glimmer-dsl-lib, but does not focus the app:
Application switching (via Cmd-Tab) to this icon will show the app created with glimmer-dsl-libui (i.e., "put the app in focus"), but is not the icon I use for the app:
Summary
I believe the "exec" icon is shown because the Script Path points to a
bash
script, which in turn launches the glimmer-dsl-libui app. However, I need some suggestions for launching the glimmer-dsl-lib app directly so that it can include the necessary gems, Traveling Ruby, icons, etc.Sorry if this was too long. Any suggestions are greatly appreciated. Thanks so much for your effort on this project!
The text was updated successfully, but these errors were encountered: