• hangonasecond@lemmy.world
    link
    fedilink
    arrow-up
    3
    ·
    4 hours ago

    Make them in a portable language. Something like Java for example. Or you can write in rust and compile for each target.

    • thevoidzero@lemmy.world
      link
      fedilink
      arrow-up
      2
      ·
      edit-2
      3 hours ago

      It’s in rust. Problem is the gtk part, it has to be installed in the system, which makes it run there. But how do I distribute the program without having everyone install gtk on their computer. In Linux it’s just a dependency so it’s not a problem, for windows I can’t seem to make it work.

      Edit: also, I need gtk because people around me who uses windows aren’t going to use CLI program at all.

      • Lv_InSaNe_vL@lemmy.world
        link
        fedilink
        arrow-up
        1
        ·
        3 hours ago

        Oof GTK is probably one of the worst dependencies you can try and port to Windows.

        What I’ve done in the past is use something like Onno Setup which can call a script during install.

        Or, and this is new to me, use the Official tools to build a package for windows on whatever Linux distro you are on. From what I’m reading, it should package GTK with it.