-
Notifications
You must be signed in to change notification settings - Fork 0
/
update.ini
29 lines (24 loc) · 977 Bytes
/
update.ini
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
[Rainmeter]
Update=1000
SavePosition=0
OnRefreshAction=[!ToggleConfig "#RootConfig#\AlwaysFine" "AlwaysFine.ini"][!CommandMeasure updateCommand1 "Run"]
[Variables]
@Include=servicekey.inc
[Metadata]
Name=update
[updateCommand1]
Measure=Plugin
Plugin=RunCommand
Parameter="wget #updateLink#'&'download=1 -OutFile AlwaysFine_Update.zip;$pubHash = '#hashCheck#';$fileHash = Get-FileHash AlwaysFine_Update.zip -Algorithm md5;if($fileHash.Hash -eq $pubHash){;expand-archive -Force -path 'AlwaysFine_Update.zip';}else{;exit;}"
Program=powershell.exe
FinishAction=[!CommandMeasure updateCommand2 "Run"]
[updateCommand2]
Measure=Plugin
Plugin=RunCommand
Parameter=cd ../ && move /y AlwaysFine/AlwaysFine_Update && rmdir /s /q AlwaysFine && ren AlwaysFine_Update AlwaysFine
FinishAction=[!Log "Reload skin to apply changes" Warning][!ActivateConfig "AlwaysFine" "AlwaysFine.ini"][!ToggleConfig "#RootConfig#\AlwaysFine" "update.ini"]
[meter]
Hidden=1
Meter=String
Text=
AntiAlias=1