Fix Python binary

This commit is contained in:
Ben van Hartingsveldt 2025-09-16 18:42:30 +02:00
parent ee85ea06b8
commit 410daef342
No known key found for this signature in database
GPG key ID: 261AA214130CE7AB

View file

@ -24,7 +24,7 @@ jobs:
node-version: [16.x] node-version: [16.x]
os: os:
- ubuntu-latest - ubuntu-latest
- macos-latest - macos-13
- windows-latest - windows-latest
runs-on: ${{ matrix.os }} runs-on: ${{ matrix.os }}
continue-on-error: true continue-on-error: true
@ -38,7 +38,7 @@ jobs:
- uses: maxim-lobanov/setup-xcode@v1 - uses: maxim-lobanov/setup-xcode@v1
if: startsWith(runner.os, 'mac') if: startsWith(runner.os, 'mac')
with: with:
xcode-version: '16.0.0' xcode-version: '15.2.0'
# This is gonna be hacky. # This is gonna be hacky.
# Github made us upgrade xcode, which would force an upgrade of electron-builder to fix mac. # Github made us upgrade xcode, which would force an upgrade of electron-builder to fix mac.
# But there were bugs with copyfiles / extraFiles that kept seeing duplicates erroring on ln. # But there were bugs with copyfiles / extraFiles that kept seeing duplicates erroring on ln.
@ -52,14 +52,10 @@ jobs:
- name: Install Python2 - name: Install Python2
if: startsWith(runner.os, 'mac') if: startsWith(runner.os, 'mac')
run: | run: |
brew reinstall zlib
export LDFLAGS="-L/usr/local/opt/zlib/lib"
export CPPFLAGS="-I/usr/local/opt/zlib/include"
export PKG_CONFIG_PATH="/usr/local/opt/zlib/lib/pkgconfig"
brew install pyenv brew install pyenv
pyenv install 2.7 pyenv install 2.7
pyenv global 2.7 pyenv global 2.7
export PATH="$(pyenv root)/shims:${PATH}" ln -s $(pyenv which python2.7) /usr/bin/python
- name: Download blockchain headers - name: Download blockchain headers
run: | run: |
mkdir -p ./static/daemon mkdir -p ./static/daemon