package.json 2.6 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115
  1. {
  2. "name": "Pinokio",
  3. "version": "0.0.55",
  4. "homepage": "https://pinokio.computer",
  5. "description": "pinokio",
  6. "main": "main.js",
  7. "email": "cocktailpeanuts@proton.me",
  8. "author": "https://twitter.com/cocktailpeanut",
  9. "scripts": {
  10. "start": "electron .",
  11. "pack": "./node_modules/.bin/electron-builder --dir",
  12. "dist": "npm run monkeypatch && export SNAPCRAFT_BUILD_ENVIRONMENT=host && export SNAP_DESTRUCTIVE_MODE='true' && ./node_modules/.bin/electron-builder -mwl && npm run zip",
  13. "zip": "node script/zip",
  14. "monkeypatch": "cp temp/yarn.js node_modules/app-builder-lib/out/util/yarn.js && cp temp/rebuild.js node_modules/@electron/rebuild/lib/src/rebuild.js",
  15. "postinstall": "npm run monkeypatch && ./node_modules/.bin/electron-builder install-app-deps"
  16. },
  17. "build": {
  18. "appId": "computer.pinokio",
  19. "asarUnpack": [
  20. "node_modules/7zip-bin/**/*",
  21. "node_modules/node-pty-prebuilt-multiarch-cp/**/*"
  22. ],
  23. "extraResources": [
  24. "./script/**"
  25. ],
  26. "protocols": [
  27. {
  28. "name": "pinokio",
  29. "schemes": [
  30. "pinokio"
  31. ]
  32. }
  33. ],
  34. "dmg": {
  35. "background": "./assets/background.png",
  36. "contents": [
  37. {
  38. "x": 130,
  39. "y": 250
  40. },
  41. {
  42. "x": 410,
  43. "y": 80,
  44. "type": "file",
  45. "path": "./script/patch.command"
  46. },
  47. {
  48. "x": 410,
  49. "y": 250,
  50. "type": "link",
  51. "path": "/Applications"
  52. }
  53. ]
  54. },
  55. "mac": {
  56. "category": "utility",
  57. "target": [
  58. {
  59. "target": "default",
  60. "arch": [
  61. "x64",
  62. "arm64"
  63. ]
  64. }
  65. ]
  66. },
  67. "linux": {
  68. "maintainer": "Cocktail Peanut <cocktailpeanuts@proton.me>",
  69. "target": [
  70. {
  71. "target": "deb",
  72. "arch": [
  73. "x64",
  74. "arm64"
  75. ]
  76. },
  77. {
  78. "target": "rpm",
  79. "arch": [
  80. "x64",
  81. "arm64"
  82. ]
  83. },
  84. {
  85. "target": "AppImage",
  86. "arch": [
  87. "x64",
  88. "arm64"
  89. ]
  90. }
  91. ]
  92. },
  93. "win": {
  94. "target": [
  95. {
  96. "target": "nsis",
  97. "arch": [
  98. "x64"
  99. ]
  100. }
  101. ]
  102. }
  103. },
  104. "license": "MIT",
  105. "dependencies": {
  106. "electron-store": "^8.1.0",
  107. "electron-window-state": "^5.0.3",
  108. "pinokiod": "^0.0.234"
  109. },
  110. "devDependencies": {
  111. "@electron/rebuild": "3.2.10",
  112. "electron": "^23.1.2",
  113. "electron-builder": "^24.0.0"
  114. }
  115. }