ocran icon indicating copy to clipboard operation
ocran copied to clipboard

`--icon src\app.ico` results in opcode error, without the setting build goes fine.

Open reneweteling opened this issue 1 year ago • 5 comments

when setting an icon the exe gets an icon only i get an opcode error, without the icon it works just fine.

When building a app like so on windows 11

bundle exec ocran `
  --windows `
  --add-all-core `
  --no-lzma `
  --icon src\app.ico `
  --output icon-true.exe `
  src\window.rb

The app has the nice icon, only when starting you get this error

image

When building without the icon it all works fine, except for the icon obviously.

bundle exec ocran `
  --windows `
  --add-all-core `
  --no-lzma `
  --output icon-false.exe `
  src\window.rb

No icon, all is fine

image

Environment

MBP m2 max UTM (https://mac.getutm.app/) running Windows 11 for Apple silicon ruby: Ruby+Devkit 3.0.6-1 (x64) (https://rubyinstaller.org/downloads/)

window.rb

just a small file to see how glimmer would work with ocran.

require 'glimmer-dsl-libui'

include Glimmer


window('hello world', 300, 200, true) {
  on_closing do
    puts 'Bye Bye'
  end
}.show

reneweteling avatar Feb 13 '24 13:02 reneweteling