diff --git a/bucket/Clash-for-Windows_Chinese.json b/bucket/Clash-for-Windows_Chinese.json index 31e72a2..01a803d 100644 --- a/bucket/Clash-for-Windows_Chinese.json +++ b/bucket/Clash-for-Windows_Chinese.json @@ -61,4 +61,4 @@ "regex": "(?m)^7z: $sha256" } } -} \ No newline at end of file +} diff --git a/bucket/adrive.json b/bucket/adrive.json new file mode 100644 index 0000000..1bef00e --- /dev/null +++ b/bucket/adrive.json @@ -0,0 +1,55 @@ +{ + "version": "4.9.11", + "description": "阿里云盘是一款速度快、不打扰、够安全、易于分享的网盘,你可以在这里存储、管理和探索内容,尽情打造丰富的数字世界。", + "homepage": "https://www.aliyundrive.com/", + "license": "Unknown", + "url": "https://cdn.aliyundrive.net/downloads/apps/desktop/update/4.9.11/win32/ia32/aDrive-4.9.11.exe#/dl.7z", + "hash": "44f0bc64ad2276c40c4c2358e621c548f3372cd2c14614880effdb6e9854ac8c", + "installer": { + "script": [ + "# handle runtime cache", + "if (!(Test-Path $persist_dir)) {", + " New-Item $persist_dir -Type Directory -Force | Out-Null", + "}", + "$runtimeCache = \"$env:APPDATA\\aDrive\"", + "$runtimeCachePersist = \"$persist_dir\\appdata\"", + "if (Test-Path $runtimeCachePersist) {", + " Remove-Item $runtimeCache -Force -Recurse -ErrorAction SilentlyContinue", + " New-Item -Type Junction -Path $runtimeCache -Target $runtimeCachePersist | Out-Null", + "} else {", + " if (Test-Path $runtimeCache) {", + " Move-Item $runtimeCache $runtimeCachePersist -Force", + " New-Item -Type Junction -Path $runtimeCache -Target $runtimeCachePersist | Out-Null", + " }", + "}" + ] + }, + "uninstaller": { + "script": [ + "$runtimeCache = \"$env:APPDATA\\aDrive\"", + "$runtimeCachePersist = \"$persist_dir\\appdata\"", + "if (!(Test-Path $runtimeCachePersist)) {", + " Move-Item $runtimeCache $runtimeCachePersist -Force", + "} else {", + " Remove-Item $runtimeCache -Force -Recurse -ErrorAction SilentlyContinue", + "}" + ] + }, + "shortcuts": [ + [ + "aDrive.exe", + "阿里云盘" + ] + ], + "post_install": [ + "Remove-Item -Force -Recurse \"$dir\\`$PLUGINSDIR\"", + "Remove-Item -Force -Recurse \"$dir\\`$TEMP\"" + ], + "checkver": { + "url": "https://www.aliyundrive.com/desktop/version/update.json", + "regex": "/([\\d.]+)" + }, + "autoupdate": { + "url": "https://cdn.aliyundrive.net/downloads/apps/desktop/update/$version/win32/ia32/aDrive-$version.exe#/dl.7z" + } +} diff --git a/bucket/clash-for-windows.json b/bucket/clash-for-windows.json index 43944e2..4e8b201 100644 --- a/bucket/clash-for-windows.json +++ b/bucket/clash-for-windows.json @@ -66,4 +66,4 @@ } } } -} \ No newline at end of file +}