gdrive: Fix checkver regex (#138)

* gdrive: Fix checkver regex
Co-Authored-By: Jakub Čábera <cabera.jakub@gmail.com>
Co-Authored-By: Hsiao-nan Cheung <niheaven@gmail.com>
* Installs fine locally
This commit is contained in:
Ross Smith II 2019-06-25 19:14:23 -07:00 committed by GitHub
parent efe6e97320
commit 3f22f2548a
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -5,18 +5,18 @@
"license": "MIT", "license": "MIT",
"architecture": { "architecture": {
"64bit": { "64bit": {
"url": "https://drive.google.com/uc?id=0B3X9GlR6EmbnbnBsTXlfS1J5UjQ&export=download#/gdrive.exe", "url": "https://drive.google.com/uc?id=1zEaLExCMQnwftSYCF7GTONHX-lV7SlTe&export=download#/gdrive.exe",
"hash": "sha1:17f692a027a049385af2576503cd376593cc87b7" "hash": "sha1:53780f9a4168c71fd9f3d429932207069d1dcf03"
}, },
"32bit": { "32bit": {
"url": "https://drive.google.com/uc?id=0B3X9GlR6EmbnV3RNeFVUQjZvS2c&export=download#/gdrive.exe", "url": "https://drive.google.com/uc?id=1nbwcqKI1ohhjbUKLH2NcPSRKvYdBwfEI&export=download#/gdrive.exe",
"hash": "sha1:1429200631b598543eddc3df3487117cad95adbb" "hash": "sha1:4974290122f635d9c71875bc2c760e46b943c5ab"
} }
}, },
"bin": "gdrive.exe", "bin": "gdrive.exe",
"checkver": { "checkver": {
"url": "https://raw.githubusercontent.com/prasmussen/gdrive/master/README.md", "url": "https://raw.githubusercontent.com/prasmussen/gdrive/master/README.md",
"regex": "(?sm)gdrive-windows-386.exe\\].+\\?id=(?<id32>[A-Za-z\\d]{28}).*gdrive-windows-x64.exe\\].+\\?id=(?<id64>[A-Za-z\\d]{28})&export=download\\)\\s+\\|\\s+([\\d\\.]+)\\s+\\|\\s+Windows 64-bit" "regex": "(?sm)windows-386.*?id=(?<id32>[^&]+).*?([\\d.]+).*?id=(?<id64>[^&]+)"
}, },
"autoupdate": { "autoupdate": {
"architecture": { "architecture": {
@ -24,14 +24,14 @@
"url": "https://drive.google.com/uc?id=$matchId64&export=download#/gdrive.exe", "url": "https://drive.google.com/uc?id=$matchId64&export=download#/gdrive.exe",
"hash": { "hash": {
"url": "https://raw.githubusercontent.com/prasmussen/gdrive/master/README.md", "url": "https://raw.githubusercontent.com/prasmussen/gdrive/master/README.md",
"find": "Windows 64-bit\\s+\\|\\s+([A-Fa-f\\d]{40})" "regex": "windows-x64.*?$sha1"
} }
}, },
"32bit": { "32bit": {
"url": "https://drive.google.com/uc?id=$matchId32&export=download#/gdrive.exe", "url": "https://drive.google.com/uc?id=$matchId32&export=download#/gdrive.exe",
"hash": { "hash": {
"url": "https://raw.githubusercontent.com/prasmussen/gdrive/master/README.md", "url": "https://raw.githubusercontent.com/prasmussen/gdrive/master/README.md",
"find": "Window(?:s)? 32-bit\\s+\\|\\s+([A-Fa-f\\d]{40})" "regex": "windows-386.*?$sha1"
} }
} }
} }