generated from ScoopInstaller/BucketTemplate
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
3 changed files
with
57 additions
and
2 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -61,4 +61,4 @@ | |
"regex": "(?m)^7z: $sha256" | ||
} | ||
} | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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" | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -66,4 +66,4 @@ | |
} | ||
} | ||
} | ||
} | ||
} |