diff options
Diffstat (limited to 'desktop/scripts/build-windows.py')
-rw-r--r-- | desktop/scripts/build-windows.py | 19 |
1 files changed, 11 insertions, 8 deletions
diff --git a/desktop/scripts/build-windows.py b/desktop/scripts/build-windows.py index ca4d8ede..9579b81d 100644 --- a/desktop/scripts/build-windows.py +++ b/desktop/scripts/build-windows.py @@ -40,17 +40,17 @@ def sign(filename): click.echo(f"> Signing {filename}") run( [ - shutil.which("signtool"), + shutil.which("signtool.exe"), "sign", "/v", "/d", "OnionShare", - "/sha1", - "1a0345732140749bdaa03efe8591b2c2a036884c", + "/n", + "Science and Design Inc.", "/fd", - "SHA256", + "sha256", "/td", - "SHA256", + "sha256", "/tr", "http://timestamp.digicert.com", filename, @@ -117,6 +117,7 @@ def wix_build_dir_xml(root, data): "Component", Id="ApplicationShortcuts", Guid="539e7de8-a124-4c09-aa55-0dd516aad7bc", + Win64="yes", ) ET.SubElement( component_el, @@ -152,6 +153,7 @@ def wix_build_components_xml(root, data): "Component", Id=subdata["component_id"], Guid=subdata["component_guid"], + Win64="yes", ) for filename in subdata["files"]: file_el = ET.SubElement( @@ -180,7 +182,7 @@ def msi_package(build_path, msi_path, product_update_code): "name": "SourceDir", "dirs": [ { - "id": "ProgramFilesFolder", + "id": "ProgramFiles64Folder", "dirs": [], }, { @@ -218,10 +220,11 @@ def msi_package(build_path, msi_path, product_update_code): Keywords="Installer", Description="OnionShare $(var.ProductVersion) Installer", Manufacturer="Micah Lee, et al.", - InstallerVersion="100", + InstallerVersion="200", Languages="1033", Compressed="yes", SummaryCodepage="1252", + Platform="x64", ) ET.SubElement(product_el, "Media", Id="1", Cabinet="product.cab", EmbedCab="yes") ET.SubElement( @@ -321,7 +324,7 @@ def main(): @main.command() def cleanup_build(): """Delete unused PySide6 stuff to save space""" - build_path = os.path.join(desktop_dir, "build", "exe.win-amd64-3.10") + build_path = os.path.join(desktop_dir, "build", "exe.win-amd64-3.11") before_size = get_size(build_path) for dirname in ["qml"]: |