Skip to content

Commit 8bb95cf

Browse files
author
PyCompiler ARK++
committed
rconsturction de version stable
1 parent 328c4c7 commit 8bb95cf

3 files changed

Lines changed: 118 additions & 228 deletions

File tree

Plugins_SDK/AcPluginContext/Context.py

Lines changed: 0 additions & 190 deletions
This file was deleted.

Plugins_SDK/AcPluginContext/__init__.py

Lines changed: 0 additions & 38 deletions
This file was deleted.

building_script_pyinstaller.txt

Lines changed: 118 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,118 @@
1+
# PyInstaller build script for PyCompiler-ARK-Professional
2+
# How to use:
3+
# - Ensure you are in the project root (this file's directory)
4+
# - Use the project venv if applicable; ensure pyinstaller is installed
5+
# - Run one of the commands below
6+
#
7+
# Recommended venv install (if not already):
8+
# python -m pip install --upgrade pip
9+
# python -m pip install pyinstaller
10+
#
11+
# Linux system deps (often needed by PyInstaller/Nuitka):
12+
# apt: sudo apt-get install -y binutils patchelf p7zip-full
13+
# dnf: sudo dnf install -y binutils patchelf p7zip
14+
# pacman: sudo pacman -S --noconfirm binutils patchelf p7zip
15+
#
16+
# Entry points supported:
17+
# 1) Full GUI application (recommended for end-users)
18+
# - Entry: main.py
19+
# - App name: PyCompiler-ARK
20+
# 2) BCASL Studio (standalone GUI)
21+
# - Entry: bcasl/only_mod/main.py
22+
# - App name: BCASL-Studio
23+
#
24+
# Common data/resources included:
25+
# - themes/*.qss
26+
# - logo/*.png,*.jpg,*.jpeg,*.bmp
27+
# - Plugins/Cleaner/languages/*.json
28+
# - ENGINES/*/languages/*.json
29+
# - bcasl/only_mod/ui/*.ui
30+
# - Core/ui/ui_design.ui (main GUI uses this)
31+
# - All i18n language json files under languages/** and bcasl/only_mod/languages/**
32+
#
33+
# Note: This project dynamically loads .ui and resources from relative paths. We ship them as datas.
34+
35+
36+
# Helper: convert a folder to --add-data entries (for manual review):
37+
# Linux/macOS format: src_path:dest_subdir
38+
# Windows PowerShell: src_path;dest_subdir
39+
# We'll provide commands using POSIX separators; on Windows replace ':' with ';'
40+
41+
42+
# 1) Build the full GUI application (one-folder)
43+
# Note: include hidden imports for dynamic deps (PyYAML, psutil)
44+
pyinstaller \
45+
--name PyCompiler-ARK \
46+
--noconfirm \
47+
--windowed \
48+
--clean \
49+
--workpath build/pyi_build \
50+
--distpath dist/pyi_dist \
51+
--paths . \
52+
--hidden-import PySide6 \
53+
--hidden-import PySide6.QtCore \
54+
--hidden-import PySide6.QtGui \
55+
--hidden-import PySide6.QtWidgets \
56+
--hidden-import PySide6.QtUiTools \
57+
--hidden-import bcasl \
58+
--hidden-import Plugins \
59+
--hidden-import Core \
60+
--hidden-import yaml \
61+
--hidden-import yaml.loader \
62+
--hidden-import yaml.cyaml \
63+
--hidden-import psutil \
64+
--add-data "themes:themes" \
65+
--add-data "logo:logo" \
66+
--add-data "languages:languages" \
67+
--add-data "bcasl/only_mod/languages:bcasl/only_mod/languages" \
68+
--add-data "bcasl/only_mod/ui:bcasl/only_mod/ui" \
69+
--add-data "Plugins/Cleaner/languages:Plugins/Cleaner/languages" \
70+
--add-data "ENGINES/cx_freeze/languages:ENGINES/cx_freeze/languages" \
71+
--add-data "ui:ui" \
72+
main.py
73+
74+
# 2) Build the BCASL Studio (one-folder)
75+
# Note: include hidden imports for dynamic deps (PyYAML, psutil)
76+
pyinstaller \
77+
--name BCASL-Studio \
78+
--noconfirm \
79+
--windowed \
80+
--clean \
81+
--workpath build/pyi_build_bcasl \
82+
--distpath dist/pyi_dist_bcasl \
83+
--paths . \
84+
--hidden-import PySide6 \
85+
--hidden-import PySide6.QtCore \
86+
--hidden-import PySide6.QtGui \
87+
--hidden-import PySide6.QtWidgets \
88+
--hidden-import PySide6.QtUiTools \
89+
--hidden-import bcasl \
90+
--hidden-import yaml \
91+
--hidden-import yaml.loader \
92+
--hidden-import yaml.cyaml \
93+
--hidden-import psutil \
94+
--add-data "themes:themes" \
95+
--add-data "logo:logo" \
96+
--add-data "languages:languages" \
97+
--add-data "bcasl/only_mod/languages:bcasl/only_mod/languages" \
98+
--add-data "bcasl/only_mod/ui:bcasl/only_mod/ui" \
99+
--add-data "Plugins/Cleaner/languages:Plugins/Cleaner/languages" \
100+
--add-data "ENGINES/cx_freeze/languages:ENGINES/cx_freeze/languages" \
101+
--add-data "ui:ui" \
102+
bcasl/only_mod/main.py
103+
104+
105+
# Optional: One-file variants (may increase startup time)
106+
# Replace the command by adding --onefile, for example:
107+
# pyinstaller --name PyCompiler-ARK --onefile --windowed ... main.py
108+
109+
# Icon (optional): If you have an .ico/.icns/.png, add:
110+
# --icon logo/logo.png
111+
# Note: PyInstaller prefers .ico on Windows and .icns on macOS.
112+
113+
# Qt plugins: PySide6 plugins are auto-collected by PyInstaller hooks. If a platform
114+
# complains about missing platform plugins (like xcb), ensure proper Qt runtime is present.
115+
116+
# Running the built apps:
117+
# - dist/pyi_dist/PyCompiler-ARK/PyCompiler-ARK
118+
# - dist/pyi_dist_bcasl/BCASL-Studio/BCASL-Studio

0 commit comments

Comments
 (0)