Skip to content

Commit

Permalink
Bump version to 1.8.0
Browse files Browse the repository at this point in the history
  • Loading branch information
messense committed Jul 16, 2022
1 parent 4af41fe commit 3a6a6d1
Show file tree
Hide file tree
Showing 9 changed files with 48 additions and 35 deletions.
2 changes: 1 addition & 1 deletion .bumpversion.cfg
Original file line number Diff line number Diff line change
Expand Up @@ -2,4 +2,4 @@
files = Cargo.toml README.md openwrt/aliyundrive-webdav/Makefile openwrt/luci-app-aliyundrive-webdav/Makefile merlin/config.json.js snap/snapcraft.yaml
commit = False
tag = False
current_version = 1.7.4
current_version = 1.8.0
5 changes: 5 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,11 @@

All notable changes to this project will be documented in this file.

## 1.8.0

* 增加配置上传文件缓冲区大小参数 `--upload-buffer-size`
* 增加配置跳过上传相同大小同名文件参数 `--skip-upload-same-size`, 注意启用该选项虽然能加速上传但可能会导致修改过的同样大小的文件不会被上传

## 1.7.4

* 删除文件时忽略 404 和 400 状态码
Expand Down
2 changes: 1 addition & 1 deletion Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[package]
name = "aliyundrive-webdav"
version = "1.7.4"
version = "1.8.0"
edition = "2021"
description = "WebDAV server for AliyunDrive"
license = "MIT"
Expand Down
64 changes: 36 additions & 28 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -45,12 +45,12 @@ sudo snap install aliyundrive-webdav
aarch64/arm/mipsel/x86_64/i686 等架构的版本,可以下载后使用 opkg 安装,以 nanopi r4s 为例:

```bash
wget https://github.com/messense/aliyundrive-webdav/releases/download/v1.7.4/aliyundrive-webdav_1.7.4-1_aarch64_generic.ipk
wget https://github.com/messense/aliyundrive-webdav/releases/download/v1.7.4/luci-app-aliyundrive-webdav_1.7.4_all.ipk
wget https://github.com/messense/aliyundrive-webdav/releases/download/v1.7.4/luci-i18n-aliyundrive-webdav-zh-cn_1.7.4-1_all.ipk
opkg install aliyundrive-webdav_1.7.4-1_aarch64_generic.ipk
opkg install luci-app-aliyundrive-webdav_1.7.4_all.ipk
opkg install luci-i18n-aliyundrive-webdav-zh-cn_1.7.4-1_all.ipk
wget https://github.com/messense/aliyundrive-webdav/releases/download/v1.8.0/aliyundrive-webdav_1.8.0-1_aarch64_generic.ipk
wget https://github.com/messense/aliyundrive-webdav/releases/download/v1.8.0/luci-app-aliyundrive-webdav_1.8.0_all.ipk
wget https://github.com/messense/aliyundrive-webdav/releases/download/v1.8.0/luci-i18n-aliyundrive-webdav-zh-cn_1.8.0-1_all.ipk
opkg install aliyundrive-webdav_1.8.0-1_aarch64_generic.ipk
opkg install luci-app-aliyundrive-webdav_1.8.0_all.ipk
opkg install luci-i18n-aliyundrive-webdav-zh-cn_1.8.0-1_all.ipk
```

其它 CPU 架构的路由器可在 [GitHub Releases](https://github.com/messense/aliyundrive-webdav/releases) 页面中查找对应的架构的主程序 ipk 文件下载安装, 常见
Expand Down Expand Up @@ -126,43 +126,51 @@ services:

```bash
$ aliyundrive-webdav --help
aliyundrive-webdav 1.7.4
aliyundrive-webdav 1.8.0
WebDAV server for AliyunDrive
USAGE:
aliyundrive-webdav [OPTIONS]
aliyundrive-webdav <SUBCOMMAND>
OPTIONS:
--cache-size <CACHE_SIZE> Directory entries cache size [default: 1000]
--cache-ttl <CACHE_TTL> Directory entries cache expiration time in seconds [default: 600]
--debug Enable debug log
--domain-id <DOMAIN_ID> Aliyun PDS domain id
-h, --help Print help information
--host <HOST> Listen host [env: HOST=] [default: 0.0.0.0]
-I, --auto-index Automatically generate index.html
--no-self-upgrade Disable self auto upgrade
--no-trash Delete file permanently instead of trashing it
-p, --port <PORT> Listen port [env: PORT=] [default: 8080]
-r, --refresh-token <REFRESH_TOKEN> Aliyun drive refresh token [env: REFRESH_TOKEN=]
--read-only Enable read only mode
--root <ROOT> Root directory path [default: /]
-S, --read-buffer-size <READ_BUFFER_SIZE> Read/download buffer size in bytes, defaults to 10MB [default: 10485760]
--strip-prefix <STRIP_PREFIX> Prefix to be stripped off when handling request [env: WEBDAV_STRIP_PREFIX=]
--tls-cert <TLS_CERT> TLS certificate file path [env: TLS_CERT=]
--tls-key <TLS_KEY> TLS private key file path [env: TLS_KEY=]
-U, --auth-user <AUTH_USER> WebDAV authentication username [env: WEBDAV_AUTH_USER=]
-V, --version Print version information
-w, --workdir <WORKDIR> Working directory, refresh_token will be stored in there if specified
-W, --auth-password <AUTH_PASSWORD> WebDAV authentication password [env: WEBDAV_AUTH_PASSWORD=]
--cache-size <CACHE_SIZE> Directory entries cache size [default: 1000]
--cache-ttl <CACHE_TTL> Directory entries cache expiration time in seconds [default: 600]
--debug Enable debug log
--domain-id <DOMAIN_ID> Aliyun PDS domain id
-h, --help Print help information
--host <HOST> Listen host [env: HOST=] [default: 0.0.0.0]
-I, --auto-index Automatically generate index.html
--no-self-upgrade Disable self auto upgrade
--no-trash Delete file permanently instead of trashing it
-p, --port <PORT> Listen port [env: PORT=] [default: 8080]
-r, --refresh-token <REFRESH_TOKEN> Aliyun drive refresh token [env: REFRESH_TOKEN=]
--read-only Enable read only mode
--root <ROOT> Root directory path [default: /]
-S, --read-buffer-size <READ_BUFFER_SIZE> Read/download buffer size in bytes, defaults to 10MB [default: 10485760]
--skip-upload-same-size Skip uploading same size file
--strip-prefix <STRIP_PREFIX> Prefix to be stripped off when handling request [env: WEBDAV_STRIP_PREFIX=]
--tls-cert <TLS_CERT> TLS certificate file path [env: TLS_CERT=]
--tls-key <TLS_KEY> TLS private key file path [env: TLS_KEY=]
-U, --auth-user <AUTH_USER> WebDAV authentication username [env: WEBDAV_AUTH_USER=]
--upload-buffer-size <UPLOAD_BUFFER_SIZE> Upload buffer size in bytes, defaults to 16MB [default: 16777216]
-V, --version Print version information
-w, --workdir <WORKDIR> Working directory, refresh_token will be stored in there if specified
-W, --auth-password <AUTH_PASSWORD> WebDAV authentication password [env: WEBDAV_AUTH_PASSWORD=]
SUBCOMMANDS:
help Print this message or the help of the given subcommand(s)
qr Scan QRCode
```

> **Note**
>
> 注意:TLS/HTTPS 暂不支持 MIPS 架构。

> **Note**
>
> 注意:启用 `--skip-upload-same-size` 选项虽然能加速上传但可能会导致修改过的同样大小的文件不会被上传

### 获取 refresh_token

* 自动获取: 登录[阿里云盘](https://www.aliyundrive.com/drive/)后,控制台粘贴 `JSON.parse(localStorage.token).refresh_token`
Expand Down
2 changes: 1 addition & 1 deletion merlin/config.json.js
Original file line number Diff line number Diff line change
Expand Up @@ -4,5 +4,5 @@
"md5": "c0bac93db83f87293a1e4efb7aa5a97c",
"module": "aliyundrivewebdav",
"title": "阿里云盘 WebDAV",
"version": "1.7.4"
"version": "1.8.0"
}
2 changes: 1 addition & 1 deletion openwrt/aliyundrive-webdav/Makefile
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
include $(TOPDIR)/rules.mk

PKG_NAME:=aliyundrive-webdav
PKG_VERSION:=1.7.4
PKG_VERSION:=1.8.0
PKG_RELEASE:=$(AUTORELEASE)

PKG_LICENSE:=MIT
Expand Down
2 changes: 1 addition & 1 deletion openwrt/luci-app-aliyundrive-webdav/Makefile
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
include $(TOPDIR)/rules.mk

PKG_NAME:=luci-app-aliyundrive-webdav
PKG_VERSION:=1.7.4
PKG_VERSION:=1.8.0
PKG_RELEASE:=1
PKG_PO_VERSION:=$(PKG_VERSION)-$(PKG_RELEASE)

Expand Down
2 changes: 1 addition & 1 deletion snap/snapcraft.yaml
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
name: aliyundrive-webdav
version: '1.7.4'
version: '1.8.0'
summary: 阿里云盘 WebDAV
description: |
阿里云盘 WebDAV 服务
Expand Down

0 comments on commit 3a6a6d1

Please sign in to comment.