From 77ae6c7d55764fbc3fe32817e4f232e8e365ed0b Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?S=C5=82awomir=20Zborowski?= Date: Sun, 28 Apr 2024 22:48:00 +0200 Subject: [PATCH] Added support for bundling in auxilliary files --- python_appimage/commands/build/app.py | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/python_appimage/commands/build/app.py b/python_appimage/commands/build/app.py index 00c0c3e..bef8bda 100644 --- a/python_appimage/commands/build/app.py +++ b/python_appimage/commands/build/app.py @@ -287,6 +287,12 @@ def execute(appdir, name=None, python_version=None, linux_tag=None, '--no-warn-script-location', requirement), exclude=(deprecation + git_warnings)) + # Bundle auxilliary application files + aux_files_path = glob.glob(appdir + '/files') + if aux_files_path: + aux_files_path = aux_files_path[0] + log('BUNDLE', os.path.basename(aux_files_path)) + copy_tree(aux_files_path, 'AppDir/') # Bundle the entry point entrypoint_path = glob.glob(appdir + '/entrypoint.*')