Fix copying tor binaries into project

This commit is contained in:
Micah Lee 2022-05-29 14:41:23 -07:00
parent 50ed30a84f
commit 35ff387809
No known key found for this signature in database
GPG Key ID: 403C2657CD994F73

View File

@ -98,9 +98,8 @@ jobs:
# NOTE: make sure to change when upgrading tor # NOTE: make sure to change when upgrading tor
key: "build-win64-tor-0.4.7.7-{{ .Environment.CACHE_VERSION }}" key: "build-win64-tor-0.4.7.7-{{ .Environment.CACHE_VERSION }}"
# Install cygwin and required packages
- run: - run:
name: Install cygwin and required packages (for building tor) name: Install cygwin and required packages
shell: bash.exe --login -eo pipefail shell: bash.exe --login -eo pipefail
command: | command: |
curl -o setup-x86_64.exe https://cygwin.com/setup-x86_64.exe curl -o setup-x86_64.exe https://cygwin.com/setup-x86_64.exe
@ -156,7 +155,6 @@ jobs:
# paths: # paths:
# - C:\Users\circleci\build\libevent # - C:\Users\circleci\build\libevent
# Build tor
- run: - run:
name: Build tor name: Build tor
shell: C:\\cygwin64\\bin\\bash.exe --login -eo pipefail shell: C:\\cygwin64\\bin\\bash.exe --login -eo pipefail
@ -198,9 +196,10 @@ jobs:
- run: - run:
name: Copy tor binaries into project name: Copy tor binaries into project
command: | command: |
Copy-Item -Path C:\Useres\circleci\build\tor\bin\tor.exe -Destination C:\Users\circleci\project\desktop\onionshare\resources\tor\Tor\ New-Item -ItemType Directory -Force -Path C:\Users\circleci\project\desktop\onionshare\resources\tor\Tor\
Copy-Item -Path C:\Useres\circleci\build\tor\share\tor\geoip -Destination C:\Users\circleci\project\desktop\onionshare\resources\tor\Tor\ Copy-Item -Path C:\Users\circleci\build\tor\bin\tor.exe -Destination C:\Users\circleci\project\desktop\onionshare\resources\tor\Tor\
Copy-Item -Path C:\Useres\circleci\build\tor\share\tor\geoip6 -Destination C:\Users\circleci\project\desktop\onionshare\resources\tor\Tor\ Copy-Item -Path C:\Users\circleci\build\tor\share\tor\geoip -Destination C:\Users\circleci\project\desktop\onionshare\resources\tor\Tor\
Copy-Item -Path C:\Users\circleci\build\tor\share\tor\geoip6 -Destination C:\Users\circleci\project\desktop\onionshare\resources\tor\Tor\
- restore_cache: - restore_cache:
# NOTE: make sure to change when uprading obfs4proxy # NOTE: make sure to change when uprading obfs4proxy