开发者

Ruby, deploying an exe with ocra that contains the TK GUI

开发者 https://www.devze.com 2023-04-06 10:25 出处:网络
Ocra is unable to handle applications that require \'tk\' require \'tk\' puts \'nope\' Packing this code with

Ocra is unable to handle applications that require 'tk'

require 'tk'
puts 'nope'

Packing this code with ocra http://github.com/larsch/ocra doesn't work (like mentioned in one of the issues at the link) Issue: https://github.com/larsch/ocra/issues/29

(Ocra is the 'new' rubyscript2e开发者_运维技巧xe for 1.9, essentially it's for deploying a rb script as an executable)

The only problem seems to be the missing DLL files for tcl

I don't think it's an issue

AFAIK the problem are the missing DLL files for tk

If they are known they can be included when executing ocra

Is there a way to know the DLL dependecies required for tk to work?


I didn't look on the issue tracker today... it is solved already (some hours ago), sorry.

ocra rubyfile.rb --windows C:\Ruby192\lib\tcltk\ --no-autoload --add-all-core

(--add-all-core is optional, don't include it if the exe works without it)

--> https://github.com/larsch/ocra/issues/29

0

精彩评论

暂无评论...
验证码 换一张
取 消