Skip to content

Commit 2fc015c

Browse files
authored
Update pre_install script
1 parent 1c8211a commit 2fc015c

File tree

1 file changed

+15
-5
lines changed

1 file changed

+15
-5
lines changed

bucket/twinkle-tray.json

Lines changed: 15 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,15 +1,23 @@
11
{
22
"version": "1.16.5",
3-
"description": "A monitor brightness controller based on DDC/CI",
4-
"homepage": "https://github.com/xanderfrangos/twinkle-tray",
5-
"license": "MIT",
3+
"description": "Easily manage the brightness of your monitors in Windows from the system tray",
4+
"homepage": "https://twinkletray.com/",
5+
"license": {
6+
"identifier": "MIT",
7+
"url": "https://github.com/xanderfrangos/twinkle-tray/blob/master/LICENSE"
8+
},
69
"architecture": {
710
"64bit": {
811
"url": "https://github.com/xanderfrangos/twinkle-tray/releases/download/v1.16.5/Twinkle.Tray.v1.16.5.exe#/dl.7z",
912
"hash": "924e96dbf7f8ab0749e9c9f8032b0f6caeda4e417f457df30e69bd8fc3223cbc",
1013
"pre_install": [
1114
"Expand-7zipArchive \"$dir\\`$PLUGINSDIR\\app-64.7z\" \"$dir\"",
12-
"Remove-Item \"$dir\\`$PLUGINSDIR\", \"$dir\\`$R0\" -Force -Recurse"
15+
"Remove-Item \"$dir\\`$PLUGINSDIR\" -Force -Recurse",
16+
"if (Test-Path \"$dir\\`$R0\") {",
17+
" Remove-Item \"$dir\\`$R0\" -Force -Recurse",
18+
"} elseif (Test-Path \"$dir\\Uninst*\") {",
19+
" Remove-Item \"$dir\\Uninst*\" -Force",
20+
"}"
1321
]
1422
}
1523
},
@@ -25,7 +33,9 @@
2533
"Twinkle Tray"
2634
]
2735
],
28-
"checkver": "github",
36+
"checkver": {
37+
"github": "https://github.com/xanderfrangos/twinkle-tray"
38+
},
2939
"autoupdate": {
3040
"architecture": {
3141
"64bit": {

0 commit comments

Comments
 (0)