|
| 1 | +{ |
| 2 | + "version": "1.11.0", |
| 3 | + "description": "GUI for Clash", |
| 4 | + "homepage": "https://github.com/GUI-for-Cores/GUI.for.Clash", |
| 5 | + "license": "GPL-3.0-only", |
| 6 | + "architecture": { |
| 7 | + "64bit": { |
| 8 | + "url": "https://github.com/GUI-for-Cores/GUI.for.Clash/releases/download/v1.11.0/GUI.for.Clash-windows-amd64.zip", |
| 9 | + "hash": "2e62b4debc3dcfb5eb1c5551d6436479b6f33edf75ce8859df83f14ab189845b", |
| 10 | + "installer": { |
| 11 | + "script": [ |
| 12 | + ". \"$bucketsdir\\$bucket\\bin\\utils.ps1\"", |
| 13 | + "New-AppLink -App 'mihomo' -Target \"$persist_dir\\data\\mihomo\" -Name 'mihomo-windows-amd64'" |
| 14 | + ] |
| 15 | + } |
| 16 | + }, |
| 17 | + "arm64": { |
| 18 | + "url": "https://github.com/GUI-for-Cores/GUI.for.Clash/releases/download/v1.11.0/GUI.for.Clash-windows-arm64.zip", |
| 19 | + "hash": "4e937eb63354f1dbeea56c74e6edd909a7724d8064d76352f816cdb0009d5740", |
| 20 | + "installer": { |
| 21 | + "script": [ |
| 22 | + ". \"$bucketsdir\\$bucket\\bin\\utils.ps1\"", |
| 23 | + "New-AppLink -App 'mihomo' -Target \"$persist_dir\\data\\mihomo\" -Name 'mihomo-windows-arm64'" |
| 24 | + ] |
| 25 | + } |
| 26 | + } |
| 27 | + }, |
| 28 | + "checkver": "github", |
| 29 | + "autoupdate": { |
| 30 | + "architecture": { |
| 31 | + "64bit": { |
| 32 | + "url": "https://github.com/GUI-for-Cores/GUI.for.Clash/releases/download/v$version/GUI.for.Clash-windows-amd64.zip" |
| 33 | + }, |
| 34 | + "arm64": { |
| 35 | + "url": "https://github.com/GUI-for-Cores/GUI.for.Clash/releases/download/v$version/GUI.for.Clash-windows-arm64.zip" |
| 36 | + } |
| 37 | + } |
| 38 | + }, |
| 39 | + "depends": "mihomo", |
| 40 | + "post_install": [ |
| 41 | + "if (!(Test-Path \"$persist_dir\\data\\user.yaml\") -or !(Get-Item \"$persist_dir\\data\\user.yaml\").Length) {", |
| 42 | + " New-Item \"$persist_dir\\data\\user.yaml\" -ItemType File -Force -ErrorAction SilentlyContinue | Out-Null", |
| 43 | + " Set-Content -Path \"$persist_dir\\data\\user.yaml\" -Value \"lang: zh`nkernel:`n branch: main`nrollingRelease: false\"", |
| 44 | + "}" |
| 45 | + ], |
| 46 | + "pre_uninstall": [ |
| 47 | + "$bucket = $install.bucket", |
| 48 | + ". \"$bucketsdir\\$bucket\\bin\\utils.ps1\"", |
| 49 | + "Stop-App", |
| 50 | + "Remove-Item \"$env:APPDATA\\GUI.for.Clash.exe\" -Recurse -Force -ErrorAction SilentlyContinue | Out-Null" |
| 51 | + ], |
| 52 | + "persist": "data", |
| 53 | + "bin": "GUI.for.Clash.exe", |
| 54 | + "shortcuts": [ |
| 55 | + [ |
| 56 | + "GUI.for.Clash.exe", |
| 57 | + "GUI.for.Clash" |
| 58 | + ] |
| 59 | + ] |
| 60 | +} |
0 commit comments