Skip to content

Commit 1a5d018

Browse files
GurliGebisdonho
authored andcommitted
Add resource file for versioning
Fix #16, close #22
1 parent 4f05154 commit 1a5d018

File tree

5 files changed

+121
-0
lines changed

5 files changed

+121
-0
lines changed

.gitattributes

+2
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
*.h text
2+
*.rc text

.gitignore

+1
Original file line numberDiff line numberDiff line change
@@ -5,3 +5,4 @@ Packaging/NppShell.msix
55
Debug
66
Release
77
*.user
8+
*.aps

NppShell.rc

+100
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,100 @@
1+
// Microsoft Visual C++ generated resource script.
2+
//
3+
#include "resource.h"
4+
5+
#define APSTUDIO_READONLY_SYMBOLS
6+
/////////////////////////////////////////////////////////////////////////////
7+
//
8+
// Generated from the TEXTINCLUDE 2 resource.
9+
//
10+
#include "winres.h"
11+
12+
/////////////////////////////////////////////////////////////////////////////
13+
#undef APSTUDIO_READONLY_SYMBOLS
14+
15+
/////////////////////////////////////////////////////////////////////////////
16+
// English (United States) resources
17+
18+
#if !defined(AFX_RESOURCE_DLL) || defined(AFX_TARG_ENU)
19+
LANGUAGE LANG_ENGLISH, SUBLANG_ENGLISH_US
20+
#pragma code_page(1252)
21+
22+
#ifdef APSTUDIO_INVOKED
23+
/////////////////////////////////////////////////////////////////////////////
24+
//
25+
// TEXTINCLUDE
26+
//
27+
28+
1 TEXTINCLUDE
29+
BEGIN
30+
"resource.h\0"
31+
END
32+
33+
2 TEXTINCLUDE
34+
BEGIN
35+
"#include ""winres.h""\r\n"
36+
"\0"
37+
END
38+
39+
3 TEXTINCLUDE
40+
BEGIN
41+
"\r\n"
42+
"\0"
43+
END
44+
45+
#endif // APSTUDIO_INVOKED
46+
47+
48+
/////////////////////////////////////////////////////////////////////////////
49+
//
50+
// Version
51+
//
52+
53+
VS_VERSION_INFO VERSIONINFO
54+
FILEVERSION 1,0,0,0
55+
PRODUCTVERSION 1,0,0,0
56+
FILEFLAGSMASK 0x3fL
57+
#ifdef _DEBUG
58+
FILEFLAGS 0x1L
59+
#else
60+
FILEFLAGS 0x0L
61+
#endif
62+
FILEOS 0x40004L
63+
FILETYPE 0x2L
64+
FILESUBTYPE 0x0L
65+
BEGIN
66+
BLOCK "StringFileInfo"
67+
BEGIN
68+
BLOCK "040904b0"
69+
BEGIN
70+
VALUE "CompanyName", "Bjarke I. Pedersen [email protected]"
71+
VALUE "FileDescription", "Notepad++ Context Menu"
72+
VALUE "FileVersion", "1.0.0.0"
73+
VALUE "InternalName", "NppShell.dll"
74+
VALUE "LegalCopyright", "Copyleft 2023 by Bjarke I. Pedersen"
75+
VALUE "OriginalFilename", "NppShell.dll"
76+
VALUE "ProductName", "Notepad++"
77+
VALUE "ProductVersion", "1.0.0.0"
78+
END
79+
END
80+
BLOCK "VarFileInfo"
81+
BEGIN
82+
VALUE "Translation", 0x409, 1200
83+
END
84+
END
85+
86+
#endif // English (United States) resources
87+
/////////////////////////////////////////////////////////////////////////////
88+
89+
90+
91+
#ifndef APSTUDIO_INVOKED
92+
/////////////////////////////////////////////////////////////////////////////
93+
//
94+
// Generated from the TEXTINCLUDE 3 resource.
95+
//
96+
97+
98+
/////////////////////////////////////////////////////////////////////////////
99+
#endif // not APSTUDIO_INVOKED
100+

NppShell.vcxproj

+4
Original file line numberDiff line numberDiff line change
@@ -271,6 +271,7 @@
271271
<ClInclude Include="PathHelper.h" />
272272
<ClInclude Include="Installer.h" />
273273
<ClInclude Include="pch.h" />
274+
<ClInclude Include="resource.h" />
274275
<ClInclude Include="SharedCounter.h" />
275276
<ClInclude Include="RegistryKey.h" />
276277
<ClInclude Include="SimpleFactory.h" />
@@ -299,6 +300,9 @@
299300
<None Include="packages.config" />
300301
<None Include="source.def" />
301302
</ItemGroup>
303+
<ItemGroup>
304+
<ResourceCompile Include="NppShell.rc" />
305+
</ItemGroup>
302306
<Import Project="$(VCTargetsPath)\Microsoft.Cpp.targets" />
303307
<ImportGroup Label="ExtensionTargets">
304308
<Import Project="packages\Microsoft.Windows.ImplementationLibrary.1.0.230202.1\build\native\Microsoft.Windows.ImplementationLibrary.targets" Condition="Exists('packages\Microsoft.Windows.ImplementationLibrary.1.0.230202.1\build\native\Microsoft.Windows.ImplementationLibrary.targets')" />

resource.h

+14
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
//{{NO_DEPENDENCIES}}
2+
// Microsoft Visual C++ generated include file.
3+
// Used by NppShell.rc
4+
5+
// Next default values for new objects
6+
//
7+
#ifdef APSTUDIO_INVOKED
8+
#ifndef APSTUDIO_READONLY_SYMBOLS
9+
#define _APS_NEXT_RESOURCE_VALUE 101
10+
#define _APS_NEXT_COMMAND_VALUE 40001
11+
#define _APS_NEXT_CONTROL_VALUE 1001
12+
#define _APS_NEXT_SYMED_VALUE 101
13+
#endif
14+
#endif

0 commit comments

Comments
 (0)