mirror of
https://github.com/onionshare/onionshare.git
synced 2024-12-25 23:39:43 -05:00
Use the correct Python
This commit is contained in:
parent
e8b388995b
commit
82a8df604d
@ -94,11 +94,11 @@ jobs:
|
|||||||
command: |
|
command: |
|
||||||
cd ~\Downloads
|
cd ~\Downloads
|
||||||
Invoke-WebRequest -Uri https://www.python.org/ftp/python/3.9.13/python-3.9.13-amd64.exe -OutFile python-3.9.13-amd64.exe
|
Invoke-WebRequest -Uri https://www.python.org/ftp/python/3.9.13/python-3.9.13-amd64.exe -OutFile python-3.9.13-amd64.exe
|
||||||
.\python-3.9.13-amd64.exe /quiet PrependPath=1
|
.\python-3.9.13-amd64.exe /quiet InstallAllUsers=1 TargetDir=C:\Python39 /log Python39-Install.log
|
||||||
|
|
||||||
- run:
|
- run:
|
||||||
name: Install poetry
|
name: Install poetry
|
||||||
command: (Invoke-WebRequest -Uri https://raw.githubusercontent.com/python-poetry/poetry/master/get-poetry.py -UseBasicParsing).Content | python -
|
command: C:\Python39\python -m pip install poetry
|
||||||
|
|
||||||
- restore_cache:
|
- restore_cache:
|
||||||
key: build-win64-desktop-poetry-deps-{{ checksum "~/project/desktop/poetry.lock" }}-{{ .Environment.CACHE_VERSION }}
|
key: build-win64-desktop-poetry-deps-{{ checksum "~/project/desktop/poetry.lock" }}-{{ .Environment.CACHE_VERSION }}
|
||||||
@ -106,7 +106,7 @@ jobs:
|
|||||||
name: Install poetry dependencies
|
name: Install poetry dependencies
|
||||||
command: |
|
command: |
|
||||||
cd C:\Users\circleci\project\desktop
|
cd C:\Users\circleci\project\desktop
|
||||||
poetry install
|
C:\Python39\scripts\poetry install
|
||||||
- save_cache:
|
- save_cache:
|
||||||
key: build-win64-desktop-poetry-deps-{{ checksum "~/project/desktop/poetry.lock" }}-{{ .Environment.CACHE_VERSION }}
|
key: build-win64-desktop-poetry-deps-{{ checksum "~/project/desktop/poetry.lock" }}-{{ .Environment.CACHE_VERSION }}
|
||||||
paths:
|
paths:
|
||||||
@ -118,7 +118,7 @@ jobs:
|
|||||||
name: Get tor binaries from Tor Browser (64-bit)
|
name: Get tor binaries from Tor Browser (64-bit)
|
||||||
command: |
|
command: |
|
||||||
cd desktop
|
cd desktop
|
||||||
poetry run python .\scripts\get-tor.py win64
|
C:\Python39\Scripts\poetry run python .\scripts\get-tor.py win64
|
||||||
- save_cache:
|
- save_cache:
|
||||||
key: get-tor-win64-{{ checksum "desktop/scripts/get-tor.py" }}-{{ .Environment.CACHE_VERSION }}
|
key: get-tor-win64-{{ checksum "desktop/scripts/get-tor.py" }}-{{ .Environment.CACHE_VERSION }}
|
||||||
paths:
|
paths:
|
||||||
@ -176,8 +176,8 @@ jobs:
|
|||||||
name: Build OnionShare
|
name: Build OnionShare
|
||||||
command: |
|
command: |
|
||||||
cd ~\project\desktop
|
cd ~\project\desktop
|
||||||
poetry run python .\setup-freeze.py build
|
C:\Python39\Scripts\poetry run python .\setup-freeze.py build
|
||||||
poetry run python .\scripts\build-windows.py cleanup-build
|
C:\Python39\Scripts\poetry run python .\scripts\build-windows.py cleanup-build
|
||||||
|
|
||||||
- run:
|
- run:
|
||||||
name: Compress
|
name: Compress
|
||||||
@ -200,11 +200,11 @@ jobs:
|
|||||||
command: |
|
command: |
|
||||||
cd ~\Downloads
|
cd ~\Downloads
|
||||||
Invoke-WebRequest -Uri https://www.python.org/ftp/python/3.9.13/python-3.9.13.exe -OutFile python-3.9.13.exe
|
Invoke-WebRequest -Uri https://www.python.org/ftp/python/3.9.13/python-3.9.13.exe -OutFile python-3.9.13.exe
|
||||||
.\python-3.9.13.exe /quiet PrependPath=1
|
.\python-3.9.13-amd64.exe /quiet InstallAllUsers=1 TargetDir=C:\Python39 /log Python39-Install.log
|
||||||
|
|
||||||
- run:
|
- run:
|
||||||
name: Install poetry
|
name: Install poetry
|
||||||
command: (Invoke-WebRequest -Uri https://raw.githubusercontent.com/python-poetry/poetry/master/get-poetry.py -UseBasicParsing).Content | python -
|
command: C:\Python39\python -m pip install poetry
|
||||||
|
|
||||||
- restore_cache:
|
- restore_cache:
|
||||||
key: build-win32-desktop-poetry-deps-{{ checksum "~/project/desktop/poetry.lock" }}-{{ .Environment.CACHE_VERSION }}
|
key: build-win32-desktop-poetry-deps-{{ checksum "~/project/desktop/poetry.lock" }}-{{ .Environment.CACHE_VERSION }}
|
||||||
@ -212,7 +212,7 @@ jobs:
|
|||||||
name: Install poetry dependencies
|
name: Install poetry dependencies
|
||||||
command: |
|
command: |
|
||||||
cd ~\project\desktop
|
cd ~\project\desktop
|
||||||
poetry install
|
C:\Python39\Scripts\poetry install
|
||||||
- save_cache:
|
- save_cache:
|
||||||
key: build-win32-desktop-poetry-deps-{{ checksum "~/project/desktop/poetry.lock" }}-{{ .Environment.CACHE_VERSION }}
|
key: build-win32-desktop-poetry-deps-{{ checksum "~/project/desktop/poetry.lock" }}-{{ .Environment.CACHE_VERSION }}
|
||||||
paths:
|
paths:
|
||||||
@ -224,7 +224,7 @@ jobs:
|
|||||||
name: Get tor binaries from Tor Browser (32-bit)
|
name: Get tor binaries from Tor Browser (32-bit)
|
||||||
command: |
|
command: |
|
||||||
cd desktop
|
cd desktop
|
||||||
poetry run python .\scripts\get-tor.py win32
|
C:\Python39\Scripts\poetry run python .\scripts\get-tor.py win32
|
||||||
- save_cache:
|
- save_cache:
|
||||||
key: get-tor-win32-{{ checksum "desktop/scripts/get-tor.py" }}-{{ .Environment.CACHE_VERSION }}
|
key: get-tor-win32-{{ checksum "desktop/scripts/get-tor.py" }}-{{ .Environment.CACHE_VERSION }}
|
||||||
paths:
|
paths:
|
||||||
@ -292,8 +292,8 @@ jobs:
|
|||||||
name: Build OnionShare
|
name: Build OnionShare
|
||||||
command: |
|
command: |
|
||||||
cd ~\project\desktop
|
cd ~\project\desktop
|
||||||
poetry run python .\setup-freeze.py build
|
C:\Python39\Scripts\poetry run python .\setup-freeze.py build
|
||||||
poetry run python .\scripts\build-windows.py cleanup-build
|
C:\Python39\Scripts\poetry run python .\scripts\build-windows.py cleanup-build
|
||||||
|
|
||||||
- run:
|
- run:
|
||||||
name: Compress
|
name: Compress
|
||||||
|
Loading…
Reference in New Issue
Block a user