diff --git a/README.md b/README.md index 120ce50..c331d77 100644 --- a/README.md +++ b/README.md @@ -157,5 +157,33 @@ Per eseguire l'app in modalità sviluppo è necessario avere l'ambiente virtuale --- +## Build desktop (GUI unica) + +La GUI desktop è unita (frontend + backend) tramite Electron. Il build va eseguito sulla stessa architettura del sistema target (ARM su Raspberry, x86_64 su PC). + +1. Installa le dipendenze: + ```bash + npm install + python -m venv venv + source venv/bin/activate + pip install -r requirements.txt + ``` +2. Build completo per l'architettura corrente: + ```bash + npm run build + ``` +3. Oppure build esplicito per architettura: + ```bash + npm run build:linux:arm64 + npm run build:linux:x64 + ``` +4. Trovi l'AppImage in `release/`. + +Nota su x86_64: per eseguire l'AppImage serve FUSE v2 (`libfuse2`). + +Nota: non è possibile creare un singolo eseguibile che funzioni sia su ARM che su x86_64. Servono build separate. + +--- + ## LICENZA Questo progetto è rilasciato sotto licenza MIT diff --git a/package.json b/package.json index 01a5b89..aa11caf 100644 --- a/package.json +++ b/package.json @@ -11,7 +11,9 @@ "dev": "concurrently -k \"npm:dev:backend\" \"npm:dev:frontend\" \"npm:dev:electron\"", "build:frontend": "vite build --config frontend/vite.config.js", "build:backend": "pyinstaller --name addressgen-backend --onefile backend/app.py --paths backend --hidden-import p2pk --hidden-import p2pkh --hidden-import p2sh --hidden-import p2tr --hidden-import p2wpkh --distpath backend/dist --workpath backend/build --specpath backend", - "build": "npm run build:frontend && npm run build:backend && electron-builder --linux" + "build": "npm run build:frontend && npm run build:backend && electron-builder --linux", + "build:linux:arm64": "npm run build:frontend && npm run build:backend && electron-builder --linux --arm64", + "build:linux:x64": "npm run build:frontend && npm run build:backend && electron-builder --linux --x64" }, "devDependencies": { "@vitejs/plugin-vue": "^5.0.0",