Cardinal icon indicating copy to clipboard operation
Cardinal copied to clipboard

Portable version of CardinalNative for Windows?

Open bandithedoge opened this issue 3 years ago • 4 comments

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?

bandithedoge avatar Oct 06 '22 18:10 bandithedoge

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..

falkTX avatar Oct 06 '22 18:10 falkTX

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.

image

image

bandithedoge avatar Oct 06 '22 19:10 bandithedoge

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...

falkTX avatar Oct 06 '22 19:10 falkTX

Just checked on a real Windows PC, same result.

bandithedoge avatar Oct 07 '22 10:10 bandithedoge

Would it be possible to let users override the resources directory with, say, a CLI argument?

bandithedoge avatar Oct 21 '22 12:10 bandithedoge

environment variable perhaps?

dromer avatar Oct 21 '22 15:10 dromer

That would work as well, although I think a CLI argument would be more handy for those portable situations. Or both, why not.

bandithedoge avatar Oct 21 '22 15:10 bandithedoge

@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

flashblaze avatar Nov 13 '22 16:11 flashblaze

@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.

bandithedoge avatar Nov 13 '22 17:11 bandithedoge

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.

falkTX avatar Dec 02 '22 09:12 falkTX

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!

flashblaze avatar Dec 11 '22 17:12 flashblaze

Nice nice, I am closing the issue then, thanks for verifying

falkTX avatar Dec 11 '22 22:12 falkTX