package.json 2.6 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113
  1. {
  2. "name": "Pinokio",
  3. "version": "3.2.0",
  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. "eject": "hdiutil info | grep '/dev/disk' | awk '{print $1}' | xargs -I {} hdiutil detach {}",
  13. "dist": "npm run monkeypatch && export SNAPCRAFT_BUILD_ENVIRONMENT=host && export SNAP_DESTRUCTIVE_MODE='true' && ./node_modules/.bin/electron-builder -mwl && npm run zip",
  14. "zip": "node script/zip",
  15. "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",
  16. "postinstall": "npm run monkeypatch && ./node_modules/.bin/electron-builder install-app-deps"
  17. },
  18. "build": {
  19. "appId": "computer.pinokio",
  20. "asarUnpack": [
  21. "node_modules/go-get-folder-size/**/*",
  22. "node_modules/7zip-bin/**/*",
  23. "node_modules/sweetalert2/**/*",
  24. "node_modules/@cocktailpeanut/**/*"
  25. ],
  26. "nsis": { "include": "build/installer.nsh" },
  27. "extraResources": [
  28. "./script/**"
  29. ],
  30. "protocols": [
  31. {
  32. "name": "pinokio",
  33. "schemes": [
  34. "pinokio"
  35. ]
  36. }
  37. ],
  38. "dmg": {
  39. "background": "./assets/background.gif",
  40. "contents": [
  41. {
  42. "x": 250,
  43. "y": 150
  44. },
  45. {
  46. "x": 550,
  47. "y": 150,
  48. "type": "link",
  49. "path": "/Applications"
  50. }
  51. ]
  52. },
  53. "mac": {
  54. "category": "utility",
  55. "target": [
  56. {
  57. "target": "default",
  58. "arch": [
  59. "x64",
  60. "arm64"
  61. ]
  62. }
  63. ]
  64. },
  65. "linux": {
  66. "maintainer": "Cocktail Peanut <cocktailpeanuts@proton.me>",
  67. "target": [
  68. {
  69. "target": "deb",
  70. "arch": [
  71. "x64",
  72. "arm64"
  73. ]
  74. },
  75. {
  76. "target": "rpm",
  77. "arch": [
  78. "x64",
  79. "arm64"
  80. ]
  81. },
  82. {
  83. "target": "AppImage",
  84. "arch": [
  85. "x64",
  86. "arm64"
  87. ]
  88. }
  89. ]
  90. },
  91. "win": {
  92. "target": [
  93. {
  94. "target": "nsis",
  95. "arch": [
  96. "x64"
  97. ]
  98. }
  99. ]
  100. }
  101. },
  102. "license": "MIT",
  103. "dependencies": {
  104. "electron-store": "^8.1.0",
  105. "electron-window-state": "^5.0.3",
  106. "pinokiod": "^3.2.0"
  107. },
  108. "devDependencies": {
  109. "@electron/rebuild": "3.2.10",
  110. "electron": "^23.1.2",
  111. "electron-builder": "^24.0.0"
  112. }
  113. }