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

ActorEditor is inaccessible unless the appimage is extracted #1

Closed
andy5995 opened this issue Sep 10, 2022 · 1 comment
Closed

ActorEditor is inaccessible unless the appimage is extracted #1

andy5995 opened this issue Sep 10, 2022 · 1 comment

Comments

@andy5995
Copy link
Member

Hyperion noted:

Right in-game scenario editor is Atlas (-atlas option). Well, appimages have exactly one payload application but that could also be a shell script passing args to pyrogenesis unless there is an option -editor in which case it would run ActorEditor or in case of -h, --help print the readme.txt in binaries/system.

https://wildfiregames.com/forum/topic/91547-how-to-make-a-0ad-appimage/?do=findComment&comment=519879

@andy5995
Copy link
Member Author

Something like this should work:

#!/bin/bash

# The purpose of this custom AppRun script is
# to allow symlinking the AppImage and invoking
# the corresponding binary depending on which
# symlink was used to invoke the AppImage

HERE="$(dirname "$(readlink -f "${0}")")"

if [ ! -z $APPIMAGE ] ; then
  BINARY_NAME=$(basename "$ARGV0")
  if [ -e "$HERE/usr/bin/$BINARY_NAME" ] ; then
    exec "$HERE/usr/bin/$BINARY_NAME" "$@"
  else
    exec "$HERE/usr/bin/ippserver" "$@"
  fi
else
  exec "$HERE/usr/bin/ippserver" "$@"
fi

https://discourse.appimage.org/t/call-alternative-binary-from-appimage/93/10?u=andy5995

andy5995 added a commit that referenced this issue Sep 30, 2022
andy5995 added a commit that referenced this issue Sep 30, 2022
andy5995 added a commit that referenced this issue Sep 30, 2022
andy5995 added a commit that referenced this issue Sep 30, 2022
andy5995 added a commit that referenced this issue Oct 1, 2022
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

1 participant