Skip to content

Commit 7531e71

Browse files
ci(release): pre-fetch bootstrap-python so todesktop validates extraResources (#506)
@todesktop/cli@1.22.0 now eagerly validates the platform-specific extraResources paths in todesktop.json before invoking the beforeBuild hook, so the bootstrap-python/{win-x64,mac-arm64,linux-x64} directories must exist on disk at the time todesktop build runs. Run the existing fetch-bootstrap-python script (all platforms) right after the CLI is installed. Amp-Thread-ID: https://ampcode.com/threads/T-019e009a-812e-734e-b371-d5eacf9d34c2 Amp-Thread-ID: https://ampcode.com/threads/T-019e009a-812e-734e-b371-d5eacf9d34c2 Co-authored-by: Amp <amp@ampcode.com>
1 parent e185dda commit 7531e71

1 file changed

Lines changed: 9 additions & 0 deletions

File tree

.github/workflows/build-release.yml

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -87,6 +87,15 @@ jobs:
8787
- name: Install ToDesktop CLI
8888
run: npm install --location=global @todesktop/cli@1.22.0
8989

90+
- name: Pre-fetch bootstrap-python for all platforms
91+
# @todesktop/cli now eagerly validates the `extraResources` paths in
92+
# todesktop.json *before* invoking the `beforeBuild` hook, so the
93+
# platform-specific bootstrap-python directories must exist locally
94+
# at the time `todesktop build` is invoked.
95+
env:
96+
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
97+
run: pnpm run bootstrap:fetch
98+
9099
- name: Build with ToDesktop
91100
shell: bash
92101
run: |

0 commit comments

Comments
 (0)