276 lines
7.0 KiB
JSON
276 lines
7.0 KiB
JSON
{
|
|
"name": "Motrix",
|
|
"version": "1.6.6",
|
|
"description": "A full-featured download manager",
|
|
"homepage": "https://motrix.app",
|
|
"author": {
|
|
"name": "AGALWOOD",
|
|
"email": "agalwood.net@gmail.com"
|
|
},
|
|
"copyright": "Copyright© AGALWOOD",
|
|
"license": "MIT",
|
|
"main": "./dist/electron/main.js",
|
|
"repository": {
|
|
"type": "git",
|
|
"url": "git@github.com:agalwood/Motrix.git"
|
|
},
|
|
"scripts": {
|
|
"release": "npm run build --publish onTagOrDraft",
|
|
"build": "node .electron-vue/build.js && electron-builder",
|
|
"build:github": "node .electron-vue/build.js",
|
|
"build:dir": "node .electron-vue/build.js && electron-builder --dir",
|
|
"build:clean": "cross-env BUILD_TARGET=clean node .electron-vue/build.js",
|
|
"build:web": "cross-env BUILD_TARGET=web node .electron-vue/build.js",
|
|
"dev": "node .electron-vue/dev-runner.js",
|
|
"dev:renderer": "webpack-dev-server --hot --colors --config .electron-vue/webpack.renderer.config.js --port 9080 --content-base app/dist",
|
|
"lint": "eslint --ext .js,.vue -f ./node_modules/eslint-friendly-formatter src",
|
|
"lint:fix": "eslint --ext .js,.vue -f ./node_modules/eslint-friendly-formatter --fix src",
|
|
"pack": "npm run pack:main && npm run pack:renderer",
|
|
"pack:main": "cross-env NODE_ENV=production webpack --mode production --progress --colors --config .electron-vue/webpack.main.config.js",
|
|
"pack:renderer": "cross-env NODE_ENV=production webpack --mode production --progress --colors --config .electron-vue/webpack.renderer.config.js",
|
|
"postinstall": "electron-builder install-app-deps && npm run lint:fix"
|
|
},
|
|
"build": {
|
|
"productName": "Motrix",
|
|
"appId": "net.agalwood.Motrix",
|
|
"afterPack": "./build/afterPackHook.js",
|
|
"afterSign": "electron-builder-notarize",
|
|
"fileAssociations": [
|
|
{
|
|
"ext": "torrent",
|
|
"mimeType": "application/x-bittorrent",
|
|
"name": "Torrent",
|
|
"role": "Viewer"
|
|
}
|
|
],
|
|
"asar": true,
|
|
"directories": {
|
|
"output": "release"
|
|
},
|
|
"files": [
|
|
"dist/electron/**/*"
|
|
],
|
|
"protocols": [
|
|
{
|
|
"name": "Motrix Protocol",
|
|
"schemes": [
|
|
"mo",
|
|
"motrix"
|
|
]
|
|
},
|
|
{
|
|
"name": "Magnet Protocol",
|
|
"schemes": [
|
|
"magnet"
|
|
]
|
|
},
|
|
{
|
|
"name": "Thunder Protocol",
|
|
"schemes": [
|
|
"thunder"
|
|
]
|
|
}
|
|
],
|
|
"dmg": {
|
|
"window": {
|
|
"width": 540,
|
|
"height": 380
|
|
},
|
|
"contents": [
|
|
{
|
|
"x": 410,
|
|
"y": 230,
|
|
"type": "link",
|
|
"path": "/Applications"
|
|
},
|
|
{
|
|
"x": 130,
|
|
"y": 230,
|
|
"type": "file"
|
|
}
|
|
]
|
|
},
|
|
"mac": {
|
|
"target": [
|
|
{
|
|
"target": "dmg",
|
|
"arch": [
|
|
"x64",
|
|
"arm64"
|
|
]
|
|
},
|
|
{
|
|
"target": "zip",
|
|
"arch": [
|
|
"x64",
|
|
"arm64"
|
|
]
|
|
}
|
|
],
|
|
"type": "distribution",
|
|
"darkModeSupport": true,
|
|
"hardenedRuntime": true,
|
|
"extraResources": {
|
|
"from": "./extra/darwin/",
|
|
"to": "./",
|
|
"filter": [
|
|
"**/*"
|
|
]
|
|
},
|
|
"category": "public.app-category.utilities"
|
|
},
|
|
"win": {
|
|
"target": [
|
|
{
|
|
"target": "nsis",
|
|
"arch": [
|
|
"x64",
|
|
"ia32"
|
|
]
|
|
},
|
|
{
|
|
"target": "zip",
|
|
"arch": [
|
|
"x64",
|
|
"ia32"
|
|
]
|
|
},
|
|
{
|
|
"target": "portable",
|
|
"arch": [
|
|
"x64",
|
|
"ia32"
|
|
]
|
|
}
|
|
],
|
|
"extraResources": {
|
|
"from": "./extra/win32/",
|
|
"to": "./",
|
|
"filter": [
|
|
"**/*"
|
|
]
|
|
}
|
|
},
|
|
"nsis": {
|
|
"oneClick": false,
|
|
"allowToChangeInstallationDirectory": true
|
|
},
|
|
"linux": {
|
|
"category": "Network",
|
|
"target": [
|
|
"AppImage",
|
|
"deb",
|
|
"rpm",
|
|
"snap"
|
|
],
|
|
"extraResources": {
|
|
"from": "./extra/linux/",
|
|
"to": "./",
|
|
"filter": [
|
|
"**/*"
|
|
]
|
|
}
|
|
},
|
|
"snap": {
|
|
"publish": [
|
|
{
|
|
"provider": "github"
|
|
},
|
|
{
|
|
"provider": "snapStore",
|
|
"channel": "edge"
|
|
}
|
|
]
|
|
},
|
|
"publish": [
|
|
{
|
|
"provider": "generic",
|
|
"url": "https://dl.motrix.app/release/"
|
|
},
|
|
{
|
|
"provider": "github"
|
|
}
|
|
]
|
|
},
|
|
"dependencies": {
|
|
"@babel/runtime": "^7.14.0",
|
|
"@motrix/nat-api": "^0.3.1",
|
|
"@panter/vue-i18next": "^0.15.2",
|
|
"axios": "^0.21.1",
|
|
"bittorrent-peerid": "^1.3.3",
|
|
"blob-util": "^2.0.2",
|
|
"clipboard-polyfill": "^3.0.3",
|
|
"electron-debug": "^3.2.0",
|
|
"electron-is": "^3.0.0",
|
|
"electron-log": "^4.3.5",
|
|
"electron-store": "^8.0.0",
|
|
"electron-updater": "^4.3.8",
|
|
"element-ui": "^2.15.1",
|
|
"i18next": "^20.2.2",
|
|
"lodash": "^4.17.21",
|
|
"node-fetch": "^2.6.1",
|
|
"normalize.css": "^8.0.1",
|
|
"parse-torrent": "^9.1.3",
|
|
"randomatic": "^3.1.1",
|
|
"svg-innerhtml": "^1.1.0",
|
|
"vue": "^2.6.12",
|
|
"vue-electron": "^1.0.6",
|
|
"vue-router": "^3.5.1",
|
|
"vuex": "^3.6.2",
|
|
"vuex-router-sync": "^5.0.0",
|
|
"ws": "^7.4.5"
|
|
},
|
|
"devDependencies": {
|
|
"@babel/core": "^7.14.0",
|
|
"@babel/plugin-proposal-class-properties": "^7.13.0",
|
|
"@babel/plugin-transform-runtime": "^7.13.15",
|
|
"@babel/preset-env": "^7.14.1",
|
|
"@babel/register": "^7.13.16",
|
|
"@electron/remote": "^1.1.0",
|
|
"@motrix/multispinner": "^0.2.2",
|
|
"@vue/eslint-config-standard": "^6.0.0",
|
|
"ajv": "^8.2.0",
|
|
"babel-eslint": "^10.1.0",
|
|
"babel-loader": "^8.2.2",
|
|
"babel-plugin-component": "^1.1.1",
|
|
"cfonts": "^2.9.1",
|
|
"chalk": "^4.1.1",
|
|
"copy-webpack-plugin": "^8.1.1",
|
|
"cross-env": "^7.0.3",
|
|
"css-loader": "^5.2.4",
|
|
"css-minimizer-webpack-plugin": "^2.0.0",
|
|
"del": "^6.0.0",
|
|
"electron": "^11.4.4",
|
|
"electron-builder": "^22.11.1",
|
|
"electron-builder-notarize": "^1.2.0",
|
|
"electron-devtools-installer": "^3.2.0",
|
|
"electron-notarize": "^1.0.0",
|
|
"electron-osx-sign": "^0.5.0",
|
|
"eslint": "^7.25.0",
|
|
"eslint-friendly-formatter": "^4.0.1",
|
|
"eslint-plugin-import": "^2.22.1",
|
|
"eslint-plugin-node": "^11.1.0",
|
|
"eslint-plugin-promise": "^5.1.0",
|
|
"eslint-plugin-vue": "^7.9.0",
|
|
"eslint-webpack-plugin": "^2.5.4",
|
|
"file-loader": "^6.2.0",
|
|
"html-webpack-plugin": "^5.3.1",
|
|
"mini-css-extract-plugin": "1.6.0",
|
|
"node-loader": "^2.0.0",
|
|
"sass": "^1.32.12",
|
|
"sass-loader": "^11.0.1",
|
|
"style-loader": "^2.0.0",
|
|
"terser-webpack-plugin": "^5.1.1",
|
|
"url-loader": "^4.1.1",
|
|
"vue-loader": "^15.9.6",
|
|
"vue-style-loader": "^4.1.3",
|
|
"vue-template-compiler": "^2.6.12",
|
|
"webpack": "^5.36.2",
|
|
"webpack-cli": "^4.6.0",
|
|
"webpack-dev-server": "^3.11.2",
|
|
"webpack-hot-middleware": "^2.25.0",
|
|
"webpack-merge": "^5.7.3",
|
|
"worker-loader": "^3.0.8"
|
|
}
|
|
}
|