File tree Expand file tree Collapse file tree 2 files changed +38
-1
lines changed Expand file tree Collapse file tree 2 files changed +38
-1
lines changed Original file line number Diff line number Diff line change @@ -258,4 +258,5 @@ paket-files/
258258
259259# Python Tools for Visual Studio (PTVS)
260260__pycache__ /
261- * .pyc
261+ * .pyc
262+ /YetAnotherFaviconDownloader.plgx
Original file line number Diff line number Diff line change 1+ #! /bin/bash
2+
3+ PROJDIR=$( dirname ${0} ) # directory name of the build script
4+
5+ # Configuration
6+ SOURCE=${PROJDIR} /YAFD
7+ TARGET=${PROJDIR} /publish # Copy the source here pefore building
8+ PLGX_LOC=" /usr/lib/keepass2/Plugins" # Where to install the plugin
9+ KEEPASS=$( which keepass2) # keepass binary location
10+ NAME=YetAnotherFaviconDownloader
11+
12+
13+ # Clean old files
14+ echo Cleaning...
15+ if [ -d " ${TARGET} " ]; then # remove the build dir
16+ rm -r ${TARGET}
17+ fi
18+ if [ -e publish.plgx ]; then # remove the compiled binary
19+ rm publish.plgx
20+ fi
21+ if [ -e ${NAME} .plgx ]; then # remove renamed binary
22+ rm ${NAME} .plgx
23+ fi
24+
25+ # Copy the files needed to build the plugin
26+ echo Copying...
27+ cp -r ${SOURCE} ${TARGET}
28+
29+ # Let KeePass do its magic
30+ echo Building...
31+ ${KEEPASS} --plgx-create " ${TARGET} " --plgx-prereq-kp:2.34
32+ mv publish.plgx ${NAME} .plgx
33+
34+ # Deploy PLGX file
35+ echo Deploying...
36+ sudo cp ${NAME} .plgx ${PLGX_LOC}
You can’t perform that action at this time.
0 commit comments