mirror of
https://github.com/onionshare/onionshare.git
synced 2025-01-13 00:09:38 -05:00
Actually, use Python 3.11.6
This commit is contained in:
parent
22816bedca
commit
1f0d91b663
25
.github/workflows/build.yml
vendored
25
.github/workflows/build.yml
vendored
@ -17,10 +17,10 @@ jobs:
|
|||||||
- name: Install python
|
- name: Install python
|
||||||
uses: actions/setup-python@v4
|
uses: actions/setup-python@v4
|
||||||
with:
|
with:
|
||||||
python-version: '3.12.0'
|
python-version: '3.11.6'
|
||||||
|
|
||||||
- name: Install poetry
|
- name: Install poetry
|
||||||
run: C:\hostedtoolcache\windows\Python\3.12.0\x64\python -m pip install poetry
|
run: C:\hostedtoolcache\windows\Python\3.11.6\x64\python -m pip install poetry
|
||||||
|
|
||||||
- name: Restore cache - poetry
|
- name: Restore cache - poetry
|
||||||
uses: actions/cache@v3
|
uses: actions/cache@v3
|
||||||
@ -31,8 +31,8 @@ jobs:
|
|||||||
- name: Install poetry dependencies
|
- name: Install poetry dependencies
|
||||||
run: |
|
run: |
|
||||||
cd desktop
|
cd desktop
|
||||||
C:\hostedtoolcache\windows\Python\3.12.0\x64\Scripts\poetry install
|
C:\hostedtoolcache\windows\Python\3.11.6\x64\Scripts\poetry install
|
||||||
C:\hostedtoolcache\windows\Python\3.12.0\x64\Scripts\poetry env list --full-path
|
C:\hostedtoolcache\windows\Python\3.11.6\x64\Scripts\poetry env list --full-path
|
||||||
|
|
||||||
- name: Restore cache - tor
|
- name: Restore cache - tor
|
||||||
uses: actions/cache@v3
|
uses: actions/cache@v3
|
||||||
@ -41,7 +41,7 @@ jobs:
|
|||||||
key: ${{ runner.os }}-win64-tor-${{ hashFiles('desktop/scripts/get-tor.py') }}
|
key: ${{ runner.os }}-win64-tor-${{ hashFiles('desktop/scripts/get-tor.py') }}
|
||||||
|
|
||||||
- name: Get tor binaries from Tor Browser (64-bit)
|
- name: Get tor binaries from Tor Browser (64-bit)
|
||||||
run: cd desktop && C:\hostedtoolcache\windows\Python\3.12.0\x64\Scripts\poetry run python .\scripts\get-tor.py win64
|
run: cd desktop && C:\hostedtoolcache\windows\Python\3.11.6\x64\Scripts\poetry run python .\scripts\get-tor.py win64
|
||||||
|
|
||||||
- name: Install Go >=1.21.1
|
- name: Install Go >=1.21.1
|
||||||
uses: actions/setup-go@v4
|
uses: actions/setup-go@v4
|
||||||
@ -100,8 +100,8 @@ jobs:
|
|||||||
- name: Build OnionShare
|
- name: Build OnionShare
|
||||||
run: |
|
run: |
|
||||||
cd desktop
|
cd desktop
|
||||||
C:\hostedtoolcache\windows\Python\3.12.0\x64\Scripts\poetry run python .\setup-freeze.py build
|
C:\hostedtoolcache\windows\Python\3.11.6\x64\Scripts\poetry run python .\setup-freeze.py build
|
||||||
C:\hostedtoolcache\windows\Python\3.12.0\x64\Scripts\poetry run python .\scripts\build-windows.py cleanup-build
|
C:\hostedtoolcache\windows\Python\3.11.6\x64\Scripts\poetry run python .\scripts\build-windows.py cleanup-build
|
||||||
|
|
||||||
- name: Compress
|
- name: Compress
|
||||||
shell: pwsh
|
shell: pwsh
|
||||||
@ -114,17 +114,14 @@ jobs:
|
|||||||
name: win64-build
|
name: win64-build
|
||||||
path: ~\onionshare-win64.zip
|
path: ~\onionshare-win64.zip
|
||||||
|
|
||||||
# TODO: Someday, build universal2 mac binaries. Right now it's blocked because Github Actions doesn't support
|
|
||||||
# M1 Mac VMs: https://github.com/actions/runner-images/issues/2187
|
|
||||||
|
|
||||||
build-mac-intel:
|
build-mac-intel:
|
||||||
runs-on: macos-latest
|
runs-on: macos-latest
|
||||||
steps:
|
steps:
|
||||||
- uses: actions/checkout@v3
|
- uses: actions/checkout@v3
|
||||||
|
|
||||||
- name: Install Python 3.12.0 (universal2)
|
- name: Install Python 3.11.6 (universal2)
|
||||||
run: |
|
run: |
|
||||||
curl -L https://www.python.org/ftp/python/3.12.0/python-3.12.0-macos11.pkg --output ~/Downloads/python.pkg
|
curl -L https://www.python.org/ftp/python/3.11.6/python-3.11.6-macos11.pkg --output ~/Downloads/python.pkg
|
||||||
sudo installer -pkg ~/Downloads/python.pkg -target /
|
sudo installer -pkg ~/Downloads/python.pkg -target /
|
||||||
|
|
||||||
- name: Install poetry
|
- name: Install poetry
|
||||||
@ -212,7 +209,7 @@ jobs:
|
|||||||
cd desktop
|
cd desktop
|
||||||
/Library/Frameworks/Python.framework/Versions/3.12/bin/poetry run python ./setup-freeze.py bdist_mac
|
/Library/Frameworks/Python.framework/Versions/3.12/bin/poetry run python ./setup-freeze.py bdist_mac
|
||||||
rm -rf build/OnionShare.app/Contents/Resources/lib
|
rm -rf build/OnionShare.app/Contents/Resources/lib
|
||||||
mv build/exe.macosx-10.9-universal2-3.12/lib build/OnionShare.app/Contents/Resources/
|
mv build/exe.macosx-10.9-universal2-3.11/lib build/OnionShare.app/Contents/Resources/
|
||||||
/Library/Frameworks/Python.framework/Versions/3.12/bin/poetry run python ./scripts/build-macos.py cleanup-build
|
/Library/Frameworks/Python.framework/Versions/3.12/bin/poetry run python ./scripts/build-macos.py cleanup-build
|
||||||
|
|
||||||
- name: Compress
|
- name: Compress
|
||||||
@ -222,7 +219,7 @@ jobs:
|
|||||||
|
|
||||||
- uses: actions/upload-artifact@v3
|
- uses: actions/upload-artifact@v3
|
||||||
with:
|
with:
|
||||||
name: mac-build
|
name: mac-intel-build
|
||||||
path: ~/onionshare-macos-intel.tar.gz
|
path: ~/onionshare-macos-intel.tar.gz
|
||||||
|
|
||||||
build-flatpak:
|
build-flatpak:
|
||||||
|
@ -9,7 +9,7 @@ git clone https://github.com/onionshare/onionshare.git
|
|||||||
cd onionshare/desktop
|
cd onionshare/desktop
|
||||||
```
|
```
|
||||||
|
|
||||||
Make sure you have Python 3 installed. If you're using Windows or macOS, install the latest version of 3.12 [from python.org](https://www.python.org/downloads/). For Windows, make sure to check the box to add python to the path on the first page of the installer.
|
Make sure you have Python 3 installed. If you're using Windows or macOS, install the latest version of 3.11 [from python.org](https://www.python.org/downloads/). For Windows, make sure to check the box to add python to the path on the first page of the installer.
|
||||||
|
|
||||||
Make sure you have [poetry](https://python-poetry.org/) installed:
|
Make sure you have [poetry](https://python-poetry.org/) installed:
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user