diff --git a/windows_tools/signtool/__init__.py b/windows_tools/signtool/__init__.py index 4bee7dd..4a790f7 100644 --- a/windows_tools/signtool/__init__.py +++ b/windows_tools/signtool/__init__.py @@ -15,18 +15,18 @@ __intname__ = "windows_tools.signtool" __author__ = "Orsiris de Jong" -__copyright__ = "Copyright (C) 2020-2023 Orsiris de Jong" +__copyright__ = "Copyright (C) 2020-2024 Orsiris de Jong" __description__ = "Windows authenticode signature tool" __licence__ = "BSD 3 Clause" -__version__ = "0.4.0" -__build__ = "2023112601" +__version__ = "0.4.1" +__build__ = "2024011001" import os from typing import Optional, Union from command_runner import command_runner from ofunctions.file_utils import get_paths_recursive -from ofunctions.network import test_http_internet +from ofunctions.network import check_http_internet from windows_tools.bitness import is_64bit, is_64bit_executable # Basic PATHS where signtool.exe should reside when Windows SDK is installed @@ -128,7 +128,7 @@ def get_timestamp_server(self): "http://timestamp.globalsign.com/scripts/timstamp.dll", ] for server in ts_servers: - if test_http_internet([server]): + if check_http_internet([server]): self.authority_timestamp_url = server return True raise ValueError("No online timeserver found") @@ -138,7 +138,7 @@ def sign(self, executable, bitness: Union[None, int, str] = None): possible_bitness = is_64bit_executable(executable) if possible_bitness is not None: bitness = 64 if possible_bitness else 32 - elif bitness in [32, "32", "x86"]: + if bitness in [32, "32", "x86"]: signtool = os.environ.get("SIGNTOOL_X32", self.detect_signtool("x86")) elif bitness in [64, "64", "x64"]: signtool = os.environ.get("SIGNTOOL_X64", self.detect_signtool("x64")) diff --git a/windows_tools/signtool/requirements.txt b/windows_tools/signtool/requirements.txt index f35b2a1..6c0444f 100644 --- a/windows_tools/signtool/requirements.txt +++ b/windows_tools/signtool/requirements.txt @@ -3,4 +3,4 @@ ofunctions.network>=1.3.2 command_runner>=1.2.1 windows_tools.bitness>=0.2.0 ofunctions.file_utils -ofunctions.network \ No newline at end of file +ofunctions.network>=1.6.0 \ No newline at end of file