Skip to content

Commit 55e2a42

Browse files
authored
chore: upgrade aria2 version to 1.36 (#1411)
* chore: update build scripts * fix: setup protocols client empty error * refactor: auto change theme * refactor: engine max connection per server * refactor: adjust add task dialog style * refactor: aria2 client lib import * chore: update deps * chore: striped darwin arm64 aria2c bin * chore: strip darwin engine x64 aria2c bin * chore: upgrade linux engine arai2c bin to 1.36 * chore: upgrade windows engine arai2c bin to 1.36
1 parent 637d5e9 commit 55e2a42

File tree

17 files changed

+63
-93
lines changed

17 files changed

+63
-93
lines changed

.electron-vue/build.js

Lines changed: 9 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -120,16 +120,20 @@ function greeting () {
120120
const cols = process.stdout.columns
121121
let text = ''
122122

123-
if (cols > 85) text = 'lets-build'
124-
else if (cols > 60) text = 'lets-|build'
125-
else text = false
123+
if (cols > 85) {
124+
text = 'lets-build'
125+
} else if (cols > 60) {
126+
text = 'lets-|build'
127+
} else {
128+
text = false
129+
}
126130

127131
if (text && !isCI) {
128132
say(text, {
129-
colors: ['yellow'],
133+
colors: ['magentaBright'],
130134
font: 'simple3d',
131135
space: false
132136
})
133-
} else console.log(chalk.yellow.bold('\n lets-build'))
137+
} else console.log(chalk.magentaBright.bold('\n lets-build'))
134138
console.log()
135139
}

.electron-vue/dev-runner.js

Lines changed: 9 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -128,17 +128,21 @@ function greeting () {
128128
const cols = process.stdout.columns
129129
let text = ''
130130

131-
if (cols > 104) text = 'electron-vue'
132-
else if (cols > 76) text = 'electron-|vue'
133-
else text = false
131+
if (cols > 104) {
132+
text = 'motrix-dev'
133+
} else if (cols > 76) {
134+
text = 'motrix-|dev'
135+
} else {
136+
text = false
137+
}
134138

135139
if (text) {
136140
say(text, {
137-
colors: ['yellow'],
141+
colors: ['magentaBright'],
138142
font: 'simple3d',
139143
space: false
140144
})
141-
} else console.log(chalk.yellow.bold('\n electron-vue'))
145+
} else console.log(chalk.magentaBright.bold('\n motrix-dev'))
142146
console.log(chalk.blue(' getting ready...') + '\n')
143147
}
144148

extra/darwin/arm64/engine/aria2c

-1.31 MB
Binary file not shown.

extra/darwin/x64/engine/aria2c

-1.29 MB
Binary file not shown.

extra/linux/engine/aria2c

-409 KB
Binary file not shown.

extra/win32/ia32/engine/aria2c.exe

100644100755
2.99 MB
Binary file not shown.

extra/win32/x64/engine/aria2c.exe

100644100755
2.61 MB
Binary file not shown.

package.json

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,7 @@
4343
"electron-store": "^8.1.0",
4444
"electron-updater": "^5.3.0",
4545
"element-ui": "^2.15.13",
46-
"i18next": "^22.4.12",
46+
"i18next": "^22.4.13",
4747
"lodash": "^4.17.21",
4848
"node-fetch": "^2.6.1",
4949
"normalize.css": "^8.0.1",
@@ -85,7 +85,6 @@
8585
"eslint": "^7.32.0",
8686
"eslint-friendly-formatter": "^4.0.1",
8787
"eslint-plugin-import": "^2.27.5",
88-
"eslint-plugin-n": "^15.6.1",
8988
"eslint-plugin-node": "^11.1.0",
9089
"eslint-plugin-promise": "^6.1.1",
9190
"eslint-plugin-vue": "^9.9.0",
@@ -101,9 +100,9 @@
101100
"vue-loader": "^15.10.1",
102101
"vue-style-loader": "^4.1.3",
103102
"vue-template-compiler": "^2.7.14",
104-
"webpack": "^5.76.2",
103+
"webpack": "^5.77.0",
105104
"webpack-cli": "^5.0.1",
106-
"webpack-dev-server": "^4.12.0",
105+
"webpack-dev-server": "^4.13.1",
107106
"webpack-hot-middleware": "^2.25.3",
108107
"webpack-merge": "^5.8.0",
109108
"worker-loader": "^3.0.8"

src/main/Application.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -713,7 +713,7 @@ export default class Application extends EventEmitter {
713713
})
714714

715715
this.on('application:setup-protocols-client', (protocols) => {
716-
if (is.dev() || is.mas()) {
716+
if (is.dev() || is.mas() || !protocols) {
717717
return
718718
}
719719
logger.info('[Motrix] setup protocols client:', protocols)

src/main/ui/ThemeManager.js

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,5 @@
11
import { EventEmitter } from 'events'
22
import { nativeTheme } from 'electron'
3-
import is from 'electron-is'
43

54
import { APP_THEME } from '@shared/constants'
65
import logger from '../core/Logger'
@@ -25,10 +24,6 @@ export default class ThemeManager extends EventEmitter {
2524
}
2625

2726
handleEvents () {
28-
if (!is.macOS()) {
29-
return
30-
}
31-
3227
nativeTheme.on('updated', () => {
3328
const theme = getSystemTheme()
3429
this.systemTheme = theme

0 commit comments

Comments
 (0)