gdrive: Fix checkver and download url (#294)

This commit is contained in:
Hsiao-nan Cheung 2019-08-04 18:08:37 +08:00 committed by GitHub
parent 26863ee753
commit f2f7c64d52
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -1,39 +1,31 @@
{ {
"version": "2.1.0", "version": "2.1.0",
"description": "Command line utility for interacting with Google Drive.", "description": "Command line utility for interacting with Google Drive.",
"homepage": "https://github.com/prasmussen/gdrive/", "homepage": "https://github.com/gdrive-org/gdrive",
"license": "MIT", "license": "MIT",
"architecture": { "architecture": {
"64bit": { "64bit": {
"url": "https://drive.google.com/uc?id=1zEaLExCMQnwftSYCF7GTONHX-lV7SlTe&export=download#/gdrive.exe", "url": "https://github.com/gdrive-org/gdrive/releases/download/2.1.0/gdrive-windows-x64.exe#/gdrive.exe",
"hash": "sha1:53780f9a4168c71fd9f3d429932207069d1dcf03" "hash": "sha1:53780f9a4168c71fd9f3d429932207069d1dcf03"
}, },
"32bit": { "32bit": {
"url": "https://drive.google.com/uc?id=1nbwcqKI1ohhjbUKLH2NcPSRKvYdBwfEI&export=download#/gdrive.exe", "url": "https://github.com/gdrive-org/gdrive/releases/download/2.1.0/gdrive-windows-386.exe#/gdrive.exe",
"hash": "sha1:4974290122f635d9c71875bc2c760e46b943c5ab" "hash": "sha1:4974290122f635d9c71875bc2c760e46b943c5ab"
} }
}, },
"bin": "gdrive.exe", "bin": "gdrive.exe",
"checkver": { "checkver": "github",
"url": "https://raw.githubusercontent.com/prasmussen/gdrive/master/README.md",
"regex": "(?sm)windows-386.*?id=(?<id32>[^&]+).*?([\\d.]+).*?id=(?<id64>[^&]+)"
},
"autoupdate": { "autoupdate": {
"architecture": { "architecture": {
"64bit": { "64bit": {
"url": "https://drive.google.com/uc?id=$matchId64&export=download#/gdrive.exe", "url": "https://github.com/gdrive-org/gdrive/releases/download/$version/gdrive-windows-x64.exe#/gdrive.exe"
"hash": {
"url": "https://raw.githubusercontent.com/prasmussen/gdrive/master/README.md",
"regex": "windows-x64.*?$sha1"
}
}, },
"32bit": { "32bit": {
"url": "https://drive.google.com/uc?id=$matchId32&export=download#/gdrive.exe", "url": "https://github.com/gdrive-org/gdrive/releases/download/$version/gdrive-windows-386.exe#/gdrive.exe"
}
},
"hash": { "hash": {
"url": "https://raw.githubusercontent.com/prasmussen/gdrive/master/README.md", "url": "$baseurl/shasums"
"regex": "windows-386.*?$sha1"
}
}
} }
} }
} }