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

    I’d like to make it like that for my projects, but I don’t use windows so I can’t do well with packaging them. And sometimes when I try it runs in the computer, but then doesn’t run in other computers because of missing dlls or some other things.

    Anyone have good idea how to make it easy. Using windows VM is such a hassle to install and such just for tiny programs I make.

    • hangonasecond@lemmy.world
      link
      fedilink
      arrow-up
      2
      ·
      1 hour 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
        1 hour 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
          ·
          58 minutes 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.