Cardinal
Cardinal copied to clipboard
Portable version of CardinalNative for Windows?
Hi, I'm trying to run CardinalNative from a USB drive. The .zip releases don't have CardinalNative in them so I tried extracting the installers and running it from there, but it seems like it expects resources at C:\Program Files\Common Files\Cardinal no matter what. Is there a way to make it load resources from another directory? If not, how difficult would be to compile and distribute a portable version?
You should be able to create a "resources" folder on the same path where Cardinal.exe exists, and Cardinal will use those resources first before trying the system-wide ones.
Let me know if this works, I only have used this locally and did not try with the release builds, so not 100% sure it works as-is..
Unfortunately this doesn't work either. Could it be because I'm running it through Wine? I'll only be able to test it on a real Windows machine tomorrow.


Cardinal doesnt work under wine, there is something that libzstd or libarchive uses that doesnt work under wine, dont know why yet. But from how you placed the files it was supposed to work...
Just checked on a real Windows PC, same result.
Would it be possible to let users override the resources directory with, say, a CLI argument?
environment variable perhaps?
That would work as well, although I think a CLI argument would be more handy for those portable situations. Or both, why not.
@bandithedoge were you able to get this working? I want to install Cardinal in a different drive other than C which I'm unable to do so due to the things which you've mentioned
@bandithedoge were you able to get this working? I want to install Cardinal in a different drive other than C which I'm unable to do so due to the things which you've mentioned
No, I ended up using Rack portable.
Looking into this now, there was indeed something missing for the Windows implementation in order to allow this (it worked on macOS and Linux, but not Windows).
So now the Window side has been fixed in d715d8c066e632ac409f11a5fd5661baf9a7fa06 to allow usage of local resources dir. Either grab the latest GH actions build (once available) or wait for 22.12 release.
Hi @falkTX sorry for the late reply. I tried the actions build version a day after your comment and totally forgot to mention that it worked for me w/o any issues. Thanks a lot for this!
Nice nice, I am closing the issue then, thanks for verifying