@@ -86,27 +86,16 @@ jobs:
8686 run : |
8787 uv export --locked --format requirements.txt --no-dev --no-hashes --no-emit-project --no-emit-workspace --output-file constraints-briefcase.txt
8888
89- - name : Debug pip index visibility (Windows)
90- shell : pwsh
91- env :
92- PIP_INDEX_URL : https://pypi.org/simple
93- PIP_EXTRA_INDEX_URL : " "
94- PIP_NO_CACHE_DIR : " 1"
95- run : |
96- uv run python -m pip config debug
97- uv run python -m pip index versions PySide6 -i https://pypi.org/simple
98- Get-ChildItem Env: | Where-Object { $_.Name -like "PIP_*" } | Sort-Object Name
99-
10089 - name : Briefcase create / build / package (msi)
10190 env :
10291 QT_QPA_PLATFORM : offscreen
10392 PIP_INDEX_URL : https://pypi.org/simple
10493 PIP_EXTRA_INDEX_URL : " "
10594 PIP_NO_CACHE_DIR : " 1"
10695 run : |
107- uv run briefcase create windows app
108- uv run briefcase build windows app
109- uv run briefcase package windows -p msi
96+ uv run briefcase create --no-input
97+ uv run briefcase build --no-input
98+ uv run briefcase package --no-input -p msi
11099
111100 - name : Validate Windows signing secrets (optional gate)
112101 if : ${{ github.event_name == 'workflow_dispatch' && inputs.sign_artifacts }}
@@ -169,86 +158,20 @@ jobs:
169158 run : |
170159 uv export --locked --format requirements.txt --no-dev --no-hashes --no-emit-project --no-emit-workspace --output-file constraints-briefcase.txt
171160
172- - name : Debug pip index visibility (macOS)
173- env :
174- PIP_INDEX_URL : https://pypi.org/simple
175- PIP_EXTRA_INDEX_URL : " "
176- PIP_NO_CACHE_DIR : " 1"
177- run : |
178- uv run python -V
179- uv run python -m pip config debug
180- uv run python -m pip --version
181- uv run python -m pip debug --verbose | sed -n '1,120p'
182- uv run python -m pip index versions PySide6 -i https://pypi.org/simple
183- uv run python -m pip index versions PySide6-Addons -i https://pypi.org/simple
184- uv run python -m pip index versions PySide6-Essentials -i https://pypi.org/simple
185- uv run python -m pip index versions shiboken6 -i https://pypi.org/simple
186- uv run python -m pip download --no-deps "pyside6==6.11.0" -i https://pypi.org/simple -d /tmp/pyside6-test
187- uv run python -m pip download --no-deps "pyside6-addons==6.11.0" -i https://pypi.org/simple -d /tmp/pyside6-test
188- uv run python -m pip download --no-deps "pyside6-essentials==6.11.0" -i https://pypi.org/simple -d /tmp/pyside6-test
189- uv run python -m pip download --no-deps "shiboken6==6.11.0" -i https://pypi.org/simple -d /tmp/pyside6-test
190- ls -la /tmp/pyside6-test
191- env | sort | grep '^PIP_' || true
192-
193- - name : Debug constraints file (macOS)
194- run : |
195- ls -la constraints-briefcase.txt
196- sed -n '1,120p' constraints-briefcase.txt
197- grep -i '^pyside6' constraints-briefcase.txt || true
198-
199161 - name : Briefcase create / build / package (dmg)
200162 env :
201163 QT_QPA_PLATFORM : offscreen
202164 PIP_INDEX_URL : https://pypi.org/simple
203165 PIP_EXTRA_INDEX_URL : " "
204166 PIP_NO_CACHE_DIR : " 1"
205167 run : |
206- set -uo pipefail
207-
208- probe_support_python() {
209- echo "---- Probing Briefcase macOS support-package Python ----"
210- # Briefcase unpacks the support package BEFORE running pip install, so even
211- # when `briefcase create` fails the interpreter should already be on disk.
212- support_python=$(find build -type f \( -name 'python3' -o -name 'python3.12' -o -name 'python3.13' -o -name 'python3.14' \) -path '*Support*' 2>/dev/null | head -n 1 || true)
213- if [ -z "${support_python}" ]; then
214- echo "No support-package Python found under build/ (searching more broadly)..."
215- find build -maxdepth 8 -type f -name 'python3*' 2>/dev/null | head -n 20 || true
216- return 0
217- fi
218- echo "Support python: ${support_python}"
219- "${support_python}" -V || true
220- "${support_python}" -c "import sys, sysconfig; print('sys.platform:', sys.platform); print('sysconfig.get_platform:', sysconfig.get_platform()); print('MACOSX_DEPLOYMENT_TARGET:', sysconfig.get_config_var('MACOSX_DEPLOYMENT_TARGET')); print('executable:', sys.executable); print('prefix:', sys.prefix)" || true
221- # Full list of platform tags the support-package pip will accept.
222- "${support_python}" -c "from pip._internal.utils.compatibility_tags import get_supported; [print(t) for t in get_supported()[:40]]" || true
223- echo "---- Support-package pip: index versions for PySide6 ----"
224- "${support_python}" -m pip index versions PySide6 -i https://pypi.org/simple || true
225- echo "---- Support-package pip: dry-run install PySide6==6.11.0 ----"
226- "${support_python}" -m pip install --dry-run --index-url https://pypi.org/simple "pyside6==6.11.0" -vvv 2>&1 | sed -n '1,80p' || true
227- echo "---- End support-package probe ----"
228- }
229-
230- uv run briefcase create -v
231- status=$?
232- if [ "${status}" -ne 0 ]; then
233- echo "Briefcase create failed (exit ${status}); running support-package probe..."
234- probe_support_python
235- echo "Briefcase saved log (if any):"
236- ls -la logs 2>/dev/null || true
237- latest_log=$(ls -1t logs/briefcase.*.create.log 2>/dev/null | head -n 1 || true)
238- if [ -n "${latest_log}" ]; then
239- echo "---- Begin ${latest_log} ----"
240- sed -n '1,260p' "${latest_log}" || true
241- echo "---- End ${latest_log} ----"
242- fi
243- exit "${status}"
244- fi
245-
246- # Create succeeded: probe anyway (cheap) so we can confirm the fix landed.
247- probe_support_python
248-
249- set -e
250- uv run briefcase build -v
251- uv run briefcase package -v -p dmg
168+ set -euo pipefail
169+ uv run briefcase create --no-input
170+ uv run briefcase build --no-input
171+ # --adhoc-sign keeps `briefcase package` non-interactive when no Apple Developer
172+ # ID is configured. When signing secrets ARE provided, the dedicated
173+ # "Sign and notarize DMG" step below re-signs and notarizes the artifact.
174+ uv run briefcase package --no-input --adhoc-sign -p dmg
252175
253176 - name : Validate macOS signing secrets (optional gate)
254177 if : ${{ github.event_name == 'workflow_dispatch' && inputs.sign_artifacts }}
@@ -333,26 +256,16 @@ jobs:
333256 run : |
334257 uv export --locked --format requirements.txt --no-dev --no-hashes --no-emit-project --no-emit-workspace --output-file constraints-briefcase.txt
335258
336- - name : Debug pip index visibility (Linux)
337- env :
338- PIP_INDEX_URL : https://pypi.org/simple
339- PIP_EXTRA_INDEX_URL : " "
340- PIP_NO_CACHE_DIR : " 1"
341- run : |
342- uv run python -m pip config debug
343- uv run python -m pip index versions PySide6 -i https://pypi.org/simple
344- env | sort | grep '^PIP_' || true
345-
346259 - name : Briefcase create / build / package (linux system)
347260 env :
348261 QT_QPA_PLATFORM : offscreen
349262 PIP_INDEX_URL : https://pypi.org/simple
350263 PIP_EXTRA_INDEX_URL : " "
351264 PIP_NO_CACHE_DIR : " 1"
352265 run : |
353- uv run briefcase create linux system
354- uv run briefcase build linux system
355- uv run briefcase package linux system
266+ uv run briefcase create linux system --no-input
267+ uv run briefcase build linux system --no-input
268+ uv run briefcase package linux system --no-input
356269
357270 - name : Upload Briefcase Linux artifacts
358271 uses : actions/upload-artifact@v4
0 commit comments