From 638d35a465e6aab885189f05dddee1b3aa69abad Mon Sep 17 00:00:00 2001 From: Micah Lee Date: Wed, 30 Mar 2022 12:50:28 -0700 Subject: [PATCH] Try installing 32-bit python and implementing build-win32 --- .circleci/config.yml | 46 ++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 46 insertions(+) diff --git a/.circleci/config.yml b/.circleci/config.yml index 330b4b53..a9a1ea93 100644 --- a/.circleci/config.yml +++ b/.circleci/config.yml @@ -13,6 +13,10 @@ workflows: requires: - test-cli # - test-gui + - build-win32: + requires: + - test-cli + # - test-gui jobs: test-cli: @@ -108,3 +112,45 @@ jobs: command: Compress-Archive -LiteralPath ~\project\desktop\build\exe.win-amd64-3.9 -DestinationPath ~\onionshare-win64.zip - store_artifacts: path: ~\onionshare-win64.zip + + build-win32: + executor: + name: win/default + shell: powershell.exe + + steps: + - checkout + - run: + name: Install chocolately dependencies + command: | + choco install python3 --params "/InstallDir32:C:\Python3.9-32bit" --version=3.9.12 + choco install 7zip + choco install go + - run: + name: Install poetry + command: (Invoke-WebRequest -Uri https://raw.githubusercontent.com/python-poetry/poetry/master/get-poetry.py -UseBasicParsing).Content | C:\Python3.9-32bit\python - + - run: + name: Install poetry dependencies + command: | + cd ~\project\desktop + poetry install + - run: + name: Get tor + command: | + cd ~\project\desktop + poetry run python .\scripts\get-tor-windows.py + - run: + name: Build meek + command: | + cd ~\project\desktop + python .\scripts\build-meek-client.py + - run: + name: Build + command: | + cd ~\project\desktop + poetry run python .\package\build-windows.py --ci-build + - run: + name: Compress + command: Compress-Archive -LiteralPath ~\project\desktop\build\exe.win32-3.9 -DestinationPath ~\onionshare-win32.zip + - store_artifacts: + path: ~\onionshare-win32.zip