Skip to content

Commit 1d04ec4

Browse files
committed
fix: 优化打包脚本参数,动态处理--not-exit-code标志
1 parent 5ea07ed commit 1d04ec4

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

.github/workflows/nuitka_package_v2.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -280,13 +280,13 @@ jobs:
280280
[System.Environment]::SetEnvironmentVariable('PYTHONUTF8', '1', 'Process')
281281
# 设置控制台编码为UTF-8
282282
chcp.com 65001
283-
python package/nuitka_build/v2/main.py --log-level ${{ inputs.log_level }} --not-exit-code ${{ inputs.not_exit_code }} ${{ inputs.config_path }}
283+
python package/nuitka_build/v2/main.py --log-level ${{ inputs.log_level }} ${{ '--not-exit-code' if inputs.not_exit_code == 'true' else '' }} ${{ inputs.config_path }}
284284
shell: pwsh
285285

286286
- name: Run packaging script on Linux
287287
if: ${{ runner.os == 'Linux' }}
288288
run: |
289-
python package/nuitka_build/v2/main.py --log-level ${{ inputs.log_level }} --not-exit-code ${{ inputs.not_exit_code }} ${{ inputs.config_path }}
289+
python package/nuitka_build/v2/main.py --log-level ${{ inputs.log_level }} ${{ '--not-exit-code' if inputs.not_exit_code == 'true' else '' }} ${{ inputs.config_path }}
290290
shell: bash
291291

292292
- name: Get output name on Windows

0 commit comments

Comments
 (0)