From b83938314f8f2d76ac181f308237adb21faa1ead Mon Sep 17 00:00:00 2001 From: Kovid Goyal Date: Thu, 2 Jan 2025 17:00:39 +0530 Subject: [PATCH] Windows build: Also sign the portable launcher exes --- bypy/windows/__main__.py | 3 +++ 1 file changed, 3 insertions(+) diff --git a/bypy/windows/__main__.py b/bypy/windows/__main__.py index 2a4c91dc0a..14a025d659 100644 --- a/bypy/windows/__main__.py +++ b/bypy/windows/__main__.py @@ -330,6 +330,7 @@ def build_portable(env): src = j(root, 'portable.cpp') obj = j(env.obj_dir, b(src) + '.obj') cflags = '/c /EHsc /MT /W3 /Ox /nologo /D_UNICODE /DUNICODE'.split() + launchers = [] for exe_name in ('calibre.exe', 'ebook-viewer.exe', 'ebook-edit.exe'): exe = j(base, exe_name.replace('.exe', '-portable.exe')) @@ -350,6 +351,8 @@ def build_portable(env): '/OUT:' + exe, embed_resources(env, exe, desc=desc, product_description=desc), obj, 'User32.lib', 'Shell32.lib'] run(*cmd) + launchers.append(exe) + sign_files(env, launchers) printf('Creating portable installer') shutil.copytree(env.base, j(base, 'Calibre'))