feat(packaging): Add npm packaging and installer: wrapper, postinstall downloader, publish workflow, and packaging files

This commit is contained in:
2025-10-22 14:18:09 +00:00
parent 18bd9f6cda
commit 684319983d
11 changed files with 673 additions and 8 deletions

View File

@@ -52,7 +52,24 @@ nupst service status
## 📥 Installation
### Automated Installer (Recommended)
### Via npm (NEW! - Recommended)
Install NUPST globally using npm:
```bash
npm install -g @serve.zone/nupst
```
**Benefits:**
- Automatic platform detection and binary download
- Downloads only the binary for your platform (~400-500MB)
- Easy updates via `npm update -g @serve.zone/nupst`
- Version management with npm
- Works with Node.js >=14
**Note:** The installation will download the appropriate binary from GitHub releases during the postinstall step.
### Automated Installer Script
The installer script handles everything automatically: