Files
Meeting_Assistant/client/package.json
egg 7d4fc69071 feat: Add build scripts and runtime config support
Backend:
- Add setup-backend.sh/bat for one-click backend setup
- Fix test_auth.py mock settings (JWT_EXPIRE_HOURS)
- Fix test_excel_export.py TEMPLATE_DIR reference

Frontend:
- Add config.json for runtime API URL configuration
- Add init.js and settings.js for config loading
- Update main.js to load config from external file
- Update api.js to use dynamic API_BASE_URL
- Update all pages to initialize config before API calls
- Update package.json with extraResources for config

Build:
- Add build-client.sh/bat for packaging Electron + Sidecar
- Add build-all.ps1 PowerShell script with -ApiUrl parameter
- Add GitHub Actions workflow for Windows builds
- Add scripts/README.md documentation

This allows IT to configure backend URL without rebuilding.

🤖 Generated with [Claude Code](https://claude.com/claude-code)

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
2025-12-16 20:03:16 +08:00

73 lines
1.4 KiB
JSON

{
"name": "meeting-assistant",
"version": "1.0.0",
"description": "Enterprise Meeting Knowledge Management",
"main": "src/main.js",
"scripts": {
"start": "electron .",
"build": "electron-builder",
"pack": "electron-builder --dir"
},
"author": "Your Company",
"license": "MIT",
"devDependencies": {
"electron": "^28.0.0",
"electron-builder": "^24.9.1"
},
"dependencies": {
"axios": "^1.6.2"
},
"build": {
"appId": "com.company.meeting-assistant",
"productName": "Meeting Assistant",
"directories": {
"output": "dist"
},
"files": [
"src/**/*",
"node_modules/**/*"
],
"extraResources": [
{
"from": "../sidecar/dist/transcriber",
"to": "sidecar/transcriber",
"filter": ["**/*"]
},
{
"from": "config.json",
"to": "config.json"
}
],
"win": {
"target": [
{
"target": "portable",
"arch": ["x64"]
}
],
"icon": "assets/icon.ico"
},
"mac": {
"target": [
{
"target": "dmg",
"arch": ["x64", "arm64"]
}
],
"icon": "assets/icon.icns"
},
"linux": {
"target": [
{
"target": "AppImage",
"arch": ["x64"]
}
],
"icon": "assets/icon.png"
},
"portable": {
"artifactName": "${productName}-${version}-portable.${ext}"
}
}
}