docs(build): document AppImage builds for ARM and x64
This commit is contained in:
28
README.md
28
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
|
## LICENZA
|
||||||
Questo progetto è rilasciato sotto licenza MIT
|
Questo progetto è rilasciato sotto licenza MIT
|
||||||
|
|||||||
@@ -11,7 +11,9 @@
|
|||||||
"dev": "concurrently -k \"npm:dev:backend\" \"npm:dev:frontend\" \"npm:dev:electron\"",
|
"dev": "concurrently -k \"npm:dev:backend\" \"npm:dev:frontend\" \"npm:dev:electron\"",
|
||||||
"build:frontend": "vite build --config frontend/vite.config.js",
|
"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: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": {
|
"devDependencies": {
|
||||||
"@vitejs/plugin-vue": "^5.0.0",
|
"@vitejs/plugin-vue": "^5.0.0",
|
||||||
|
|||||||
Reference in New Issue
Block a user