package.json 3.9 KB
Newer Older
G
GitSquared 已提交
1 2
{
  "name": "edex-ui",
3
  "productName": "eDEX-UI",
G
Gabriel Saillard 已提交
4
  "version": "2.2.7",
G
GitSquared 已提交
5
  "description": "A science fiction desktop running everywhere. Awesome.",
6 7 8 9 10 11 12 13
  "keywords": [
    "desktop",
    "sci-fi",
    "gui",
    "portable",
    "tty",
    "terminal"
  ],
G
CI  
GitSquared 已提交
14
  "main": "src/_boot.js",
G
GitSquared 已提交
15
  "scripts": {
16
    "start": "electron src --nointro",
17
    "install-linux": "npm install && cd src && npm install && ./../node_modules/.bin/electron-rebuild -f -w node-pty && cd ..",
G
GitSquared 已提交
18
    "preinstall-windows": "npm install --global --production windows-build-tools && npm install --global node-gyp && setx PYTHON \"%USERPROFILE%\\.windows-build-tools\\python27\\python.exe\"",
19
    "install-windows": "npm install && cd src && npm install && ..\\node_modules\\.bin\\electron-rebuild -f -w node-pty && cd ..",
20 21
    "prebuild-linux": "rsync -a --info=progress2 src/ prebuild-src --exclude node_modules && node prebuild-minify.js && cd prebuild-src && npm install",
    "prebuild-darwin": "rsync -a src/ prebuild-src --exclude node_modules && node prebuild-minify.js && cd prebuild-src && npm install",
22
    "prebuild-windows": "mkdir prebuild-src && xcopy src\\* prebuild-src\\ /E /C /Q /Y && node prebuild-minify.js && cd prebuild-src && npm install",
23
    "build-linux": "./node_modules/.bin/electron-builder build -l --x64 --ia32 --arm64 --armv7l",
24 25
    "build-darwin": "./node_modules/.bin/electron-builder build -m",
    "build-windows": "node_modules\\.bin\\electron-builder build -w",
G
GitSquared 已提交
26 27
    "postbuild-linux": "rm -R prebuild-src",
    "postbuild-darwin": "rm -R prebuild-src",
28
    "postbuild-windows": "rmdir /S /Q prebuild-src",
29
    "test": "rsync -a --info=progress2 src/ prebuild-src --exclude node_modules && node prebuild-minify.js && cd prebuild-src && npm install && snyk test && cd .. && rm -R prebuild-src",
30
    "init-file-icons": "git submodule update --init",
31
    "update-file-icons": "git submodule foreach git pull origin master && node file-icons-generator.js"
G
GitSquared 已提交
32 33 34 35 36
  },
  "repository": {
    "type": "git",
    "url": "git+https://github.com/GitSquared/edex-ui.git"
  },
37
  "author": "Gabriel 'Squared' SAILLARD <gabriel@saillard.dev> (https://gaby.dev)",
G
GitSquared 已提交
38 39 40 41 42
  "license": "GPL-3.0",
  "bugs": {
    "url": "https://github.com/GitSquared/edex-ui/issues"
  },
  "homepage": "https://github.com/GitSquared/edex-ui#readme",
G
CI  
GitSquared 已提交
43 44
  "build": {
    "appId": "com.edex.ui",
G
GitSquared 已提交
45
    "productName": "eDEX-UI",
46
    "publish": "github",
G
CI  
GitSquared 已提交
47
    "asar": true,
48
    "compression": "normal",
49
    "copyright": "Copyright © 2017-2020 Gabriel 'Squared' SAILLARD <gabriel@saillard.dev> (https://gaby.dev)",
G
CI  
GitSquared 已提交
50 51 52 53 54
    "directories": {
      "output": "dist",
      "app": "prebuild-src"
    },
    "forceCodeSigning": false,
55
    "npmRebuild": true,
56
    "artifactName": "eDEX-UI-${os}-${arch}.${ext}",
G
CI  
GitSquared 已提交
57
    "linux": {
G
Gabriel Saillard 已提交
58 59 60
      "target": [
        "AppImage"
      ],
G
GitSquared 已提交
61
      "category": "System",
G
CI  
GitSquared 已提交
62 63
      "icon": "media/linuxIcons"
    },
64
    "appImage": {
65
      "artifactName": "eDEX-UI-Linux-${arch}.AppImage"
66
    },
67 68 69 70 71
    "mac": {
      "target": [
        {
          "target": "dmg",
          "arch": [
72
            "x64"
73 74 75 76 77 78
          ]
        }
      ],
      "category": "public.app-category.utilities",
      "icon": "media/icon.icns"
    },
79
    "dmg": {
80
      "artifactName": "eDEX-UI-macOS-${arch}.dmg"
81
    },
G
CI  
GitSquared 已提交
82 83 84
    "win": {
      "target": [
        {
85
          "target": "nsis",
86 87 88 89
          "arch": [
            "x64",
            "ia32"
          ]
G
CI  
GitSquared 已提交
90 91 92
        }
      ],
      "icon": "media/icon.ico"
93 94
    },
    "nsis": {
95 96 97
      "artifactName": "eDEX-UI-Windows-${arch}.exe",
      "oneClick": false,
      "allowToChangeInstallationDirectory": true,
98
      "deleteAppDataOnUninstall": true
G
CI  
GitSquared 已提交
99
    }
100
  },
101
  "dependencies": {
G
Gabriel Saillard 已提交
102
    "clean-css": "5.1.2",
103
    "electron": "^11.3.0",
G
Gabriel Saillard 已提交
104
    "electron-builder": "^22.10.5",
105
    "electron-rebuild": "^2.3.5",
G
Gabriel Saillard 已提交
106
    "mime-types": "^2.1.29",
G
Gabriel Saillard 已提交
107
    "node-abi": "2.21.0",
G
GitSquared 已提交
108
    "node-json-minify": "1.0.0",
G
Gabriel Saillard 已提交
109
    "terser": "^5.6.1"
110
  },
111
  "optionalDependencies": {
G
Gabriel Saillard 已提交
112
    "cson-parser": "4.0.8"
113
  }
114
}