Fix hdiffpatch executables not being detected on Windows
Signed-off-by: tretrauit <tretrauit@gmail.com>
This commit is contained in:
parent
fd00e8b51d
commit
4b99162bce
2
setup.py
2
setup.py
@ -9,7 +9,7 @@ README = (HERE / "README.md").read_text()
|
|||||||
|
|
||||||
setup(
|
setup(
|
||||||
name='worthless',
|
name='worthless',
|
||||||
version='1.3.0',
|
version='1.3.1',
|
||||||
packages=['worthless', 'worthless.classes', 'worthless.classes.launcher', 'worthless.classes.installer'],
|
packages=['worthless', 'worthless.classes', 'worthless.classes.launcher', 'worthless.classes.installer'],
|
||||||
url='https://git.froggi.es/tretrauit/worthless-launcher',
|
url='https://git.froggi.es/tretrauit/worthless-launcher',
|
||||||
license='MIT License',
|
license='MIT License',
|
||||||
|
@ -95,7 +95,8 @@ class HDiffPatch:
|
|||||||
return None
|
return None
|
||||||
|
|
||||||
def get_hpatchz_executable(self):
|
def get_hpatchz_executable(self):
|
||||||
return self._get_hdiffpatch_exec("hpatchz")
|
hpatchz_name = "hpatchz" + (".exe" if platform.system() == "Windows" else "")
|
||||||
|
return self._get_hdiffpatch_exec(hpatchz_name)
|
||||||
|
|
||||||
async def patch_file(self, in_file, out_file, patch_file):
|
async def patch_file(self, in_file, out_file, patch_file):
|
||||||
hpatchz = self.get_hpatchz_executable()
|
hpatchz = self.get_hpatchz_executable()
|
||||||
@ -104,7 +105,8 @@ class HDiffPatch:
|
|||||||
return await asyncio.create_subprocess_exec(hpatchz, "-f", in_file, patch_file, out_file)
|
return await asyncio.create_subprocess_exec(hpatchz, "-f", in_file, patch_file, out_file)
|
||||||
|
|
||||||
def get_hdiffz_executable(self):
|
def get_hdiffz_executable(self):
|
||||||
return self._get_hdiffpatch_exec("hdiffz")
|
hdiffz_name = "hdiffz" + (".exe" if platform.system() == "Windows" else "")
|
||||||
|
return self._get_hdiffpatch_exec(hdiffz_name)
|
||||||
|
|
||||||
async def _get_latest_release_info(self):
|
async def _get_latest_release_info(self):
|
||||||
async with aiohttp.ClientSession() as session:
|
async with aiohttp.ClientSession() as session:
|
||||||
|
Loading…
Reference in New Issue
Block a user