Skip to content

Commit d871ccc

Browse files
committed
fix: 优化打包脚本中--not-exit-code参数的条件表达式
1 parent 91f899a commit d871ccc

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' if inputs.not_exit_code == 'true' else '' }} ${{ inputs.config_path }}
283+
python package/nuitka_build/v2/main.py --log-level ${{ inputs.log_level }} ${{ inputs.not_exit_code ? '--not-exit-code' : '' }} ${{ 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' if inputs.not_exit_code == 'true' else '' }} ${{ inputs.config_path }}
289+
python package/nuitka_build/v2/main.py --log-level ${{ inputs.log_level }} ${{ inputs.not_exit_code ? '--not-exit-code' : '' }} ${{ inputs.config_path }}
290290
shell: bash
291291

292292
- name: Get output name on Windows

0 commit comments

Comments
 (0)