refactor: simplify podman installer

- Simplify the Podman installer code.
- Remove unnecessary functions and improve code structure.
- Update the installer to support more platforms.
- Improve error handling and logging.
- Update Podman version to 4.9.3.
This commit is contained in:
Mahmoud Emad
2025-01-06 12:16:29 +02:00
parent f7309f2433
commit 624639f87e
7 changed files with 139 additions and 212 deletions

11
examples/installers/podman.vsh Executable file
View File

@@ -0,0 +1,11 @@
#!/usr/bin/env -S v -n -w -gc none -no-retry-compilation -cc tcc -d use_openssl -enable-globals run
import freeflowuniverse.herolib.installers.virt.podman as podman_installer
mut podman := podman_installer.get()!
if podman.installed() {
podman.destroy()!
} else {
podman.install()!
}