package.json 1.4 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162
  1. {
  2. "name": "examclient",
  3. "version": "1.0.0",
  4. "description": "IES.ExamClient",
  5. "main": "main.js",
  6. "scripts": {
  7. "start": "chcp 65001 && electron .",
  8. "test": "echo \"Error: no test specified\" && exit 1",
  9. "package": "electron-packager . --platform=win32 --arch=ia32 --out=dist --overwrite",
  10. "build": "electron-builder --win --ia32"
  11. },
  12. "keywords": [],
  13. "author": "",
  14. "license": "MIT",
  15. "devDependencies": {
  16. "electron": "^21.4.4",
  17. "electron-builder": "^25.1.8",
  18. "eslint": "^9.21.0"
  19. },
  20. "build": {
  21. "appId": "exam.habook.local",
  22. "productName": "评测教师端",
  23. "directories": {
  24. "output": "dist"
  25. },
  26. "win": {
  27. "requestedExecutionLevel": "requireAdministrator",
  28. "target": "nsis",
  29. "sign": false,
  30. "icon": "logo.ico"
  31. },
  32. "nsis": {
  33. "unicode": true,
  34. "runAfterFinish": false,
  35. "oneClick": false,
  36. "perMachine": true,
  37. "allowToChangeInstallationDirectory": true,
  38. "createDesktopShortcut": true,
  39. "createStartMenuShortcut": true,
  40. "installerHeader": "header.bmp",
  41. "installerSidebar": "sidebar.bmp",
  42. "allowElevation": true
  43. },
  44. "extraFiles": [
  45. {
  46. "from": "server",
  47. "to": "server",
  48. "filter": [
  49. "**/*"
  50. ]
  51. }
  52. ],
  53. "extraResources": [
  54. "index.html"
  55. ]
  56. },
  57. "dependencies": {
  58. "adm-zip": "^0.5.16",
  59. "axios": "^1.7.9",
  60. "network-interfaces": "^1.1.0"
  61. }
  62. }