generated from ScoopInstaller/BucketTemplate
-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathsnap.hutao.json
40 lines (40 loc) · 1.6 KB
/
snap.hutao.json
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
{
"version": "1.13.1",
"description": "一个实用的多功能原神工具箱",
"homepage": "https://hut.ao/",
"license": "MIT",
"architecture": {
"64bit": {
"url": "https://github.com/DGP-Studio/Snap.Hutao/releases/download/1.13.1/Snap.Hutao.1.13.1.msix#/dl.zip",
"hash": "8dcd90d169d2553c31015bf026365b10b63f57e38317b5163dedd2c51b7e46d3"
}
},
"pre_install": [
". \"$bucketsdir\\$bucket\\bin\\utils.ps1\"",
"Enable-DevelopmentMode",
"New-PersistDirectory \"$([Environment]::GetFolderPath('Personal'))\\Hutao\" \"$persist_dir\\Personal\" -Migrate"
],
"installer": {
"script": "Add-AppxPackage -Path \"$dir\\AppxManifest.xml\" -Register"
},
"pre_uninstall": [
"if ($cmd -eq 'uninstall') {",
" Get-AppxPackage -Name \"60568DGPStudio.SnapHutao_wbnnev551gwxy\" | Remove-AppxPackage",
"} else {",
" Get-AppxPackage -Name \"60568DGPStudio.SnapHutao_wbnnev551gwxy\" | Remove-AppxPackage -PreserveApplicationData",
"}",
"$bucket = $install.bucket",
". \"$bucketsdir\\$bucket\\bin\\utils.ps1\"",
"Stop-App",
"Remove-Junction \"$([Environment]::GetFolderPath('Personal'))\\Hutao\""
],
"checkver": {
"github": "https://github.com/DGP-Studio/Snap.Hutao"
},
"autoupdate": {
"url": "https://github.com/DGP-Studio/Snap.Hutao/releases/download/$version/Snap.Hutao.$version.msix#/dl.zip",
"hash": {
"url": "https://github.com/DGP-Studio/Snap.Hutao/releases/download/$version/SHA256SUMS"
}
}
}