Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 5f62112

Browse files
committed
Issues #25112: py.exe launcher is missing icons
1 parent 452498a commit 5f62112

2 files changed

Lines changed: 29 additions & 28 deletions

File tree

Misc/NEWS

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -153,6 +153,8 @@ Build
153153
Windows
154154
-------
155155

156+
- Issues #25112: py.exe launcher is missing icons
157+
156158
- Issue #25102: Windows installer does not precompile for -O or -OO.
157159

158160
- Issue #25081: Makes Back button in installer go back to upgrade page when

PC/pylauncher.rc

Lines changed: 27 additions & 28 deletions
Original file line numberDiff line numberDiff line change
@@ -1,51 +1,50 @@
11
#include <windows.h>
22

3-
#define MS_WINDOWS
4-
#include "..\Include\modsupport.h"
5-
#include "..\Include\patchlevel.h"
6-
#ifdef _DEBUG
7-
# include "pythonnt_rc_d.h"
8-
#else
9-
# include "pythonnt_rc.h"
10-
#endif
3+
#include "python_ver_rc.h"
4+
5+
// Include the manifest file that indicates we support all
6+
// current versions of Windows.
7+
#include <winuser.h>
8+
1 RT_MANIFEST "python.manifest"
119

12-
#define PYTHON_VERSION PY_VERSION "\0"
13-
#define PYVERSION64 PY_MAJOR_VERSION, PY_MINOR_VERSION, FIELD3, PYTHON_API_VERSION
10+
1 ICON DISCARDABLE "launcher.ico"
11+
2 ICON DISCARDABLE "py.ico"
12+
3 ICON DISCARDABLE "pyc.ico"
13+
14+
/////////////////////////////////////////////////////////////////////////////
15+
//
16+
// Version
17+
//
1418

1519
VS_VERSION_INFO VERSIONINFO
1620
FILEVERSION PYVERSION64
1721
PRODUCTVERSION PYVERSION64
18-
FILEFLAGSMASK 0x17L
22+
FILEFLAGSMASK 0x3fL
1923
#ifdef _DEBUG
20-
FILEFLAGS 0x1L
24+
FILEFLAGS VS_FF_DEBUG
2125
#else
2226
FILEFLAGS 0x0L
2327
#endif
24-
FILEOS 0x4L
25-
FILETYPE 0x1L
28+
FILEOS VOS__WINDOWS32
29+
FILETYPE VFT_APP
2630
FILESUBTYPE 0x0L
2731
BEGIN
2832
BLOCK "StringFileInfo"
2933
BEGIN
30-
BLOCK "080904b0"
34+
BLOCK "000004b0"
3135
BEGIN
32-
VALUE "Comments", "Python Launcher for Windows"
33-
VALUE "CompanyName", "Python Software Foundation"
34-
VALUE "FileDescription", "Python Launcher for Windows (Console)"
36+
VALUE "CompanyName", PYTHON_COMPANY "\0"
37+
VALUE "FileDescription", "Python\0"
3538
VALUE "FileVersion", PYTHON_VERSION
36-
VALUE "InternalName", "py"
37-
VALUE "LegalCopyright", "Copyright (C) 2011-2014 Python Software Foundation"
38-
VALUE "OriginalFilename", "py"
39-
VALUE "ProductName", "Python Launcher for Windows"
39+
VALUE "InternalName", "Python Launcher\0"
40+
VALUE "LegalCopyright", PYTHON_COPYRIGHT "\0"
41+
VALUE "OriginalFilename", "py" PYTHON_DEBUG_EXT ".exe\0"
42+
VALUE "ProductName", "Python\0"
4043
VALUE "ProductVersion", PYTHON_VERSION
4144
END
4245
END
4346
BLOCK "VarFileInfo"
4447
BEGIN
45-
VALUE "Translation", 0x809, 1200
48+
VALUE "Translation", 0x0, 1200
4649
END
47-
END
48-
49-
IDI_ICON1 ICON "launcher.ico"
50-
51-
50+
END

0 commit comments

Comments
 (0)