Make the file installable & add notice of usage

This commit is contained in:
Don Ho 2025-02-22 20:17:38 +01:00
parent 27f0de3f5b
commit 5406bcde6c
5 changed files with 42 additions and 6 deletions

View File

@ -26,7 +26,7 @@ BIN_DIRECTORY := ../bin
INSTALLER_DIRECTORY := ../installer
TARGET_BINARY := notepad++.exe
SRC_DATA := contextMenu.xml langs.model.xml shortcuts.xml stylers.model.xml tabContextMenu_example.xml toolbarIcons.xml
SRC_DATA := contextMenu.xml langs.model.xml shortcuts.xml stylers.model.xml tabContextMenu_example.xml toolbarButtonsConf_example.xml toolbarIcons.xml
BIN_DATA := change.log doLocalConf.xml nppLogNulContentCorruptionIssue.xml readme.txt userDefineLangs/
INSTALLER_DATA := autoCompletion/ functionList/ localization/ themes/

View File

@ -75,6 +75,7 @@ Function copyCommonFiles
SetOutPath "$UPDATE_PATH\"
File "..\bin\contextMenu.xml"
File "..\src\tabContextMenu_example.xml"
File "..\src\toolbarButtonsConf_example.xml"
File "..\src\toolbarIcons.xml"
SetOverwrite on

View File

@ -243,6 +243,7 @@ Section Uninstall
Delete "$INSTDIR\langs.model.xml"
Delete "$INSTDIR\stylers.model.xml"
Delete "$INSTDIR\tabContextMenu_example.xml"
Delete "$INSTDIR\toolbarButtonsConf_example.xml"
Delete "$INSTDIR\stylers_remove.xml"
Delete "$INSTDIR\localization\english.xml"
Delete "$INSTDIR\LINEDRAW.TTF"
@ -277,6 +278,7 @@ Section Uninstall
Delete "$APPDATA\${APPNAME}\insertExt.ini"
Delete "$APPDATA\${APPNAME}\nppLogNulContentCorruptionIssue.log"
Delete "$APPDATA\${APPNAME}\tabContextMenu_example.xml"
Delete "$APPDATA\${APPNAME}\toolbarButtonsConf_example.xml"
Delete "$APPDATA\${APPNAME}\toolbarIcons.xml"
Delete "$APPDATA\${APPNAME}\userDefineLangs\userDefinedLang-markdown.default.modern.xml"
Delete "$APPDATA\${APPNAME}\userDefineLangs\markdown._preinstalled.udl.xml"

View File

@ -111,6 +111,8 @@ copy /Y ..\src\contextMenu.xml .\minimalist\
If ErrorLevel 1 goto End
copy /Y ..\src\tabContextMenu_example.xml .\minimalist\
If ErrorLevel 1 goto End
copy /Y ..\src\toolbarButtonsConf_example.xml .\minimalist\
If ErrorLevel 1 goto End
copy /Y ..\src\shortcuts.xml .\minimalist\
If ErrorLevel 1 goto End
copy /Y ..\bin\doLocalConf.xml .\minimalist\
@ -146,6 +148,8 @@ copy /Y ..\src\contextMenu.xml .\minimalist64\
If ErrorLevel 1 goto End
copy /Y ..\src\tabContextMenu_example.xml .\minimalist64\
If ErrorLevel 1 goto End
copy /Y ..\src\toolbarButtonsConf_example.xml .\minimalist64\
If ErrorLevel 1 goto End
copy /Y ..\src\shortcuts.xml .\minimalist64\
If ErrorLevel 1 goto End
copy /Y ..\bin\doLocalConf.xml .\minimalist64\
@ -181,6 +185,8 @@ copy /Y ..\src\contextMenu.xml .\minimalistArm64\
If ErrorLevel 1 goto End
copy /Y ..\src\tabContextMenu_example.xml .\minimalistArm64\
If ErrorLevel 1 goto End
copy /Y ..\src\toolbarButtonsConf_example.xml .\minimalistArm64\
If ErrorLevel 1 goto End
copy /Y ..\src\shortcuts.xml .\minimalistArm64\
If ErrorLevel 1 goto End
copy /Y ..\bin\doLocalConf.xml .\minimalistArm64\
@ -267,6 +273,8 @@ copy /Y ..\src\contextMenu.xml .\zipped.package.release\
If ErrorLevel 1 goto End
copy /Y ..\src\tabContextMenu_example.xml .\zipped.package.release\
If ErrorLevel 1 goto End
copy /Y ..\src\toolbarButtonsConf_example.xml .\zipped.package.release\
If ErrorLevel 1 goto End
copy /Y ..\src\shortcuts.xml .\zipped.package.release\
If ErrorLevel 1 goto End
copy /Y ..\bin\doLocalConf.xml .\zipped.package.release\
@ -295,6 +303,8 @@ copy /Y ..\src\contextMenu.xml .\zipped.package.release64\
If ErrorLevel 1 goto End
copy /Y ..\src\tabContextMenu_example.xml .\zipped.package.release64\
If ErrorLevel 1 goto End
copy /Y ..\src\toolbarButtonsConf_example.xml .\zipped.package.release64\
If ErrorLevel 1 goto End
copy /Y ..\src\shortcuts.xml .\zipped.package.release64\
If ErrorLevel 1 goto End
copy /Y ..\bin\doLocalConf.xml .\zipped.package.release64\
@ -322,6 +332,8 @@ copy /Y ..\src\contextMenu.xml .\zipped.package.releaseArm64\
If ErrorLevel 1 goto End
copy /Y ..\src\tabContextMenu_example.xml .\zipped.package.releaseArm64\
If ErrorLevel 1 goto End
copy /Y ..\src\toolbarButtonsConf_example.xml .\zipped.package.releaseArm64\
If ErrorLevel 1 goto End
copy /Y ..\src\shortcuts.xml .\zipped.package.releaseArm64\
If ErrorLevel 1 goto End
copy /Y ..\bin\doLocalConf.xml .\zipped.package.releaseArm64\

View File

@ -1,6 +1,20 @@
<?xml version="1.0" encoding="UTF-8" ?>
<NotepadPlus>
<ToolbarButtons>
<!--
This file makes your toolbar buttons hideable.
Usage:
Move and rename the "toolbarButtonsConf_example.xml" to "%APPDATA%\Notepad++\toolbarButtonsConf.xml"
(or beside "notepad++.exe" if you're using the portable package).
Modify the attributes "hideAll" or "hide" of the items with "yes" or "no" values.
Save the file and relaunch Notepad++ to hide/show the buttons you selected.
Notice:
1. The values of the attributes "index" and "id" shouldn't be modified because they are used for synchronizing with internal data to maintain the coherence of this file.
2. The attribute "name" is informative only, so the values of "name" can be modified for the user's convenience.
3. The "yes" value of the "hideAll" attribute will override all values of the "hide" attribute.
-->
<Standard hideAll="no">
<Button hide="no" index="0" id="41001" name="New" />
<Button hide="no" index="1" id="41002" name="Open..." />
@ -44,12 +58,19 @@
<Button hide="no" index="39" id="42032" name="Run a Macro Multiple Times..." />
<Button hide="no" index="40" id="42025" name="Save Current Recorded Macro..." />
</Standard>
<!--
In this section we can hide toolbar buttons for installed plugins based on their order in the toolbar (including separators).
"Name" attribute has no effect, use it as a reminder.
When installing / uninstalling plugins, add/remove button entries as necessary so your button settings correspond to the changed toolbar button order.
-->
<Plugin hideAll="no">
<Button hide="no" name="SEPARATOR" /> <!-- order="1" -->
<Button hide="no" name="Plugin button 1" /> <!-- order="2" -->
<Button hide="no" name="Plugin button 2" /> <!-- order="3" -->
<Button hide="no" name="Plugin button 3" /> <!-- order="4" -->
<Button hide="no" name="SEPARATOR" /> <!-- The 1st button -->
<Button hide="no" name="Plugin button 1" /> <!-- The 2nd button -->
<Button hide="no" name="Plugin button 2" /> <!-- The 3rd button -->
<Button hide="no" name="Plugin button 3" /> <!-- The 4th button -->
<!--Button hide="no" name="Plugin button 4" /--> <!-- uncomment "Button" tags if need -->
<!--Button hide="no" name="Plugin button 5" /--> <!-- uncomment "Button" tags if need -->
<!-- Add more "Button" tags here... -->
</Plugin>
</ToolbarButtons>
</NotepadPlus>