mirror of
https://github.com/onionshare/onionshare.git
synced 2025-02-26 01:11:27 -05:00
Cache deps in win64 and win32
This commit is contained in:
parent
b86de120e6
commit
e1da7fc702
@ -98,11 +98,17 @@ jobs:
|
|||||||
Invoke-WebRequest -Uri $URL -OutFile $Filename
|
Invoke-WebRequest -Uri $URL -OutFile $Filename
|
||||||
$FileHash = Get-FileHash $Filename
|
$FileHash = Get-FileHash $Filename
|
||||||
if($FileHash.Hash -ne $ExpectedHash) { throw "Invalid hash" }
|
if($FileHash.Hash -ne $ExpectedHash) { throw "Invalid hash" }
|
||||||
Expand-Archive -LiteralPath tor-win32-0.4.6.10.zip -DestinationPath ~\project\desktop\onionshare\resources\tor
|
mkdir ~\Downloads\tor\tor-win32
|
||||||
|
Expand-Archive -LiteralPath tor-win32-0.4.6.10.zip -DestinationPath ~\Downloads\tor\tor-win32
|
||||||
- save_cache:
|
- save_cache:
|
||||||
key: download-tor-win32-0.4.6.10
|
key: download-tor-win32-0.4.6.10
|
||||||
paths:
|
paths:
|
||||||
- ~\project\desktop\onionshare\resources\tor
|
- ~\project\desktop\onionshare\resources\tor
|
||||||
|
- run:
|
||||||
|
name: Copy tor binary into app
|
||||||
|
command: cp ~\Downloads\tor\tor-win32\* ~\project\desktop\onionshare\resources\tor
|
||||||
|
- restore_cache:
|
||||||
|
key: build-win64-obfs4proxy-v0.0.13
|
||||||
- run:
|
- run:
|
||||||
name: Build obfs4proxy
|
name: Build obfs4proxy
|
||||||
command: |
|
command: |
|
||||||
@ -110,18 +116,35 @@ jobs:
|
|||||||
cd Downloads\obfs4proxy
|
cd Downloads\obfs4proxy
|
||||||
git clone https://gitlab.com/yawning/obfs4
|
git clone https://gitlab.com/yawning/obfs4
|
||||||
cd obfs4
|
cd obfs4
|
||||||
|
git checkout obfs4proxy-0.0.13
|
||||||
go build .\obfs4proxy
|
go build .\obfs4proxy
|
||||||
Move-Item -Path .\obfs4proxy.exe -Destination ~\project\desktop\onionshare\resources\tor\Tor\obfs4proxy.exe
|
Move-Item -Path .\obfs4proxy.exe -Destination ~\project\desktop\onionshare\resources\tor\Tor\obfs4proxy.exe
|
||||||
|
- save_cache:
|
||||||
|
key: build-win64-obfs4proxy-v0.0.13
|
||||||
|
paths:
|
||||||
|
- ~\project\desktop\onionshare\resources\tor\Tor\obfs4proxy.exe
|
||||||
|
- restore_cache:
|
||||||
|
key: build-win64-snowflake-v2.1.0
|
||||||
- run:
|
- run:
|
||||||
name: Build snowflake-client
|
name: Build snowflake-client
|
||||||
command: |
|
command: |
|
||||||
go install git.torproject.org/pluggable-transports/snowflake.git/client@latest
|
go install git.torproject.org/pluggable-transports/snowflake.git/client@v2.1.0
|
||||||
Move-Item -Path ~\go\bin\client.exe -Destination ~\project\desktop\onionshare\resources\tor\Tor\snowflake-client.exe
|
Move-Item -Path ~\go\bin\client.exe -Destination ~\project\desktop\onionshare\resources\tor\Tor\snowflake-client.exe
|
||||||
|
- save_cache:
|
||||||
|
key: build-win64-snowflake-v2.1.0
|
||||||
|
paths:
|
||||||
|
- ~\project\desktop\onionshare\resources\tor\Tor\snowflake-client.exe
|
||||||
|
- restore_cache:
|
||||||
|
key: build-win64-meek-v0.37.0
|
||||||
- run:
|
- run:
|
||||||
name: Build meek-client
|
name: Build meek-client
|
||||||
command: |
|
command: |
|
||||||
go install git.torproject.org/pluggable-transports/meek.git/meek-client@v0.37.0
|
go install git.torproject.org/pluggable-transports/meek.git/meek-client@v0.37.0
|
||||||
Move-Item -Path ~\go\bin\meek-client.exe -Destination ~\project\desktop\onionshare\resources\tor\Tor\meek-client.exe
|
Move-Item -Path ~\go\bin\meek-client.exe -Destination ~\project\desktop\onionshare\resources\tor\Tor\meek-client.exe
|
||||||
|
- save_cache:
|
||||||
|
key: build-win64-meek-v0.37.0
|
||||||
|
paths:
|
||||||
|
- ~\project\desktop\onionshare\resources\tor\Tor\meek-client.exe
|
||||||
- run:
|
- run:
|
||||||
name: Build OnionShare
|
name: Build OnionShare
|
||||||
command: |
|
command: |
|
||||||
@ -160,6 +183,8 @@ jobs:
|
|||||||
command: |
|
command: |
|
||||||
cd ~\project\desktop
|
cd ~\project\desktop
|
||||||
C:\Python-32bit\Scripts\poetry install
|
C:\Python-32bit\Scripts\poetry install
|
||||||
|
- restore_cache:
|
||||||
|
key: download-tor-win32-0.4.6.10
|
||||||
- run:
|
- run:
|
||||||
name: Download tor (Windows Expert Bundle)
|
name: Download tor (Windows Expert Bundle)
|
||||||
command: |
|
command: |
|
||||||
@ -171,26 +196,53 @@ jobs:
|
|||||||
Invoke-WebRequest -Uri $URL -OutFile $Filename
|
Invoke-WebRequest -Uri $URL -OutFile $Filename
|
||||||
$FileHash = Get-FileHash $Filename
|
$FileHash = Get-FileHash $Filename
|
||||||
if($FileHash.Hash -ne $ExpectedHash) { throw "Invalid hash" }
|
if($FileHash.Hash -ne $ExpectedHash) { throw "Invalid hash" }
|
||||||
Expand-Archive -LiteralPath tor-win32-0.4.6.10.zip -DestinationPath ~\project\desktop\onionshare\resources\tor
|
mkdir ~\Downloads\tor\tor-win32
|
||||||
|
Expand-Archive -LiteralPath tor-win32-0.4.6.10.zip -DestinationPath ~\Downloads\tor\tor-win32
|
||||||
|
- save_cache:
|
||||||
|
key: download-tor-win32-0.4.6.10
|
||||||
|
paths:
|
||||||
|
- ~\project\desktop\onionshare\resources\tor
|
||||||
|
- run:
|
||||||
|
name: Copy tor binary into app
|
||||||
|
command: cp ~\Downloads\tor\tor-win32\* ~\project\desktop\onionshare\resources\tor
|
||||||
|
- restore_cache:
|
||||||
|
key: build-win32-obfs4proxy-v0.0.13
|
||||||
- run:
|
- run:
|
||||||
name: Build obfs4proxy
|
name: Build obfs4proxy
|
||||||
command: |
|
command: |
|
||||||
mkdir ~\Downloads\obfs4proxy
|
mkdir ~\Downloads\obfs4proxy
|
||||||
cd Downloads\obfs4proxy
|
cd Downloads\obfs4proxy
|
||||||
git clone https://gitlab.com/yawning/obfs4
|
git clone https://gitlab.com/yawning/obfs4
|
||||||
|
git checkout obfs4proxy-0.0.13
|
||||||
cd obfs4
|
cd obfs4
|
||||||
"C:\\Program Files (x86)\\Go\\bin\\go" build .\obfs4proxy
|
"C:\\Program Files (x86)\\Go\\bin\\go" build .\obfs4proxy
|
||||||
Move-Item -Path .\obfs4proxy.exe -Destination ~\project\desktop\onionshare\resources\tor\Tor\obfs4proxy.exe
|
Move-Item -Path .\obfs4proxy.exe -Destination ~\project\desktop\onionshare\resources\tor\Tor\obfs4proxy.exe
|
||||||
|
- save_cache:
|
||||||
|
key: build-win32-obfs4proxy-v0.0.13
|
||||||
|
paths:
|
||||||
|
- ~\project\desktop\onionshare\resources\tor\Tor\obfs4proxy.exe
|
||||||
|
- restore_cache:
|
||||||
|
key: build-win32-snowflake-v2.1.0
|
||||||
- run:
|
- run:
|
||||||
name: Build snowflake-client
|
name: Build snowflake-client
|
||||||
command: |
|
command: |
|
||||||
"C:\\Program Files (x86)\\Go\\bin\\go" install git.torproject.org/pluggable-transports/snowflake.git/client@latest
|
"C:\\Program Files (x86)\\Go\\bin\\go" install git.torproject.org/pluggable-transports/snowflake.git/client@v2.1.0
|
||||||
Move-Item -Path ~\go\bin\client.exe -Destination ~\project\desktop\onionshare\resources\tor\Tor\snowflake-client.exe
|
Move-Item -Path ~\go\bin\client.exe -Destination ~\project\desktop\onionshare\resources\tor\Tor\snowflake-client.exe
|
||||||
|
- save_cache:
|
||||||
|
key: build-win32-snowflake-v2.1.0
|
||||||
|
paths:
|
||||||
|
- ~\project\desktop\onionshare\resources\tor\Tor\snowflake-client.exe
|
||||||
|
- restore_cache:
|
||||||
|
key: build-win32-meek-v0.37.0
|
||||||
- run:
|
- run:
|
||||||
name: Build meek-client
|
name: Build meek-client
|
||||||
command: |
|
command: |
|
||||||
"C:\\Program Files (x86)\\Go\\bin\\go" install git.torproject.org/pluggable-transports/meek.git/meek-client@v0.37.0
|
"C:\\Program Files (x86)\\Go\\bin\\go" install git.torproject.org/pluggable-transports/meek.git/meek-client@v0.37.0
|
||||||
Move-Item -Path ~\go\bin\meek-client.exe -Destination ~\project\desktop\onionshare\resources\tor\Tor\meek-client.exe
|
Move-Item -Path ~\go\bin\meek-client.exe -Destination ~\project\desktop\onionshare\resources\tor\Tor\meek-client.exe
|
||||||
|
- save_cache:
|
||||||
|
key: build-win32-meek-v0.37.0
|
||||||
|
paths:
|
||||||
|
- ~\project\desktop\onionshare\resources\tor\Tor\meek-client.exe
|
||||||
- run:
|
- run:
|
||||||
name: Build OnionShare
|
name: Build OnionShare
|
||||||
command: |
|
command: |
|
||||||
|
Loading…
x
Reference in New Issue
Block a user