• hangonasecond@lemmy.world
    link
    fedilink
    arrow-up
    0
    ·
    4 months 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
      0
      ·
      edit-2
      4 months 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
        0
        ·
        4 months 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.