Skip to content

Commit

Permalink
update version to v0.0.9
Browse files Browse the repository at this point in the history
  • Loading branch information
tickstep committed Oct 4, 2020
1 parent 3b9b708 commit 697d5ae
Show file tree
Hide file tree
Showing 9 changed files with 25 additions and 15 deletions.
2 changes: 1 addition & 1 deletion Info.plist
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@
<key>CFBundleExecutable</key>
<string>cloudpan189-go</string>
<key>CFBundleVersion</key>
<string>0.0.8</string>
<string>0.0.9</string>
<key>CFBundleIdentifier</key>
<string>com.tickstep.cloudpan189go</string>
<key>LSRequiresIPhoneOS</key>
Expand Down
12 changes: 12 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,7 @@
* [列出目录](#列出目录)
* [下载文件/目录](#下载文件目录)
* [上传文件/目录](#上传文件目录)
* [手动秒传文件](#手动秒传文件)
* [创建目录](#创建目录)
* [删除文件/目录](#删除文件目录)
* [拷贝文件/目录](#拷贝文件目录)
Expand Down Expand Up @@ -305,6 +306,17 @@ cloudpan189-go upload C:/Users/Administrator/Desktop/1.mp4 C:/Users/Administrato
cloudpan189-go upload C:/Users/Administrator/Desktop /视频
```

## 手动秒传上传文件
```
cloudpan189-go rapidupload -size=<文件的大小> -md5=<文件的md5值> <保存的网盘路径, 需包含文件名>
```

### 例子:
```
如果秒传成功, 则保存到网盘路径 /test/file.txt
cloudpan189-go rapidupload -size=56276137 -md5=fbe082d80e90f90f0fb1f94adbbcfa7f /test/file.txt
```

## 创建目录
```
cloudpan189-go mkdir <目录>
Expand Down
2 changes: 1 addition & 1 deletion cloudpan189-go.exe.manifest
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
<?xml version="1.0" encoding="UTF-8" standalone="yes"?>
<assembly xmlns="urn:schemas-microsoft-com:asm.v1" manifestVersion="1.0" xmlns:asmv3="urn:schemas-microsoft-com:asm.v3">
<assemblyIdentity version="0.0.8.0" processorArchitecture="*" name="com.tickstep.cloudpan189go" type="win32"/>
<assemblyIdentity version="0.0.9.0" processorArchitecture="*" name="com.tickstep.cloudpan189go" type="win32"/>
<dependency>
<dependentAssembly>
<assemblyIdentity type="win32" name="Microsoft.Windows.Common-Controls" version="6.0.0.0" processorArchitecture="*" publicKeyToken="6595b64144ccf1df" language="*"/>
Expand Down
2 changes: 1 addition & 1 deletion debian/linux-amd64/control
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
Package: cloudpan189-go
Version: 0.0.8
Version: 0.0.9
Homepage: https://github.com/tickstep/cloudpan189-go
Section: utils
Priority: optional
Expand Down
2 changes: 0 additions & 2 deletions go.sum
Original file line number Diff line number Diff line change
Expand Up @@ -44,8 +44,6 @@ github.com/stretchr/testify v1.3.0 h1:TivCn/peBQ7UY8ooIcPgZFpTNSz0Q2U6UrFlUfqbe0
github.com/stretchr/testify v1.3.0/go.mod h1:M5WIy9Dh21IEIfnGCwXGc5bZfKNJtfHm1UVUgZn+9EI=
github.com/stretchr/testify v1.6.1 h1:hDPOHmpOpP40lSULcqw7IrRb/u7w6RpDC9399XyoNd0=
github.com/stretchr/testify v1.6.1/go.mod h1:6Fq8oRcR53rry900zMqJjRRixrwX3KX962/h/Wwjteg=
github.com/tickstep/cloudpan189-api v0.0.2 h1:OhVnJyMjrfGHlQhOuky7s8I3V1CNc0P0uFCPpFQQpBE=
github.com/tickstep/cloudpan189-api v0.0.2/go.mod h1:1H1r6h5fOu8sEhPY6h09YTuSt4OKl5uFJchFscBFRwo=
github.com/tickstep/cloudpan189-api v0.0.3 h1:L8woe6XSUjQOsa7XRC7zH8VZj8SNKo/1qQb1k2ttLkU=
github.com/tickstep/cloudpan189-api v0.0.3/go.mod h1:1H1r6h5fOu8sEhPY6h09YTuSt4OKl5uFJchFscBFRwo=
github.com/tickstep/library-go v0.0.1 h1:UbXeGE6ZxnxA6KTjMofEhG3h2aHJ4UGacfh7U2B4zgw=
Expand Down
12 changes: 6 additions & 6 deletions main.go
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ const (

var (
// Version 版本号
Version = "v0.0.9-dev"
Version = "v0.0.9"

saveConfigMutex *sync.Mutex = new(sync.Mutex)

Expand Down Expand Up @@ -1234,25 +1234,25 @@ func main() {
Name: "rapidupload",
Aliases: []string{"ru"},
Usage: "手动秒传文件",
UsageText: app.Name + " rapidupload -length=<文件的大小> -md5=<文件的md5值> <保存的网盘路径, 需包含文件名>",
UsageText: app.Name + " rapidupload -size=<文件的大小> -md5=<文件的md5值> <保存的网盘路径, 需包含文件名>",
Description: `
使用此功能秒传文件, 前提是知道文件的大小, md5, 且网盘中存在一模一样的文件.
上传的文件将会保存到网盘的目标目录.
示例:
1. 如果秒传成功, 则保存到网盘路径 /test/file.txt
cloudpan189-go rapidupload -length=56276137 -md5=fbe082d80e90f90f0fb1f94adbbcfa7f /test/file.txt
cloudpan189-go rapidupload -size=56276137 -md5=fbe082d80e90f90f0fb1f94adbbcfa7f /test/file.txt
`,
Category: "天翼云盘",
Before: reloadFn,
Action: func(c *cli.Context) error {
if c.NArg() <= 0 || !c.IsSet("md5") || !c.IsSet("length") {
if c.NArg() <= 0 || !c.IsSet("md5") || !c.IsSet("size") {
cli.ShowCommandHelp(c, c.Command.Name)
return nil
}

command.RunRapidUpload(parseFamilyId(c), c.Bool("ow"), c.Args().Get(0), c.String("md5"), c.Int64("length"))
command.RunRapidUpload(parseFamilyId(c), c.Bool("ow"), c.Args().Get(0), c.String("md5"), c.Int64("size"))
return nil
},
Flags: []cli.Flag{
Expand All @@ -1262,7 +1262,7 @@ func main() {
Required: true,
},
cli.Int64Flag{
Name: "length",
Name: "size",
Usage: "文件的大小",
Required: true,
},
Expand Down
Binary file modified resource_windows_386.syso
Binary file not shown.
Binary file modified resource_windows_amd64.syso
Binary file not shown.
8 changes: 4 additions & 4 deletions versioninfo.json
Original file line number Diff line number Diff line change
Expand Up @@ -3,13 +3,13 @@
"FileVersion": {
"Major": 0,
"Minor": 0,
"Patch": 8,
"Patch": 9,
"Build": 0
},
"ProductVersion": {
"Major": 0,
"Minor": 0,
"Patch": 8,
"Patch": 9,
"Build": 0
},
"FileFlagsMask": "3f",
Expand All @@ -22,14 +22,14 @@
"Comments": "",
"CompanyName": "tickstep",
"FileDescription": "天翼云盘客户端",
"FileVersion": "v0.0.8",
"FileVersion": "v0.0.9",
"InternalName": "",
"LegalCopyright": "© 2020 tickstep.",
"LegalTrademarks": "",
"OriginalFilename": "",
"PrivateBuild": "",
"ProductName": "cloudpan189-go",
"ProductVersion": "v0.0.8",
"ProductVersion": "v0.0.9",
"SpecialBuild": ""
},
"VarFileInfo": {
Expand Down

0 comments on commit 697d5ae

Please sign in to comment.