summarylogtreecommitdiffstats
diff options
context:
space:
mode:
authorweearc2019-02-16 12:36:04 +0800
committerweearc2019-02-16 12:36:04 +0800
commit556ae97cf685a5543bee3c8fdcdf06ff24e58d1b (patch)
treeef16aa7272231a13817bdb12058ef538c03c2c36
parentab9319db77e5bbd826c7245b1d69782c35226604 (diff)
downloadaur-556ae97cf685a5543bee3c8fdcdf06ff24e58d1b.tar.gz
update
-rw-r--r--.SRCINFO5
-rw-r--r--PKGBUILD15
-rwxr-xr-xaria2.conf2
-rw-r--r--package.json141
4 files changed, 10 insertions, 153 deletions
diff --git a/.SRCINFO b/.SRCINFO
index 87d450e7dff..58c9c6574f7 100644
--- a/.SRCINFO
+++ b/.SRCINFO
@@ -1,18 +1,15 @@
pkgbase = motrix
pkgdesc = elegent downloading tool frontend for aria2c,using vue(with personal patches)
- pkgver = git20190126
+ pkgver = git20190211
pkgrel = 1
url = https://github.com/agalwood/Motrix
arch = x86_64
license = MIT
makedepends = npm
makedepends = git
- makedepends = aria2
depends = bash
source = Motrix.desktop
source = aria2.conf
- source = package.json
- md5sums = SKIP
md5sums = SKIP
md5sums = SKIP
diff --git a/PKGBUILD b/PKGBUILD
index aadd9947279..7a312f4701b 100644
--- a/PKGBUILD
+++ b/PKGBUILD
@@ -1,7 +1,7 @@
# Maintainer: weearc <q19981121@163.com>
pkgname=motrix
_pkgname=Motrix
-pkgver=git20190126
+pkgver=git20190211
pkgrel=1
epoch=
pkgdesc="elegent downloading tool frontend for aria2c,using vue(with personal patches)"
@@ -11,8 +11,7 @@ license=('MIT')
groups=()
depends=('bash')
makedepends=('npm'
- 'git'
- 'aria2')
+ 'git')
checkdepends=()
optdepends=()
provides=()
@@ -23,11 +22,9 @@ options=()
install=
changelog=
source=("Motrix.desktop"
- "aria2.conf"
- "package.json")
+ "aria2.conf")
noextract=()
md5sums=('SKIP'
- 'SKIP'
'SKIP')
validpgpkeys=()
@@ -36,7 +33,11 @@ prepare() {
npm config set registry 'https://registry.npm.taobao.org'
export ELECTRON_MIRROR='https://npm.taobao.org/mirrors/electron/'
export SASS_BINARY_SITE='https://npm.taobao.org/mirrors/node-sass'
- rm $_pkgname/package.json && mv ${srcdir}/package.json $_pkgname/.
+ sed -i '/"dmg"/,/"linux"/{//!d}' $_pkgname/package.json
+ sed -i '/"dmg"/d' $_pkgname/package.json
+ sed -i '/"deb"/d' $_pkgname/package.json
+ sed -i '/"snap"/d' $_pkgname/package.json
+ sed -i 's/"AppImage"/"dir"/g' $_pkgname/package.json
}
diff --git a/aria2.conf b/aria2.conf
index 4a28e499cea..08f7c4485ed 100755
--- a/aria2.conf
+++ b/aria2.conf
@@ -1,4 +1,4 @@
-dir=~/downloads
+dir=~/Download
# 启用磁盘缓存, 0为禁用缓存, 需1.16以上版本, 默认:16M
disk-cache=32M
# 文件预分配方式, 能有效降低磁盘碎片, 默认:prealloc
diff --git a/package.json b/package.json
deleted file mode 100644
index c0f0b2cd2f4..00000000000
--- a/package.json
+++ /dev/null
@@ -1,141 +0,0 @@
-{
- "name": "Motrix",
- "version": "1.0.10",
- "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: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": "npm run lint:fix"
- },
- "build": {
- "productName": "Motrix",
- "appId": "net.agalwood.Motrix",
- "asar": true,
- "directories": {
- "output": "release"
- },
- "files": [
- "dist/electron/**/*"
- ],
- "linux": {
- "target": [
- "dir"
- ],
- "extraResources": {
- "from": "./extra/linux/",
- "to": "./",
- "filter": [
- "**/*"
- ]
- }
- },
- "publish": [
- {
- "provider": "generic",
- "url": "https://motrix.app/release/"
- },
- {
- "provider": "github"
- }
- ]
- },
- "dependencies": {
- "aria2": "^4.0.3",
- "axios": "^0.18.0",
- "clipboard-polyfill": "^2.7.0",
- "electron-debug": "^2.0.0",
- "electron-is": "^3.0.0",
- "electron-log": "^2.2.17",
- "electron-updater": "^4.0.7",
- "element-ui": "^2.4.11",
- "forever-monitor": "^1.7.1",
- "lodash": "^4.17.11",
- "normalize.css": "^8.0.1",
- "parse-torrent": "^6.1.2",
- "svg-innerhtml": "^1.1.0",
- "vue": "^2.5.17",
- "vue-electron": "^1.0.6",
- "vue-router": "^3.0.2",
- "vuex": "^3.0.1",
- "vuex-router-sync": "^5.0.0"
- },
- "devDependencies": {
- "@vue/cli-plugin-babel": "^3.2.2",
- "@vue/cli-plugin-eslint": "^3.2.2",
- "@vue/cli-service": "^3.2.2",
- "@vue/eslint-config-standard": "^4.0.0",
- "ajv": "^6.6.2",
- "babel-core": "^6.26.3",
- "babel-eslint": "^10.0.1",
- "babel-loader": "^7.1.4",
- "babel-plugin-component": "^1.1.1",
- "babel-plugin-transform-runtime": "^6.23.0",
- "babel-preset-env": "^1.7.0",
- "babel-preset-stage-0": "^6.24.1",
- "babel-register": "^6.26.0",
- "babili-webpack-plugin": "^0.1.2",
- "cfonts": "^2.2.3",
- "chalk": "^2.4.1",
- "copy-webpack-plugin": "^4.6.0",
- "cross-env": "^5.1.6",
- "css-loader": "^1.0.1",
- "del": "^3.0.0",
- "devtron": "^1.4.0",
- "electron": "^4.0.0",
- "electron-builder": "^20.38.4",
- "electron-devtools-installer": "^2.2.4",
- "electron-notarize": "^0.0.5",
- "electron-osx-sign": "^0.4.11",
- "electron-store": "^2.0.0",
- "eslint": "^5.11.1",
- "eslint-config-standard": "^12.0.0",
- "eslint-friendly-formatter": "^4.0.1",
- "eslint-loader": "^2.1.1",
- "eslint-plugin-html": "^4.0.6",
- "eslint-plugin-import": "^2.12.0",
- "eslint-plugin-node": "^7.0.1",
- "eslint-plugin-promise": "^4.0.1",
- "eslint-plugin-standard": "^4.0.0",
- "file-loader": "^2.0.0",
- "html-webpack-plugin": "^3.2.0",
- "mini-css-extract-plugin": "0.5.0",
- "multispinner": "^0.2.1",
- "node-loader": "^0.6.0",
- "node-sass": "^4.10.0",
- "optimize-css-assets-webpack-plugin": "^5.0.1",
- "sass-loader": "^7.1.0",
- "style-loader": "^0.23.1",
- "url-loader": "^1.1.2",
- "vue-html-loader": "^1.2.4",
- "vue-loader": "^15.4.2",
- "vue-style-loader": "^4.1.2",
- "vue-template-compiler": "^2.5.17",
- "webpack": "^4.28.3",
- "webpack-cli": "^3.1.2",
- "webpack-dev-server": "^3.1.14",
- "webpack-hot-middleware": "^2.24.3",
- "webpack-merge": "^4.1.4"
- }
-}