소스 검색

Added support for bundling in auxilliary files

Sławomir Zborowski 1 년 전
부모
커밋
77ae6c7d55
1개의 변경된 파일6개의 추가작업 그리고 0개의 파일을 삭제
  1. 6 0
      python_appimage/commands/build/app.py

+ 6 - 0
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.*')