Skip to content

Commit

Permalink
use appdir path from recipe if available and does exist on the system
Browse files Browse the repository at this point in the history
  • Loading branch information
cabiste-dev authored and azubieta committed Feb 8, 2024
1 parent af45b1b commit 80437be
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion appimagebuilder/orchestrator.py
Original file line number Diff line number Diff line change
Expand Up @@ -157,7 +157,11 @@ def _generate_pacman_deploy_command(self, context, pacman_section):
)

def _extract_v1_recipe_context(self, args, recipe):
app_dir_path = pathlib.Path(args.appdir).absolute()
if recipe.AppDir.path() and os.path.exists(recipe.AppDir.path()):
app_dir_path = pathlib.Path(recipe.AppDir.path()).absolute()
else:
app_dir_path = pathlib.Path(args.appdir).absolute()

build_dir_path = pathlib.Path(args.build_dir).absolute()

app_info_section = recipe.AppDir.app_info
Expand Down

0 comments on commit 80437be

Please sign in to comment.