ZIm/crates/util/src
Owen Law f7115be3d1
Add Flatpak build system and support (#12006)
ping #6687 

This is the third iteration of this PR ([v2
here](https://github.com/zed-industries/zed/pull/11949)) and uses a
different approach to the first two (the process wrapper lib was a
maintainability nightmare). While the first two attempted to spawn the
necessary processes using flatpak-spawn and host-spawn from the app
inside the sandbox, this version first spawns the cli binary which then
restart's itself *outside* of the sandbox using flatpak-spawn. The
restarted cli process than can call the bundled app binary normally,
with no need for flatpak-spawn because it is already outside of the
sandbox. This is done instead of keeping the cli in the sandbox because
ipc becomes very difficult and broken when trying to do it across the
sandbox.

Gnome software (example using nightly channel and release notes
generated using the script):
<img
src="https://github.com/zed-industries/zed/assets/81528246/6391d217-0f44-4638-9569-88c46e5fc4ba"
width="600"/>

TODO in this PR:
- [x] Bundle libs.
- [x] Cleanup release note converter.

Future work:

- [ ] Auto-update dialog
- [ ] Flatpak auto-update (complete 'Auto-update dialog' first)
- [ ] Experimental
[bundle](https://docs.flatpak.org/en/latest/single-file-bundles.html)
releases for feedback (?).

*(?) = Maybe / Request for feedback*

Release Notes:

- N/A

---------

Co-authored-by: Marshall Bowers <elliott.codes@gmail.com>
Co-authored-by: Mikayla Maki <mikayla.c.maki@gmail.com>
2024-05-27 19:01:20 -06:00
..
test Fix Clippy warnings in util crate (#8721) 2024-03-02 13:06:35 -05:00
arc_cow.rs Add logic for managing language and theme extensions (#7467) 2024-02-07 15:14:50 -05:00
fs.rs chore: Clean up util dependencies. (#9247) 2024-03-13 00:10:49 +01:00
http.rs Extract http from util (#11680) 2024-05-10 15:50:20 -06:00
paths.rs Add Flatpak build system and support (#12006) 2024-05-27 19:01:20 -06:00
serde.rs Allow ignoring soft wraps when moving to line ends (#11153) 2024-05-02 12:30:45 +03:00
test.rs Fix Clippy warnings in util crate (#8721) 2024-03-02 13:06:35 -05:00
util.rs Make a macro for less boilerplate when moving variables (#12182) 2024-05-22 22:07:29 -07:00