Skip to content

Commit

Permalink
add plugin build automation
Browse files Browse the repository at this point in the history
  • Loading branch information
skironDotNet committed Mar 15, 2019
1 parent cd921ee commit 7162b84
Showing 1 changed file with 20 additions and 0 deletions.
20 changes: 20 additions & 0 deletions create-plgx-plugin.bat
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
@echo off

set plugin=%cd%\plugin
set source=%plugin%\source

echo coping source files to plugin\source for clean plugin
if not exist %source% mkdir %source%
cp *.cs %source%
cp *.csproj %source%
cp *.resx %source%
xcopy /S /Y %cd%\Resources %source%\Resources\ >NUL
xcopy /S /Y %cd%\Properties %source%\Properties\ >NUL
del %plugin%\*.plgx

echo compiling plugin
"c:\Program Files (x86)\KeePass Password Safe 2\KeePass.exe" --plgx-create %source% -plgx-prereq-kp:2.41 --plgx-prereq-net:4.0

echo renaming
ren %source%.plgx KeePassQRCodeView.plgx
echo Clean compiled plugin is located in %cd%\plugin

0 comments on commit 7162b84

Please sign in to comment.