simp icon indicating copy to clipboard operation
simp copied to clipboard

Improve packaging

Open Kl4rry opened this issue 3 years ago • 9 comments

Currently only raw binaries are distributed. This is not ideal especially for MacOS and Linux. It would be nice to package the app properly.

Kl4rry avatar Aug 29 '22 20:08 Kl4rry

Was a mistake in my derivation.

If I were to contribute flake.nix to the repo, would such a PR be accepted? I’m willing to support it.

Originally posted by @GoldsteinE in https://github.com/Kl4rry/simp/issues/11#issuecomment-1231498023

I happily accept help with package/platform/distro related stuff on other platforms then the ones I use as long as I don't have to maintain them as it is impossible for me to do so.

Kl4rry avatar Aug 30 '22 15:08 Kl4rry

#13 Adds a flake for Nix (developer environment + package).

GoldsteinE avatar Aug 30 '22 17:08 GoldsteinE

Adding a desktop entry for linux would be nice.

Kl4rry avatar Aug 31 '22 18:08 Kl4rry

Perhaps cargo-binstall could be an option: https://github.com/cargo-bins/cargo-binstall/blob/main/SUPPORT.md

auronandace avatar Sep 04 '22 21:09 auronandace

Seems interesting. Can it run logic on installation like creating files like a desktop entry or is it just a cargo install for binaries?

Kl4rry avatar Sep 05 '22 17:09 Kl4rry

It is effectively cargo install for binaries, yes. Given the amount of dependencies for this project though does mean that you save some time and power installing it rather than having to compile it. I'd like more projects, especially the bigger ones, to support cargo-binstall.

auronandace avatar Sep 05 '22 19:09 auronandace

Yes I agree being able to install binaries would be nice considering both the long compile times and the problems with dependancies we have had.

Kl4rry avatar Sep 06 '22 20:09 Kl4rry

I can recommend cargo-bundle to build a MacOS app bundle (I am building a simple image viewer with rudimentary mac support).

If you want to go further with file associations, it gets ugly fast, and I've been using fruitbasket with limited success. Here is my info.plist: https://github.com/woelper/oculante/blob/master/res/info.plist

woelper avatar Dec 13 '22 11:12 woelper

I do not own a Mac computer and therefore is unable to debug bundling for Mac.

Kl4rry avatar Dec 17 '22 12:12 Kl4rry