@@ -27,7 +27,7 @@ python3 /path/to/PyCompiler_ARK/pycompiler_ark.py
2727``` bash
2828ARK_BIN=" python3 /path/to/PyCompiler_ARK/pycompiler_ark.py"
2929WORKSPACE_DIR=" /path/to/workspace"
30- ENGINE_ID=" pyinstaller "
30+ ENGINE_ID=" <engine_id> "
3131
3232# Single-step workspace flow (init + auto-config + inspect)
3333$ARK_BIN workspace apply " $WORKSPACE_DIR " --with-venv --strict --json > " $WORKSPACE_DIR /.ark_workspace_apply.json"
@@ -51,6 +51,13 @@ $ARK_BIN engine info "$ENGINE_ID" --workspace "$WORKSPACE_DIR" --json > "$WORKSP
5151$ARK_BIN engine compile " $ENGINE_ID " " $ENTRYPOINT_FILE " --workspace " $WORKSPACE_DIR " --json > " $WORKSPACE_DIR /.ark_build_result.json"
5252```
5353
54+ You can explicitly set or clear entrypoint in CI when needed:
55+
56+ ``` bash
57+ $ARK_BIN workspace entrypoint-set " $WORKSPACE_DIR " src/main.py --json
58+ $ARK_BIN workspace entrypoint-clear " $WORKSPACE_DIR " --json
59+ ```
60+
5461## Command Breakdown
5562
5663- ` workspace apply --with-venv --strict `
@@ -65,6 +72,10 @@ $ARK_BIN engine compile "$ENGINE_ID" "$ENTRYPOINT_FILE" --workspace "$WORKSPACE_
6572
6673- ` engine compile `
6774 - compiles the resolved entrypoint with the selected engine
75+ - ` engine config set/reset `
76+ - lets CI apply or reset workspace engine options without opening GUI
77+ - ` venv status/use-system/use-venv/install-req `
78+ - lets CI enforce workspace Python mode and requirements installation policy
6879
6980## Workspace Apply Options (CI-focused)
7081
@@ -111,11 +122,65 @@ List available engines:
111122python3 /path/to/PyCompiler_ARK/pycompiler_ark.py engine list --json
112123` ` `
113124
114- Common choices:
125+ Then pick one engine id from your environment.
126+
127+ # # Engine Config in CI (No GUI Required)
128+
129+ Read config:
130+
131+ ` ` ` bash
132+ python3 /path/to/PyCompiler_ARK/pycompiler_ark.py engine config show < engine_id> --workspace /path/to/workspace --json
133+ ` ` `
134+
135+ Set config from inline JSON:
136+
137+ ` ` ` bash
138+ python3 /path/to/PyCompiler_ARK/pycompiler_ark.py engine config set < engine_id> --workspace /path/to/workspace --options-json ' {"onefile": true}' --json
139+ ` ` `
140+
141+ Set config from file:
142+
143+ ` ` ` bash
144+ python3 /path/to/PyCompiler_ARK/pycompiler_ark.py engine config set < engine_id> --workspace /path/to/workspace --options-file /path/to/options.json --json
145+ ` ` `
146+
147+ Replace (instead of merge):
148+
149+ ` ` ` bash
150+ python3 /path/to/PyCompiler_ARK/pycompiler_ark.py engine config set < engine_id> --workspace /path/to/workspace --replace --options-file /path/to/options.json --json
151+ ` ` `
115152
116- - ` pyinstaller`
117- - ` nuitka`
118- - ` cx_freeze`
153+ Reset config:
154+
155+ ` ` ` bash
156+ python3 /path/to/PyCompiler_ARK/pycompiler_ark.py engine config reset < engine_id> --workspace /path/to/workspace --json
157+ ` ` `
158+
159+ # # Venv Control in CI
160+
161+ Inspect current mode:
162+
163+ ` ` ` bash
164+ python3 /path/to/PyCompiler_ARK/pycompiler_ark.py venv status /path/to/workspace --json
165+ ` ` `
166+
167+ Force system Python:
168+
169+ ` ` ` bash
170+ python3 /path/to/PyCompiler_ARK/pycompiler_ark.py venv use-system /path/to/workspace --json
171+ ` ` `
172+
173+ Force workspace venv:
174+
175+ ` ` ` bash
176+ python3 /path/to/PyCompiler_ARK/pycompiler_ark.py venv use-venv /path/to/workspace --create --json
177+ ` ` `
178+
179+ Install requirements explicitly:
180+
181+ ` ` ` bash
182+ python3 /path/to/PyCompiler_ARK/pycompiler_ark.py venv install-req /path/to/workspace --json
183+ ` ` `
119184
120185# # Useful Exit Codes
121186
@@ -155,7 +220,7 @@ This repository includes a workflow where ARK compiles itself using ARK CLI:
155220 - ` .ark/` (especially ` .ark/pref.json` and ` .ark/< engine_id> /config.json` )
156221- ` .ark/` stores engine command options used by ARK at build time ; commit it to keep builds reproducible across local and CI environments.
157222- Keep ` .ark_* .json` files as CI artifacts for debugging.
158- - Start with ` pyinstaller ` , then evaluate ` nuitka ` if you want runtime performance optimization .
223+ - Use ` engine list --json ` to select the target engine id dynamically per environment .
159224
160225# # GUI Selection Equivalent in CLI
161226
@@ -187,6 +252,6 @@ Recommended workflow:
187252Useful inspection commands:
188253
189254` ` ` bash
190- python3 /path/to/PyCompiler_ARK/pycompiler_ark.py engine config path pyinstaller --workspace /path/to/workspace
191- python3 /path/to/PyCompiler_ARK/pycompiler_ark.py engine config show pyinstaller --workspace /path/to/workspace --json
255+ python3 /path/to/PyCompiler_ARK/pycompiler_ark.py engine config path < engine_id > --workspace /path/to/workspace
256+ python3 /path/to/PyCompiler_ARK/pycompiler_ark.py engine config show < engine_id > --workspace /path/to/workspace --json
192257` ` `
0 commit comments