-
Notifications
You must be signed in to change notification settings - Fork 26
/
CosMOS.yml
50 lines (48 loc) · 1.64 KB
/
CosMOS.yml
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
41
42
43
44
45
46
47
48
49
50
version: 5.1.5
description: CosMOS Advanced. Brand new self-service gamehacking tool
homepage: https://www.cheathappens.com/cosmos.asp
license: Freeware
url: https://www.cheathappens.com/CoSMOS_Advanced_515.zip
hash: 1e849b697568763c99e4c5d94847c4a06714e4d891760c95c7bdbe55ddcebea3
pre_install: |
Test-Persistence 'Layout.xml' ''
Test-Persistence 'Settings.xml' -ScriptBlock {
# File Structure
$delimeter = "`r`n"
$entryTemplate = ' <%%key%%>%%value%%</%%key%%>'
$start = @(
'<?xml version="1.0" encoding="utf-8"?>',
'<Settings xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">',
' <Misc>'
)
$end = @(' </Misc>', '</Settings>')
$ents = @()
$entries = @{
'ProjectsFolder' = "$dir\Projects\";
'CheckForUpdates' = 'false';
'Theme' = 'MetroDark';
}
foreach ($entry in $entries.Keys) {
$ent = ($entryTemplate -replace '%%key%%', $entry) -replace '%%value%%', $entries.Item($entry)
$ents += $ent
}
# Create file string
$finalFile = $start -join $delimeter
$finalFile += $delimeter
$finalFile += $ents -join $delimeter
$finalFile += $delimeter
$finalFile += $end -join $delimeter
Out-UTF8File -LiteralPath "$dir\$file" -Value $finalFile
}
shortcuts:
- - CoSMOS.exe
- CoSMOS
persist:
- Projects
- Layout.xml
- Settings.xml
checkver:
url: https://www.cheathappens.com/cosmos_changelog5.txt
regex: CoSMOS Advanced Changelog ([\d.]+)
autoupdate:
url: https://www.cheathappens.com/CoSMOS_Advanced_$cleanVersion.zip