2009-12-17 23:33:39 +00:00
|
|
|
echo off
|
|
|
|
rem this file is part of installer for Notepad++
|
|
|
|
rem Copyright (C)2006 Don HO <don.h@free.fr>
|
|
|
|
rem
|
|
|
|
rem This program is free software; you can redistribute it and/or
|
|
|
|
rem modify it under the terms of the GNU General Public License
|
|
|
|
rem as published by the Free Software Foundation; either
|
|
|
|
rem version 2 of the License, or (at your option) any later version.
|
|
|
|
rem
|
|
|
|
rem This program is distributed in the hope that it will be useful,
|
|
|
|
rem but WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
|
|
rem MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
|
|
|
rem GNU General Public License for more details.
|
|
|
|
rem
|
|
|
|
rem You should have received a copy of the GNU General Public License
|
|
|
|
rem along with this program; if not, write to the Free Software
|
|
|
|
rem Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
|
2009-04-27 23:17:51 +00:00
|
|
|
|
2009-12-17 23:33:39 +00:00
|
|
|
echo on
|
2009-04-24 23:34:47 +00:00
|
|
|
|
2011-05-31 00:04:49 +00:00
|
|
|
rmdir /S /Q .\build
|
2011-05-30 18:12:31 +00:00
|
|
|
mkdir .\build
|
2009-07-14 19:45:06 +00:00
|
|
|
|
2010-12-18 13:49:39 +00:00
|
|
|
rem Notepad++ minimalist package
|
2011-05-31 00:04:49 +00:00
|
|
|
rmdir /S /Q .\minimalist
|
2011-05-30 18:12:31 +00:00
|
|
|
mkdir .\minimalist
|
|
|
|
|
2010-12-18 13:49:39 +00:00
|
|
|
copy /Y ..\bin\license.txt .\minimalist\
|
|
|
|
If ErrorLevel 1 PAUSE
|
|
|
|
copy /Y ..\bin\readme.txt .\minimalist\
|
|
|
|
If ErrorLevel 1 PAUSE
|
|
|
|
copy /Y ..\bin\change.log .\minimalist\
|
|
|
|
If ErrorLevel 1 PAUSE
|
|
|
|
copy /Y ..\src\config.model.xml .\minimalist\
|
|
|
|
If ErrorLevel 1 PAUSE
|
|
|
|
copy /Y ..\src\langs.model.xml .\minimalist\
|
|
|
|
If ErrorLevel 1 PAUSE
|
|
|
|
copy /Y ..\src\stylers.model.xml .\minimalist\
|
|
|
|
If ErrorLevel 1 PAUSE
|
|
|
|
copy /Y ..\src\contextMenu.xml .\minimalist\
|
|
|
|
If ErrorLevel 1 PAUSE
|
|
|
|
copy /Y ..\src\shortcuts.xml .\minimalist\
|
|
|
|
If ErrorLevel 1 PAUSE
|
|
|
|
copy /Y ..\bin\doLocalConf.xml .\minimalist\
|
|
|
|
If ErrorLevel 1 PAUSE
|
|
|
|
copy /Y ..\bin\"notepad++.exe" .\minimalist\
|
|
|
|
If ErrorLevel 1 PAUSE
|
|
|
|
copy /Y ..\bin\SciLexer.dll .\minimalist\
|
|
|
|
If ErrorLevel 1 PAUSE
|
|
|
|
|
|
|
|
|
|
|
|
rem Notepad++ Unicode package
|
2011-05-31 00:04:49 +00:00
|
|
|
rmdir /S /Q .\zipped.package.release
|
2011-05-30 18:12:31 +00:00
|
|
|
|
|
|
|
mkdir .\zipped.package.release
|
2013-05-05 18:12:01 +00:00
|
|
|
mkdir .\zipped.package.release\updater
|
|
|
|
mkdir .\zipped.package.release\localization
|
|
|
|
mkdir .\zipped.package.release\themes
|
|
|
|
mkdir .\zipped.package.release\user.manual
|
|
|
|
mkdir .\zipped.package.release\plugins
|
|
|
|
mkdir .\zipped.package.release\plugins\APIs
|
|
|
|
mkdir .\zipped.package.release\plugins\Config
|
|
|
|
mkdir .\zipped.package.release\plugins\Config\Hunspell
|
|
|
|
mkdir .\zipped.package.release\plugins\doc
|
2012-04-09 23:39:02 +00:00
|
|
|
|
2011-05-30 18:12:31 +00:00
|
|
|
|
2013-05-05 18:12:01 +00:00
|
|
|
copy /Y ..\bin\license.txt .\zipped.package.release\
|
2009-12-17 23:33:39 +00:00
|
|
|
If ErrorLevel 1 PAUSE
|
2013-05-05 18:12:01 +00:00
|
|
|
copy /Y ..\bin\readme.txt .\zipped.package.release\
|
2009-12-17 23:33:39 +00:00
|
|
|
If ErrorLevel 1 PAUSE
|
2013-05-05 18:12:01 +00:00
|
|
|
copy /Y ..\bin\change.log .\zipped.package.release\
|
2009-12-17 23:33:39 +00:00
|
|
|
If ErrorLevel 1 PAUSE
|
2013-05-05 18:12:01 +00:00
|
|
|
copy /Y ..\src\config.model.xml .\zipped.package.release\
|
2009-12-17 23:33:39 +00:00
|
|
|
If ErrorLevel 1 PAUSE
|
2013-05-05 18:12:01 +00:00
|
|
|
copy /Y ..\src\langs.model.xml .\zipped.package.release\
|
2009-12-17 23:33:39 +00:00
|
|
|
If ErrorLevel 1 PAUSE
|
2013-05-05 18:12:01 +00:00
|
|
|
copy /Y ..\src\stylers.model.xml .\zipped.package.release\
|
2009-12-17 23:33:39 +00:00
|
|
|
If ErrorLevel 1 PAUSE
|
2013-05-05 18:12:01 +00:00
|
|
|
copy /Y ..\src\contextMenu.xml .\zipped.package.release\
|
2009-12-17 23:33:39 +00:00
|
|
|
If ErrorLevel 1 PAUSE
|
2013-05-05 18:12:01 +00:00
|
|
|
copy /Y ..\src\shortcuts.xml .\zipped.package.release\
|
2009-12-17 23:33:39 +00:00
|
|
|
If ErrorLevel 1 PAUSE
|
2013-06-29 21:18:45 +00:00
|
|
|
copy /Y ..\src\functionList.xml .\zipped.package.release\
|
|
|
|
If ErrorLevel 1 PAUSE
|
2013-05-05 18:12:01 +00:00
|
|
|
copy /Y ..\bin\doLocalConf.xml .\zipped.package.release\
|
2009-12-17 23:33:39 +00:00
|
|
|
If ErrorLevel 1 PAUSE
|
2013-05-05 18:12:01 +00:00
|
|
|
copy /Y ..\bin\"notepad++.exe" .\zipped.package.release\
|
2009-12-17 23:33:39 +00:00
|
|
|
If ErrorLevel 1 PAUSE
|
2013-05-05 18:12:01 +00:00
|
|
|
copy /Y ..\bin\SciLexer.dll .\zipped.package.release\
|
2009-12-17 23:33:39 +00:00
|
|
|
If ErrorLevel 1 PAUSE
|
2011-05-28 18:15:02 +00:00
|
|
|
|
|
|
|
rem Plugins
|
2013-05-05 18:12:01 +00:00
|
|
|
copy /Y "..\bin\plugins\DSpellCheck.dll" .\zipped.package.release\plugins\
|
2009-12-17 23:33:39 +00:00
|
|
|
If ErrorLevel 1 PAUSE
|
2013-06-29 21:18:45 +00:00
|
|
|
copy /Y "..\bin\plugins\Config\Hunspell\dictionary.lst" .\zipped.package.release\plugins\Config\Hunspell\
|
2011-05-28 18:15:02 +00:00
|
|
|
If ErrorLevel 1 PAUSE
|
2013-05-05 18:12:01 +00:00
|
|
|
copy /Y "..\bin\plugins\Config\Hunspell\en_GB.dic" .\zipped.package.release\plugins\Config\Hunspell\
|
2011-05-28 18:15:02 +00:00
|
|
|
If ErrorLevel 1 PAUSE
|
2013-05-05 18:12:01 +00:00
|
|
|
copy /Y "..\bin\plugins\Config\Hunspell\en_GB.aff" .\zipped.package.release\plugins\Config\Hunspell\
|
|
|
|
If ErrorLevel 1 PAUSE
|
|
|
|
copy /Y "..\bin\plugins\Config\Hunspell\README_en_GB.txt" .\zipped.package.release\plugins\Config\Hunspell\
|
|
|
|
If ErrorLevel 1 PAUSE
|
2013-06-29 21:18:45 +00:00
|
|
|
copy /Y "..\bin\plugins\Config\Hunspell\en_US.dic" .\zipped.package.release\plugins\Config\Hunspell\
|
|
|
|
If ErrorLevel 1 PAUSE
|
|
|
|
copy /Y "..\bin\plugins\Config\Hunspell\en_US.aff" .\zipped.package.release\plugins\Config\Hunspell\
|
|
|
|
If ErrorLevel 1 PAUSE
|
|
|
|
copy /Y "..\bin\plugins\Config\Hunspell\README_en_US.txt" .\zipped.package.release\plugins\Config\Hunspell\
|
|
|
|
If ErrorLevel 1 PAUSE
|
2013-05-05 18:12:01 +00:00
|
|
|
|
|
|
|
copy /Y "..\bin\plugins\NppFTP.dll" .\zipped.package.release\plugins\
|
|
|
|
If ErrorLevel 1 PAUSE
|
|
|
|
copy /Y "..\bin\plugins\NppExport.dll" .\zipped.package.release\plugins\
|
|
|
|
If ErrorLevel 1 PAUSE
|
2013-12-23 11:44:14 +00:00
|
|
|
copy /Y "..\bin\plugins\mimeTools.dll" .\zipped.package.release\plugins\
|
|
|
|
If ErrorLevel 1 PAUSE
|
2013-05-05 18:12:01 +00:00
|
|
|
copy /Y "..\bin\plugins\NppConverter.dll" .\zipped.package.release\plugins\
|
2011-06-04 15:16:23 +00:00
|
|
|
If ErrorLevel 1 PAUSE
|
2011-05-28 18:15:02 +00:00
|
|
|
|
|
|
|
rem plugins manager and its updater
|
2013-05-05 18:12:01 +00:00
|
|
|
copy /Y "..\bin\plugins\PluginManager.dll" .\zipped.package.release\plugins\
|
2009-12-17 23:33:39 +00:00
|
|
|
If ErrorLevel 1 PAUSE
|
2013-05-05 18:12:01 +00:00
|
|
|
copy /Y "..\bin\updater\gpup.exe" .\zipped.package.release\updater\
|
2009-12-17 23:33:39 +00:00
|
|
|
If ErrorLevel 1 PAUSE
|
2009-04-24 23:34:47 +00:00
|
|
|
|
2011-05-29 17:01:55 +00:00
|
|
|
|
2011-05-28 18:15:02 +00:00
|
|
|
rem localizations
|
2013-05-05 18:12:01 +00:00
|
|
|
copy /Y ".\nativeLang\*.xml" .\zipped.package.release\localization\
|
2009-12-17 23:33:39 +00:00
|
|
|
If ErrorLevel 1 PAUSE
|
2011-05-28 18:15:02 +00:00
|
|
|
|
|
|
|
rem files API
|
2013-05-05 18:12:01 +00:00
|
|
|
copy /Y ".\APIs\*.xml" .\zipped.package.release\plugins\APIs\
|
2009-12-17 23:33:39 +00:00
|
|
|
If ErrorLevel 1 PAUSE
|
2011-05-28 18:15:02 +00:00
|
|
|
|
|
|
|
rem theme
|
2013-05-05 18:12:01 +00:00
|
|
|
copy /Y ".\themes\*.xml" .\zipped.package.release\themes\
|
2009-12-17 23:33:39 +00:00
|
|
|
If ErrorLevel 1 PAUSE
|
2009-04-24 23:34:47 +00:00
|
|
|
|
2011-05-28 18:15:02 +00:00
|
|
|
|
|
|
|
|
|
|
|
|
2010-12-18 13:49:39 +00:00
|
|
|
"C:\Program Files\7-Zip\7z.exe" a -r .\build\npp.bin.minimalist.7z .\minimalist\*
|
|
|
|
If ErrorLevel 1 PAUSE
|
2009-12-17 23:33:39 +00:00
|
|
|
"C:\Program Files\7-Zip\7z.exe" a -tzip -r .\build\npp.bin.zip .\zipped.package.release\*
|
|
|
|
If ErrorLevel 1 PAUSE
|
|
|
|
"C:\Program Files\7-Zip\7z.exe" a -r .\build\npp.bin.7z .\zipped.package.release\*
|
|
|
|
If ErrorLevel 1 PAUSE
|
2012-11-07 02:56:23 +00:00
|
|
|
"C:\Program Files\NSIS\Unicode\makensis.exe" nppSetup.nsi
|
2009-04-24 23:34:47 +00:00
|
|
|
|
2009-12-19 12:42:57 +00:00
|
|
|
|
|
|
|
@echo off
|
|
|
|
|
|
|
|
setlocal enableDelayedExpansion
|
|
|
|
|
|
|
|
cd .\build\
|
|
|
|
|
|
|
|
for %%a in (npp.*.Installer.exe) do (
|
|
|
|
rem echo a = %%a
|
|
|
|
set nppInstallerVar=%%a
|
|
|
|
set zipvar=!nppInstallerVar:Installer.exe=bin.zip!
|
|
|
|
set 7zvar=!nppInstallerVar:Installer.exe=bin.7z!
|
2010-12-18 13:49:39 +00:00
|
|
|
set 7zvarMin=!nppInstallerVar:Installer.exe=bin.minimalist.7z!
|
2010-07-05 23:17:02 +00:00
|
|
|
rem set md5var=!nppInstallerVar:Installer.exe=release.md5!
|
2009-12-19 12:42:57 +00:00
|
|
|
)
|
|
|
|
ren npp.bin.zip !zipvar!
|
|
|
|
ren npp.bin.7z !7zvar!
|
2010-12-18 13:49:39 +00:00
|
|
|
ren npp.bin.minimalist.7z !7zvarMin!
|
2010-07-05 23:17:02 +00:00
|
|
|
rem ..\externalTools\md5.exe -o!md5var! !nppInstallerVar! !zipvar! !7zvar!
|
2009-12-19 12:42:57 +00:00
|
|
|
|
|
|
|
cd ..
|
|
|
|
|
|
|
|
endlocal
|