mirror of
https://github.com/CringeStudios/element-desktop.git
synced 2025-01-18 23:44:59 +01:00
213 lines
7.8 KiB
JSON
213 lines
7.8 KiB
JSON
{
|
|
"name": "element-desktop",
|
|
"productName": "Element",
|
|
"main": "lib/electron-main.js",
|
|
"version": "1.11.37",
|
|
"description": "A feature-rich client for Matrix.org",
|
|
"author": "Element",
|
|
"homepage": "https://element.io",
|
|
"repository": {
|
|
"type": "git",
|
|
"url": "https://github.com/vector-im/element-desktop"
|
|
},
|
|
"license": "Apache-2.0",
|
|
"files": [],
|
|
"engines": {
|
|
"node": ">=16.0.0"
|
|
},
|
|
"scripts": {
|
|
"i18n": "matrix-gen-i18n",
|
|
"prunei18n": "matrix-prune-i18n",
|
|
"diff-i18n": "cp src/i18n/strings/en_EN.json src/i18n/strings/en_EN_orig.json && matrix-gen-i18n && matrix-compare-i18n-files src/i18n/strings/en_EN_orig.json src/i18n/strings/en_EN.json",
|
|
"mkdirs": "mkdirp packages deploys",
|
|
"fetch": "yarn run mkdirs && ts-node scripts/fetch-package.ts",
|
|
"asar-webapp": "asar p webapp webapp.asar",
|
|
"start": "yarn run build:ts && yarn run build:res && electron .",
|
|
"lint": "yarn lint:types && yarn lint:js",
|
|
"lint:js": "yarn lint:js:src && yarn lint:js:test && yarn lint:js:scripts && yarn lint:js:hak",
|
|
"lint:js:src": "eslint --max-warnings 0 src",
|
|
"lint:js:test": "eslint --max-warnings 0 --config .eslintrc-test.js test",
|
|
"lint:js:scripts": "eslint --max-warnings 0 --config .eslintrc-scripts.js scripts",
|
|
"lint:js:hak": "eslint --max-warnings 0 --config .eslintrc-hak.js hak",
|
|
"lint:js-fix": "yarn lint:js-fix:src &&yarn lint:js-fix:test && yarn lint:js-fix:scripts && yarn lint:js-fix:hak",
|
|
"lint:js-fix:src": "eslint --fix --max-warnings 0 src",
|
|
"lint:js-fix:test": "eslint --fix --max-warnings 0 --config .eslintrc-test.js test",
|
|
"lint:js-fix:scripts": "eslint --fix --max-warnings 0 --config .eslintrc-scripts.js scripts",
|
|
"lint:js-fix:hak": "eslint --fix --max-warnings 0 --config .eslintrc-hak.js hak",
|
|
"lint:types": "yarn lint:types:src && yarn lint:types:test && yarn lint:types:scripts && yarn lint:types:hak",
|
|
"lint:types:src": "tsc --noEmit",
|
|
"lint:types:test": "tsc --noEmit -p test/tsconfig.json",
|
|
"lint:types:scripts": "tsc --noEmit -p scripts/tsconfig.json",
|
|
"lint:types:hak": "tsc --noEmit -p hak/tsconfig.json",
|
|
"build:native": "yarn run hak",
|
|
"build:native:universal": "yarn run hak --target x86_64-apple-darwin fetchandbuild && yarn run hak --target aarch64-apple-darwin fetchandbuild && yarn run hak --target x86_64-apple-darwin --target aarch64-apple-darwin copyandlink",
|
|
"build:32": "yarn run build:ts && yarn run build:res && electron-builder --ia32",
|
|
"build:64": "yarn run build:ts && yarn run build:res && electron-builder --x64",
|
|
"build:universal": "yarn run build:ts && yarn run build:res && electron-builder --universal",
|
|
"build": "yarn run build:ts && yarn run build:res && electron-builder",
|
|
"build:ts": "tsc",
|
|
"build:res": "ts-node scripts/copy-res.ts",
|
|
"docker:setup": "docker build -t element-desktop-dockerbuild dockerbuild",
|
|
"docker:build:native": "scripts/in-docker.sh yarn run hak",
|
|
"docker:build": "scripts/in-docker.sh yarn run build",
|
|
"docker:install": "scripts/in-docker.sh yarn install",
|
|
"clean": "rimraf webapp.asar dist packages deploys lib",
|
|
"hak": "ts-node scripts/hak/index.ts",
|
|
"test": "jest"
|
|
},
|
|
"dependencies": {
|
|
"@sentry/electron": "^4.3.0",
|
|
"auto-launch": "^5.0.5",
|
|
"counterpart": "^0.18.6",
|
|
"electron-clear-data": "^1.0.5",
|
|
"electron-store": "^8.0.2",
|
|
"electron-window-state": "^5.0.3",
|
|
"minimist": "^1.2.6",
|
|
"node-fetch": "^2",
|
|
"png-to-ico": "^2.1.1",
|
|
"uuid": "^9.0.0"
|
|
},
|
|
"devDependencies": {
|
|
"@babel/core": "^7.18.10",
|
|
"@babel/preset-env": "^7.18.10",
|
|
"@babel/preset-typescript": "^7.18.6",
|
|
"@electron/asar": "^3.2.3",
|
|
"@electron/notarize": "^2.0.0",
|
|
"@types/auto-launch": "^5.0.1",
|
|
"@types/counterpart": "^0.18.1",
|
|
"@types/detect-libc": "^1.0.0",
|
|
"@types/jest": "^29.0.0",
|
|
"@types/minimist": "^1.2.1",
|
|
"@types/mkdirp": "^1.0.2",
|
|
"@types/node": "16.18.38",
|
|
"@types/pacote": "^11.1.1",
|
|
"@types/tar": "^6.1.3",
|
|
"@types/uuid": "^9.0.2",
|
|
"@typescript-eslint/eslint-plugin": "^5.42.0",
|
|
"@typescript-eslint/parser": "^5.42.0",
|
|
"allchange": "^1.0.6",
|
|
"app-builder-lib": "24.5.2",
|
|
"babel-jest": "^29.0.0",
|
|
"chokidar": "^3.5.2",
|
|
"detect-libc": "^1.0.3",
|
|
"electron": "^25.0.0",
|
|
"electron-builder": "24.4.0",
|
|
"electron-builder-squirrel-windows": "24.5.2",
|
|
"electron-devtools-installer": "^3.2.0",
|
|
"eslint": "^8.26.0",
|
|
"eslint-config-google": "^0.14.0",
|
|
"eslint-config-prettier": "^8.5.0",
|
|
"eslint-plugin-import": "^2.25.4",
|
|
"eslint-plugin-matrix-org": "^1.0.0",
|
|
"eslint-plugin-unicorn": "^47.0.0",
|
|
"expect-playwright": "^0.8.0",
|
|
"find-npm-prefix": "^1.0.2",
|
|
"fs-extra": "^11.0.0",
|
|
"glob": "^10.0.0",
|
|
"jest": "^29.0.0",
|
|
"matrix-web-i18n": "^1.3.0",
|
|
"mkdirp": "^3.0.0",
|
|
"node-pre-gyp": "^0.17.0",
|
|
"pacote": "^15.0.0",
|
|
"playwright": "^1.25.0",
|
|
"prettier": "^2.8.1",
|
|
"rimraf": "^5.0.0",
|
|
"tar": "^6.1.2",
|
|
"ts-jest": "^29.0.0",
|
|
"ts-node": "^10.9.1",
|
|
"typescript": "5.1.6"
|
|
},
|
|
"hakDependencies": {
|
|
"matrix-seshat": "^3.0.1",
|
|
"keytar": "^7.9.0"
|
|
},
|
|
"resolutions": {
|
|
"@types/node": "16.18.38"
|
|
},
|
|
"build": {
|
|
"appId": "im.riot.app",
|
|
"asarUnpack": "**/*.node",
|
|
"files": [
|
|
"package.json",
|
|
{
|
|
"from": ".hak/hakModules",
|
|
"to": "node_modules"
|
|
},
|
|
"lib/**"
|
|
],
|
|
"extraResources": [
|
|
{
|
|
"from": "res/img",
|
|
"to": "img"
|
|
},
|
|
"webapp.asar"
|
|
],
|
|
"linux": {
|
|
"target": [
|
|
"tar.gz",
|
|
"deb"
|
|
],
|
|
"category": "Network;InstantMessaging;Chat",
|
|
"maintainer": "support@element.io",
|
|
"icon": "build/icons"
|
|
},
|
|
"deb": {
|
|
"packageCategory": "net",
|
|
"depends": [
|
|
"libgtk-3-0",
|
|
"libnotify4",
|
|
"libnss3",
|
|
"libxss1",
|
|
"libxtst6",
|
|
"xdg-utils",
|
|
"libatspi2.0-0",
|
|
"libuuid1",
|
|
"libsecret-1-0",
|
|
"libasound2",
|
|
"libgbm1"
|
|
],
|
|
"recommends": [
|
|
"libsqlcipher0",
|
|
"element-io-archive-keyring"
|
|
]
|
|
},
|
|
"mac": {
|
|
"category": "public.app-category.social-networking",
|
|
"darkModeSupport": true,
|
|
"hardenedRuntime": true,
|
|
"gatekeeperAssess": true,
|
|
"entitlements": "./build/entitlements.mac.plist",
|
|
"icon": "build/icons/icon.icns"
|
|
},
|
|
"win": {
|
|
"target": [
|
|
"squirrel"
|
|
],
|
|
"signingHashAlgorithms": [
|
|
"sha256"
|
|
],
|
|
"icon": "build/icons/icon.ico"
|
|
},
|
|
"directories": {
|
|
"output": "dist"
|
|
},
|
|
"protocols": [
|
|
{
|
|
"name": "element",
|
|
"schemes": [
|
|
"element"
|
|
]
|
|
}
|
|
]
|
|
},
|
|
"jest": {
|
|
"testEnvironment": "node",
|
|
"testMatch": [
|
|
"<rootDir>/test/**/*-test.[jt]s?(x)"
|
|
],
|
|
"setupFilesAfterEnv": [
|
|
"expect-playwright"
|
|
]
|
|
}
|
|
}
|