aboutsummaryrefslogtreecommitdiff
path: root/desktop/scripts
diff options
context:
space:
mode:
authorMicah Lee <micah@micahflee.com>2022-04-10 19:07:35 -0400
committerMicah Lee <micah@micahflee.com>2022-04-10 19:07:35 -0400
commite184ca5d0304c065d173eddcab73d9a66f18ec6e (patch)
tree67d4955c02ef5258a39f4cbb9c78a8e665dcedfe /desktop/scripts
parentde4dbb54a0e74390f41d5b96bec0e4949e2a36a6 (diff)
downloadonionshare-e184ca5d0304c065d173eddcab73d9a66f18ec6e.tar.gz
onionshare-e184ca5d0304c065d173eddcab73d9a66f18ec6e.zip
In CI, download Tor from for windows Tor Expert Bundle, and build meek, obfs4proxy, and snowflake ourselves
Diffstat (limited to 'desktop/scripts')
-rw-r--r--desktop/scripts/build-windows.py53
1 files changed, 35 insertions, 18 deletions
diff --git a/desktop/scripts/build-windows.py b/desktop/scripts/build-windows.py
index d1729a6f..a0cb3994 100644
--- a/desktop/scripts/build-windows.py
+++ b/desktop/scripts/build-windows.py
@@ -44,6 +44,7 @@ def run(cmd, cwd=None, error_ok=False):
def sign(filename):
+ click.echo(f"> Signing {filename}")
run(
[
shutil.which("signtool"),
@@ -580,25 +581,41 @@ def codesign(win32_path, win64_path):
return
for path in paths:
- bin_path = os.path.join(path, "onionshare.exe")
- click.echo(f"> Signing {bin_path}")
- sign(bin_path)
-
- bin_path = os.path.join(path, "onionshare-cli.exe")
- click.echo(f"> Signing {bin_path}")
- sign(bin_path)
-
- bin_path = os.path.join(
- path,
- "lib",
- "onionshare",
- "resources",
- "tor",
- "Tor",
- "meek-client.exe",
+ sign(os.path.join(path, "onionshare.exe"))
+ sign(os.path.join(path, "onionshare-cli.exe"))
+ sign(
+ os.path.join(
+ path,
+ "lib",
+ "onionshare",
+ "resources",
+ "tor",
+ "Tor",
+ "meek-client.exe",
+ )
+ )
+ sign(
+ os.path.join(
+ path,
+ "lib",
+ "onionshare",
+ "resources",
+ "tor",
+ "Tor",
+ "obfs4proxy.exe",
+ )
+ )
+ sign(
+ os.path.join(
+ path,
+ "lib",
+ "onionshare",
+ "resources",
+ "tor",
+ "Tor",
+ "snowflake-client.exe",
+ )
)
- click.echo(f"> Signing {bin_path}")
- sign(bin_path)
@main.command()