Add installer and uninstaller script

This commit is contained in:
2025-11-16 19:07:37 +07:00
parent fa0fce5e06
commit 4f9a72c8df
4 changed files with 107 additions and 6 deletions

View File

@@ -26,21 +26,36 @@ sudo apt install qemu-utils libguestfs-tools
## Installation
### Build from source:
### Quick Install (Recommended):
```bash
git clone <repo-url>
cd cloud-image
sudo ./install.sh
```
Installer akan otomatis:
- Install dependencies (qemu-utils, libguestfs-tools)
- Build binary
- Install ke `/usr/local/bin`
### Manual Build:
```bash
git clone <repo-url>
cd cloud-image
go build -o proxmox-cloud-image
```
### Install globally (Linux):
```bash
sudo cp proxmox-cloud-image /usr/local/bin/
sudo chmod +x /usr/local/bin/proxmox-cloud-image
```
### Uninstall:
```bash
cd cloud-image
sudo ./uninstall.sh
```
Setelah install, bisa langsung dipanggil dari mana aja:
```bash
proxmox-cloud-image -h