• thevoidzero@lemmy.world
    link
    fedilink
    arrow-up
    7
    ·
    8 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
      5
      ·
      6 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
        4
        ·
        edit-2
        6 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.

        • AeonFelis@lemmy.world
          link
          fedilink
          arrow-up
          1
          ·
          1 hour ago

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

          If that’s the reason - maybe you can use TUI instead? In Windows, it’d open a CMD window which your users will be able to use. Not as pretty as actual GUI, but easier for Windows users to use than a CLI.

          Another option is to use one of the numerous Rust-native GUI libraries (like iced or Druid, to name a few). None of them are as big as GTK/QT - but they are easier to get running on Windows.

        • Lv_InSaNe_vL@lemmy.world
          link
          fedilink
          arrow-up
          3
          ·
          6 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.