keechallenge icon indicating copy to clipboard operation
keechallenge copied to clipboard

Ship also via plgx

Open darkdragon-001 opened this issue 8 years ago • 7 comments

Please also ship your releases as plgx.

darkdragon-001 avatar Jan 22 '17 09:01 darkdragon-001

...And if you cannot ship your releases as plgx for some reason, please provide some documentation on how to use this with Windows - does it need compiling or something?

Thanks!

moose999 avatar Apr 02 '17 18:04 moose999

I packed it as a plgx for myself by doing the following on Windows: (not guaranteed to work but it worked for me)

Download latest ykpers for win32 and win64 from https://developers.yubico.com/yubikey-personalization/Releases/ Extract them to be like:

KeeChallenge\src\32bit\*.dll
KeeChallenge\src\64bit\*.dll
KeeChallenge\src\KeeChallenge.csproj

Remove any unnecessary files if you want to save space (all I did was git clone and immediately pack plgx after adding the dlls)

To create the plgx: KeePass.exe --plgx-create "A:\bsolute\path\to\KeeChallenge\src" --plgx-prereq-kp:2.35 --plgx-build-post:"cmd /c move """{PLGX_TEMP_DIR}32bit""" """{PLGX_CACHE_DIR}""" && move """{PLGX_TEMP_DIR}64bit""" """{PLGX_CACHE_DIR}""""

The plgx will be absolute\path\to\KeeChallenge\src.plgx and can be renamed to whatever

edwardmuel avatar Jun 11 '17 02:06 edwardmuel

I recently experimented a bit with .plgx packaging as well. As I found out, DLL dependencies can be automatically included by referencing them in .csproj file. Unfortunately adding them via wizard fails. Further, I don't know if you can have configuration dependent (x86, x64) paths. I think it works to only ship the .dll files from the bin directory and remove all the other files to reduce size of .plgx. I could successfully load and run this plugin in KeePass although I could not fully test it, since I currently don't have a yubikey lying around...

darkdragon-001 avatar Jun 11 '17 11:06 darkdragon-001

I managed to follow the instructions from @edwardmuel but even with the PLGX version I cannot fix issue #25 It works on 2.35 or lower however.

whinis avatar Aug 19 '17 21:08 whinis

Me too! I got so frustrated I just gave up. I have created a powershell script to automatically download all the dependencies, and perform the compilation, so if we can get a working version I will share that to automate the process.

moose999 avatar Aug 20 '17 12:08 moose999

I believe that something has changed on KeePass api that prevents it from working but I am not sure what.

whinis avatar Aug 20 '17 12:08 whinis

To anyone still following this issue, I have made a PLGX at https://github.com/whinis/keechallenge

whinis avatar Jun 25 '18 03:06 whinis