aboutsummaryrefslogtreecommitdiff
path: root/.github
diff options
context:
space:
mode:
authorMicah Lee <micah@micahflee.com>2022-10-02 11:19:32 -0700
committerMicah Lee <micah@micahflee.com>2022-10-02 11:19:32 -0700
commit8d345d3040e5861d06c8aaba07b3e2bf60a9f31c (patch)
tree28aa37a7c4562af0b75004c453f226075ebdaf50 /.github
parentfdd76a77082f0646d9e972647eefe2aa4a22cc21 (diff)
downloadonionshare-8d345d3040e5861d06c8aaba07b3e2bf60a9f31c.tar.gz
onionshare-8d345d3040e5861d06c8aaba07b3e2bf60a9f31c.zip
Hardcode path to poetry in macOS
Diffstat (limited to '.github')
-rw-r--r--.github/workflows/build.yml23
1 files changed, 12 insertions, 11 deletions
diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml
index cc124a6e..22ff24b1 100644
--- a/.github/workflows/build.yml
+++ b/.github/workflows/build.yml
@@ -214,17 +214,14 @@ jobs:
steps:
- uses: actions/checkout@v3
- - name: Install Python 3.9.13
+ - name: Install Python 3.9.13 (Intel)
run: |
- which python3
curl -L https://www.python.org/ftp/python/3.9.13/python-3.9.13-macosx10.9.pkg --output ~/Downloads/python.pkg
sudo installer -pkg ~/Downloads/python.pkg -target /
- which python3
- ls -l /Applications
- ls -l /Applications/Python*
- name: Install poetry
- run: python3 -m pip install poetry
+ run: |
+ python3 -m pip install poetry
- name: Restore cache - poetry
uses: actions/cache@v3
@@ -233,7 +230,9 @@ jobs:
key: ${{ runner.os }}-macos-poetry-${{ hashFiles('desktop/poetry.lock') }}
- name: Install poetry dependencies
- run: cd desktop && poetry install
+ run: |
+ cd desktop
+ /Library/Frameworks/Python.framework/Versions/3.9/bin/poetry install
- name: Restore cache - tor
uses: actions/cache@v3
@@ -242,7 +241,9 @@ jobs:
key: ${{ runner.os }}-macos-tor-${{ hashFiles('desktop/scripts/get-tor.py') }}
- name: Get tor binaries from Tor Browser
- run: cd desktop && poetry run python ./scripts/get-tor.py macos
+ run: |
+ cd desktop
+ /Library/Frameworks/Python.framework/Versions/3.9/bin/poetry run python ./scripts/get-tor.py macos
- name: Restore cache - obfs4proxy
uses: actions/cache@v3
@@ -292,9 +293,9 @@ jobs:
- name: Build OnionShare
run: |
cd desktop
- poetry run python ./setup-freeze.py build
- poetry run python ./setup-freeze.py bdist_mac
- poetry run python ./scripts/build-macos.py cleanup-build
+ /Library/Frameworks/Python.framework/Versions/3.9/bin/poetry run python ./setup-freeze.py build
+ /Library/Frameworks/Python.framework/Versions/3.9/bin/poetry run python ./setup-freeze.py bdist_mac
+ /Library/Frameworks/Python.framework/Versions/3.9/bin/poetry run python ./scripts/build-macos.py cleanup-build
- name: Compress
run: |