-
-
Notifications
You must be signed in to change notification settings - Fork 4
/
plgxcreate.cmd
40 lines (30 loc) · 826 Bytes
/
plgxcreate.cmd
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
@echo off
set plgxnet=%1
set plgxkp=%2
set plgxos=%3
cls
cd %~dp0
for %%* in (.) do set CurrDirName=%%~nx*
echo Processing %CurrDirName%
echo Deleting existing PlgX folder
rmdir /s /q plgx
echo Creating PlgX folder
mkdir plgx
echo Copying files
xcopy src plgx /s /e /exclude:plgxexclude.txt > nul
echo Compiling PlgX
cd..
cd _KeePass_Release
KeePass.exe --plgx-create "%~dp0plgx" -plgx-prereq-net:%plgxnet% -plgx-prereq-kp:%plgxkp% -plgx-prereq-os:%plgxos%
cd ..
cd %CurrDirName%
echo Copying PlgX to KeePass plugin folder
copy plgx.plgx "..\_KeePass_Release\Plugins\%CurrDirName%.plgx"
echo Releasing PlgX
move /y plgx.plgx "..\_Releases\%CurrDirName%.plgx"
echo Cleaning up
rmdir /s /q plgx
echo Compiled with following minimum requirements:
echo .NET = %plgxnet%
echo KeePass = %plgxkp%
echo OS = %plgxos%