mirror of
https://github.com/onionshare/onionshare.git
synced 2025-05-02 14:36:15 -04:00
In CI, download Tor from for windows Tor Expert Bundle, and build meek, obfs4proxy, and snowflake ourselves
This commit is contained in:
parent
0ba7f11748
commit
31f4cd4bb7
2 changed files with 96 additions and 28 deletions
|
@ -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()
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue