49 lines
1.6 KiB
JSON
49 lines
1.6 KiB
JSON
{
|
|
"name": "addressgen",
|
|
"version": "0.1.0",
|
|
"description": "Desktop app for generating Bitcoin addresses",
|
|
"main": "desktop/main.js",
|
|
"scripts": {
|
|
"setup:py": "python3 -m pip install -r requirements.txt",
|
|
"dev:backend": "python3 backend/app.py",
|
|
"dev:frontend": "vite --config frontend/vite.config.js",
|
|
"dev:electron": "wait-on http://localhost:5173 && electron .",
|
|
"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"
|
|
},
|
|
"devDependencies": {
|
|
"@vitejs/plugin-vue": "^5.0.0",
|
|
"concurrently": "^8.2.2",
|
|
"electron": "^35.7.5",
|
|
"electron-builder": "^26.6.0",
|
|
"vite": "^5.4.0",
|
|
"vue": "^3.4.0",
|
|
"wait-on": "^7.2.0"
|
|
},
|
|
"overrides": {
|
|
"esbuild": "^0.25.2"
|
|
},
|
|
"build": {
|
|
"appId": "com.addressgen.app",
|
|
"productName": "AddressGen",
|
|
"directories": {
|
|
"output": "release"
|
|
},
|
|
"files": [
|
|
"desktop/**",
|
|
"frontend/**"
|
|
],
|
|
"extraResources": [
|
|
{
|
|
"from": "backend/dist/addressgen-backend",
|
|
"to": "backend/addressgen-backend"
|
|
}
|
|
],
|
|
"linux": {
|
|
"target": ["AppImage"]
|
|
}
|
|
}
|
|
}
|