Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[pull] main from gaozhangmin:main #5

Open
wants to merge 113 commits into
base: main
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from 1 commit
Commits
Show all changes
113 commits
Select commit Hold shift + click to select a range
0fdc8a0
update helper url
Apr 1, 2023
4db868d
Fix aria2c lanuch, add new upload setting
Apr 4, 2023
10880b2
m
Apr 6, 2023
3489e50
v3.11.4
Apr 6, 2023
f38f5e2
Fix bug
Apr 10, 2023
3de1933
V3.11.4
Apr 4, 2023
fb4be38
v3.11.4
Apr 10, 2023
5b8588c
Fix video bug
Apr 10, 2023
f68a7e7
Fix checkall
Apr 11, 2023
632fe97
m
Apr 11, 2023
999a642
FIx upload dir error
Apr 11, 2023
92862fa
Fix upload bug
Apr 12, 2023
b961bb3
m
Apr 13, 2023
a150602
m
Apr 13, 2023
ba24a07
m
Apr 13, 2023
bfcde79
m
Apr 14, 2023
c4378a1
m
Apr 16, 2023
dce2977
m
Apr 17, 2023
dbbe052
fix aria2c
Apr 17, 2023
fd1b5a8
Fix rapid upload
Apr 18, 2023
bc5abed
Update icon css
Apr 18, 2023
d92cd6f
Fix player
May 5, 2023
6345b58
Fix github action relase
May 6, 2023
69ee388
Fix builds
May 6, 2023
83410c7
Fix builds
May 6, 2023
7e20b33
Fix builds
May 6, 2023
6868f6c
Fix builds
May 6, 2023
3742a2f
Fix builds
May 6, 2023
22c4778
Fix builds
May 6, 2023
523521f
Fix builds
May 6, 2023
8a83470
Fix builds
May 6, 2023
a6a8d08
Fix file upload
May 6, 2023
0fcfb93
Fix builds
May 6, 2023
aea3d2e
FIx builds
May 6, 2023
632081e
Fix aria2c
May 6, 2023
6b62e5d
M3u8 Download
May 8, 2023
ec17d20
Fix open cmd with args
May 6, 2023
fa2292e
Fix m3u8 download
May 7, 2023
34916e9
Remove unnecessary token refresh
May 10, 2023
7ef64da
Support check update setting
May 10, 2023
a862cca
Fix type error
May 10, 2023
129934f
Update app package name
May 10, 2023
b9bd083
Fix open api rapid upload
May 10, 2023
67e654b
Support auto sign everyday
May 11, 2023
70ed2d8
Fix aria2c
May 11, 2023
f10c3ef
Add albums
May 11, 2023
c05377b
Fix aria2c
May 11, 2023
9def37e
Fix aria2c
May 11, 2023
1e31c91
Remove unnecessary app.png
May 11, 2023
64f80cf
Support auto update
May 11, 2023
461c4a5
Add sponsor info page
May 11, 2023
8616639
Add LICENSE
May 12, 2023
77657e8
Update README
May 12, 2023
4aaf294
Bump version to 3.11.6
May 12, 2023
1bb9011
Support skip video time
May 15, 2023
1496b6d
Fix login
May 16, 2023
a82e361
Support skip from begin and end
May 16, 2023
8d0e790
attach dev tools
May 17, 2023
63077bd
Support skip from begin and end
May 17, 2023
fe22a4e
Fix pageVideo
May 17, 2023
83b04d5
Fix duplicate auto sign
May 17, 2023
62cda4c
Change artplayer settings icon
May 17, 2023
b8d3c24
Fix artplayer icon
May 17, 2023
5ca575b
Update sponsor info
May 17, 2023
02e47a7
Bump version to 3.11.7
May 17, 2023
3e45bf5
Reduce fetching playlist from api
May 19, 2023
a77eb2d
Add album
May 23, 2023
2a77bd4
Fix load file & directory bug
May 19, 2023
4775b63
Support auto updater
May 20, 2023
cdb631b
Support hot update
May 23, 2023
60d9557
Album
May 25, 2023
8ad3410
Fix video quality
May 25, 2023
f750364
Optimize album
May 25, 2023
0aaef8e
Support update on startup
May 25, 2023
d40890c
Remove unsupported upload option overwrtite
May 26, 2023
209475f
Fix pic preview page
May 26, 2023
744e1f1
Local Player support subtitle
May 26, 2023
951136d
Support create album
May 26, 2023
e7a94e7
Add issue template
May 27, 2023
65c9dde
Add album
May 27, 2023
3747713
Bump version to 3.11.8
May 27, 2023
d4d950a
Fix bug-report.yml
May 27, 2023
65774af
Update bug-report.yml
May 27, 2023
f3bda96
Support self-defined player cursor
May 28, 2023
8266d53
Fix bug
May 28, 2023
5196c6f
Optimize self-defined player & rename dir bug
May 29, 2023
7e814e1
Bump versio to 3.11.9
May 29, 2023
f3bd1f5
Remove sponsor
May 29, 2023
a49c344
update readme
May 29, 2023
cb0b6a4
Fix load video slow
May 29, 2023
1a54bd3
Fix ApiAlbumsList npe
May 30, 2023
83c89de
Support change app user data path
May 30, 2023
293f790
Fix share website
May 30, 2023
c3b4585
Fix login page qr code
May 30, 2023
46eeeb6
Fix install error
May 31, 2023
f954cd9
add album photo
Jun 1, 2023
967bd32
Bump version to 3.11.10
Jun 2, 2023
0acced0
Fix upgrade cause token lost
Jun 3, 2023
9dd0912
Bump version to 3.11.11
Jun 3, 2023
4fae02f
Fix command
Jun 3, 2023
4373ec8
Format code
Jun 4, 2023
850bbb4
FIx bug
Jun 5, 2023
f291857
3.11.12
Jun 8, 2023
c69c7ce
Update electron version
Jun 14, 2023
ba61e80
Fix albums
Jun 15, 2023
3050289
Bump version to 3.11.13
Jun 16, 2023
7332eaf
Fix npe
Jun 17, 2023
7bf757a
Bump version to 3.11.14
Jun 17, 2023
0963844
Fix video and upload
Jun 22, 2023
f949fa4
Bump version to 3.11.15
Jun 25, 2023
8ce0acf
Fix update video time
Jun 26, 2023
4c5915c
Update README.md
gaozhangmin Apr 1, 2024
6fc8b1f
Update README.md
gaozhangmin May 29, 2024
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
Bump version to 3.11.10
  • Loading branch information
zhangao authored and zhangao committed Jun 2, 2023
commit 967bd32b7621b7a5006dd68e6c7f7be854bc6122
1 change: 1 addition & 0 deletions electron-builder.json
Original file line number Diff line number Diff line change
Expand Up @@ -48,6 +48,7 @@
"win": {
"icon": "./static/images/icon.png",
"artifactName": "XBYDriver-${version}-win-${arch}.${ext}",
"requestedExecutionLevel": "asInvoker",
"extraResources": [
{ "from": "./static/engine/win32/${arch}", "to": "./engine"},
{ "from": "./static/engine/aria2.conf", "to": "./engine/aria2.conf"},
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"name": "xbyyunpan",
"description": "小白羊云盘",
"version": "3.11.9",
"version": "3.11.10",
"main": "dist/electron/main/index.js",
"author": {
"name": "gaozhangmin",
Expand Down
38 changes: 26 additions & 12 deletions src/aliapi/server.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ import { getAppNewPath, getResourcesPath, getUserDataPath, openExternal } from '
import ShareDAL from '../share/share/ShareDAL'
import DebugLog from '../utils/debuglog'
import { writeFileSync, rmSync, existsSync, readFileSync } from 'fs'
import { execFile, spawn, SpawnOptions } from 'child_process'
import { ChildProcess, execFile, spawn, SpawnOptions } from 'child_process'
import path from 'path'

const { shell } = require('electron')
Expand Down Expand Up @@ -157,7 +157,7 @@ export default class ServerHttp {
if (tagName) {
let configVer = Config.appVersion.replaceAll('v', '').trim()
if (process.platform !== 'linux') {
let localVersion = getUserDataPath('localVersion')
let localVersion = getResourcesPath('localVersion')
if (localVersion && existsSync(localVersion)) {
configVer = readFileSync(localVersion, 'utf-8').replaceAll('v', '').trim()
}
Expand Down Expand Up @@ -336,17 +336,31 @@ export default class ServerHttp {
})
}

static async autoInstallNewVersion(resourcesPath: string) {
static autoInstallNewVersion(resourcesPath: string) {
// 自动安装
const options = { shell: true, windowsVerbatimArguments: true }
const subProcess = await execFile(`${resourcesPath}`, options)
if (subProcess.pid && process.kill(subProcess.pid, 0)) {
await this.Sleep(1000)
window.WebToElectron({ cmd: 'exit' })
} else {
message.info('安装失败,请前往文件夹手动安装', 5)
const resources = getResourcesPath('')
shell.openPath(path.join(resources, '/'))
const options: SpawnOptions = { shell: true, windowsVerbatimArguments: true }
if (process.platform === 'win32' || process.platform === 'linux') {
execFile('\"' + resourcesPath + '\"', options, error => {
if(error) {
message.info('安装失败,请前往文件夹手动安装', 5)
const resources = getResourcesPath('')
shell.openPath(path.join(resources, '/'))
} else {
message.info('安装成功,请重新打开', 5)
window.WebToElectron({ cmd: 'exit' })
}
})
} else if (process.platform === 'darwin') {
execFile('open ' + '\"' + resourcesPath + '\"', options, error => {
if(error) {
message.info('安装失败,请前往文件夹手动安装', 5)
const resources = getResourcesPath('')
shell.openPath(path.join(resources, '/'))
} else {
message.info('请手动移动到应用程序目录,完成安装', 5)
window.WebToElectron({ cmd: 'exit' })
}
})
}
}
}
Expand Down
2 changes: 1 addition & 1 deletion src/utils/config.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
export default class Config {
static appVersion = '3.11.8'
static appVersion = '3.11.10'
static referer = 'https://www.aliyundrive.com/'
static downAgent = 'okhttp/4.2.2'
static userAgent = 'Mozilla/5.0 (Windows NT 10.0; WOW64) AppleWebKit/537.36 (KHTML, like Gecko) aDrive/4.1.0 Chrome/108.0.5359.215 Electron/22.3.1 Safari/537.36'
Expand Down