larsch/ocra

require 'digest' in code results in exe that doesnt work because digest.so is not included

Opened this issue · 3 comments

..... /ocr7DB8.tmp/lib/ruby/2.7.0/x64-mingw32/digest/md5.so (LoadError)
How can I specify the *.so file manually?

I can't use --dll because it is not a dll and needs to be in the lib folder.

Why is it not automatically included?
The main.rb file has the line
require 'digest'
ocra only includes the digest.rb file and not the md5.so in the ./x64-mingw32/digest/ folder

Hello, I have the same issue here :)

The digest.so is dynamically loaded and cannot be resolved after packaging. It refers to a temporary file also for me.

Is there a way to work around that problem?