generated from zedseven/KeePass-Plugin-Boilerplate
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathbuild-plgx.bat
18 lines (18 loc) · 821 Bytes
/
build-plgx.bat
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
@ECHO OFF
REM Credit goes to https://github.com/KoenZomers/KeePassOneDriveSync for creating the base of this script
ECHO Creating KeePass plugin package...
SET PLUGIN_NAME=AppIdLinker
SET SourceFolder=AppIdLinker
SET KeePassFolder="C:\Program Files (x86)\KeePass Password Safe 2"
SET DotNetVersion=4.0
IF EXIST %~dp0%SourceFolder%\obj RD /s /q %~dp0%SourceFolder%\obj
IF EXIST %~dp0%SourceFolder%\bin RD /s /q %~dp0%SourceFolder%\bin
DEL %~dp0%PLUGIN_NAME%.plgx
%KeePassFolder%\KeePass.exe --plgx-create %~dp0%SourceFolder% --plgx-prereq-net:%DotNetVersion%
REN %~dp0%SourceFolder%.plgx %PLUGIN_NAME%.plgx
ECHO KeePass Plugin package has been created.
IF "%1" == "--debug" (
COPY %PLUGIN_NAME%.plgx %KeePassFolder%\Plugins\%PLUGIN_NAME%.plgx
ECHO Running KeePass in debug mode...
%KeePassFolder%\KeePass.exe --debug
)