Skip to content

Commit

Permalink
[add bucket] add aDrive
Browse files Browse the repository at this point in the history
  • Loading branch information
Jenway committed Oct 14, 2023
1 parent 8150da8 commit e2d3a67
Show file tree
Hide file tree
Showing 3 changed files with 57 additions and 2 deletions.
2 changes: 1 addition & 1 deletion bucket/Clash-for-Windows_Chinese.json
Original file line number Diff line number Diff line change
Expand Up @@ -61,4 +61,4 @@
"regex": "(?m)^7z: $sha256"
}
}
}
}
55 changes: 55 additions & 0 deletions bucket/adrive.json
Original file line number Diff line number Diff line change
@@ -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"
}
}
2 changes: 1 addition & 1 deletion bucket/clash-for-windows.json
Original file line number Diff line number Diff line change
Expand Up @@ -66,4 +66,4 @@
}
}
}
}
}

0 comments on commit e2d3a67

Please sign in to comment.