-
Notifications
You must be signed in to change notification settings - Fork 83
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
"undefined method `encode'" when creating installer #126
Comments
I fixed this by updating the |
When I run ocra: |
Did you find the way? |
monkeypatch works for me. no guarantees:
(I also stumbled over .iss File Example, where everything was on one line which is wrong.) |
Which file you put this? |
In my code. Just put it after require 'ocra' |
The error is
ERROR: InnoSetup installer creation failed: undefined method `encode' for <Ocra::Pathname:0x000000041013d8 @path="src/xxx.rb">
I find it occur in line 1090 of the bin/ocra :
target_dir_escaped = Pathname.new(tgt).dirname.to_s.gsub('"', '""')
I change it to this:
target_dir_escaped = Pathname.new(File.dirname(tgt)).to_s.gsub('"', '""')
And then it works though I don't know why
Running on Windows 10, msys2 ,ruby 2.4.0p0 (2016-12-24 revision 57164) [x64-mingw32]
The text was updated successfully, but these errors were encountered: