utpm icon indicating copy to clipboard operation
utpm copied to clipboard

Other install options

Open SylvanFranklin opened this issue 1 year ago • 7 comments

It would be great to have this on crates.io so that users could simply install using cargo install utpm. I don't know if you have any interest in other package managers, but I am on a mac and have experience with homebrew and could create a tap for brew install.

SylvanFranklin avatar Nov 04 '24 02:11 SylvanFranklin

Good idea! I already had an interest in it but since they are a LOT of package manager I don't really know where to start but it's definitely in my todo list! You can create a tap for brew if you want, like I said, any help is always wanted! Thank you!

Thumuss avatar Nov 07 '24 12:11 Thumuss

Yes you are right there are so many different platforms to consider. I think cargo is the most important since Typst developers almost certainly will have Rust installed. You already have a way to install it with cargo currently which is great, I think cargo binstall or a regular cargo install would still be good in the future. I'll see about getting a homebrew tap working in the next few days but I don't see it as a huge priority.

SylvanFranklin avatar Nov 07 '24 14:11 SylvanFranklin

A friend of mine will (potentially) add nix support here!

Thumuss avatar Nov 26 '24 21:11 Thumuss

Any progress on an upload to crates.io?

SylvanFranklin avatar Dec 07 '24 20:12 SylvanFranklin

It's a bit complicated. Tinger had made a crate named typst-project that I've used for a long time but it is not published directly to crates.io. They made two new crates named typst-syntax and typst-kit which contains a bit of typst-project but not all of it. So I need to rewrite pretty much 50% of the code that I have to publish it.

As my finals are coming, I think I'll do it a bit later.

Meanwhile I'll finish publish command this month or in january. I'll check debian, ubuntu, arch and fedora packaging system to add utpm on them!

Thumuss avatar Dec 16 '24 20:12 Thumuss

I think mirroring what tytanic does would be valuable:

  • release to crates.io (once the blockers are resolved)
  • add Github releases with binaries for various platforms, via a Github action)

then you can install using cargo binstall, which is much quicker (and energy saving) than cargo install. And it would enable using utpm in the template's CI (next step: setup-utpm action).

SillyFreak avatar Aug 14 '25 18:08 SillyFreak

On the last PR #83 I've added a lot of packages manager. If you want to look at that, feel free!

Thumuss avatar Nov 15 '25 03:11 Thumuss