diff --git a/.gitignore b/.gitignore index af0d2a31d6f33..c9e8e3308ffbd 100644 --- a/.gitignore +++ b/.gitignore @@ -40,6 +40,7 @@ coverage.xml !/tools/run_python_compiler.ps1 /tools/pylauncher/*.obj +/tools/pylauncher/*.res # Shell scripts (created by ./tools/maint/create_entry_points.py) em++ diff --git a/tools/pylauncher/build.bat b/tools/pylauncher/build.bat index e204c642c7a33..fd8b5dc8b0df0 100644 --- a/tools/pylauncher/build.bat +++ b/tools/pylauncher/build.bat @@ -19,4 +19,5 @@ if /i "%~1"=="arm64" ( set MACHINE=ARM64 ) -cl pylauncher.c /Fe:%OUT% /O1 /GS- /link /NODEFAULTLIB /ENTRY:launcher_main /SUBSYSTEM:CONSOLE /MACHINE:%MACHINE% /Brepro ucrt.lib kernel32.lib +rc /nologo /fo pylauncher.res pylauncher.rc +cl pylauncher.c pylauncher.res /Fe:%OUT% /O1 /GS- /link /NODEFAULTLIB /ENTRY:launcher_main /SUBSYSTEM:CONSOLE /MACHINE:%MACHINE% /Brepro ucrt.lib kernel32.lib diff --git a/tools/pylauncher/pylauncher-arm64.exe b/tools/pylauncher/pylauncher-arm64.exe index 88f4b2b87dafd..cdac7caa65afd 100644 Binary files a/tools/pylauncher/pylauncher-arm64.exe and b/tools/pylauncher/pylauncher-arm64.exe differ diff --git a/tools/pylauncher/pylauncher.exe b/tools/pylauncher/pylauncher.exe index 616cd5f44a34f..218fd1fedbb2a 100644 Binary files a/tools/pylauncher/pylauncher.exe and b/tools/pylauncher/pylauncher.exe differ diff --git a/tools/pylauncher/pylauncher.rc b/tools/pylauncher/pylauncher.rc new file mode 100644 index 0000000000000..ef6d25441a4e0 --- /dev/null +++ b/tools/pylauncher/pylauncher.rc @@ -0,0 +1,40 @@ +#include + +#define VER_FILEVERSION 1,0,0,0 +#define VER_FILEVERSION_STR "1.0.0.0" + +#define VER_PRODUCTVERSION 1,0,0,0 +#define VER_PRODUCTVERSION_STR "1.0.0.0" + +1 VERSIONINFO +FILEVERSION VER_FILEVERSION +PRODUCTVERSION VER_PRODUCTVERSION +FILEFLAGSMASK VS_FFI_FILEFLAGSMASK +#ifdef _DEBUG +FILEFLAGS VS_FF_DEBUG +#else +FILEFLAGS 0x0L +#endif +FILEOS VOS_NT_WINDOWS32 +FILETYPE VFT_APP +FILESUBTYPE VFT2_UNKNOWN +BEGIN + BLOCK "StringFileInfo" + BEGIN + BLOCK "040904b0" + BEGIN + VALUE "CompanyName", "The Emscripten Authors" + VALUE "FileDescription", "Emscripten Python Launcher" + VALUE "FileVersion", VER_FILEVERSION_STR + VALUE "InternalName", "pylauncher" + VALUE "LegalCopyright", "Copyright (c) The Emscripten Authors" + VALUE "OriginalFilename", "pylauncher.exe" + VALUE "ProductName", "Emscripten" + VALUE "ProductVersion", VER_PRODUCTVERSION_STR + END + END + BLOCK "VarFileInfo" + BEGIN + VALUE "Translation", 0x0409, 1200 + END +END