package.json 3.9 KB
Newer Older
G
GitSquared 已提交
1 2
{
  "name": "edex-ui",
3
  "productName": "eDEX-UI",
4
  "version": "3.0.0-pre",
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": "node_modules/.bin/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 22
    "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",
    "prebuild-windows": "rmdir /S /Q src\\node_modules && mkdir prebuild-src && xcopy src\\* prebuild-src\\ /E /C /Q /Y && node prebuild-minify.js && cd prebuild-src && npm install",
G
GitSquared 已提交
23 24
    "build-linux": "./node_modules/.bin/electron-builder build -l -p never",
    "build-darwin": "./node_modules/.bin/electron-builder build -m -p never",
25
    "build-windows": "node_modules\\.bin\\electron-builder build -w -p never",
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 31
    "init-file-icons": "git submodule update --init",
    "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",
G
CI  
GitSquared 已提交
46 47
    "asar": true,
    "compression": "maximum",
48
    "copyright": "Copyright © 2017-2020 Gabriel 'Squared' SAILLARD <gabriel@saillard.dev> (https://gaby.dev)",
G
CI  
GitSquared 已提交
49 50 51 52 53 54
    "directories": {
      "output": "dist",
      "app": "prebuild-src"
    },
    "forceCodeSigning": false,
    "npmRebuild": true,
55
    "artifactName": "eDEX-UI-${os}-${arch}.${ext}",
G
CI  
GitSquared 已提交
56 57
    "linux": {
      "target": [
G
GitSquared 已提交
58
        {
59 60
          "target": "AppImage",
          "arch": [
G
GitSquared 已提交
61 62
            "x64",
            "ia32"
63
          ]
G
CI  
GitSquared 已提交
64 65
        }
      ],
G
GitSquared 已提交
66
      "category": "System",
G
CI  
GitSquared 已提交
67 68
      "icon": "media/linuxIcons"
    },
69
    "appImage": {
G
Git² 已提交
70
      "artifactName": "eDEX-UI Linux (${arch}).AppImage"
71
    },
72 73 74 75 76 77 78 79 80 81 82 83
    "mac": {
      "target": [
        {
          "target": "dmg",
          "arch": [
            "x64"
          ]
        }
      ],
      "category": "public.app-category.utilities",
      "icon": "media/icon.icns"
    },
84 85 86
    "dmg": {
      "artifactName": "eDEX-UI MacOS Image.dmg"
    },
G
CI  
GitSquared 已提交
87 88 89
    "win": {
      "target": [
        {
90
          "target": "nsis",
91 92 93 94
          "arch": [
            "x64",
            "ia32"
          ]
G
CI  
GitSquared 已提交
95 96 97
        }
      ],
      "icon": "media/icon.ico"
98 99 100 101 102
    },
    "nsis": {
      "artifactName": "eDEX-UI Windows Installer.exe",
      "oneClick": true,
      "deleteAppDataOnUninstall": true
G
CI  
GitSquared 已提交
103
    }
104
  },
105
  "dependencies": {
106
    "clean-css": "4.2.3",
107
    "electron": "8.2.0",
108
    "electron-builder": "^22.4.1",
109
    "electron-rebuild": "^1.10.1",
110
    "node-abi": "2.15.0",
G
GitSquared 已提交
111
    "node-json-minify": "1.0.0",
112
    "uglify-es": "3.3.9"
113
  },
114
  "optionalDependencies": {
115
    "cson-parser": "4.0.4"
116
  }
117
}