-
Notifications
You must be signed in to change notification settings - Fork 26
/
UnrealCommander.yml
57 lines (55 loc) · 2.28 KB
/
UnrealCommander.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
51
52
53
54
55
56
57
version: 4.21.1626
description: Unreal Commander. Easy to use file manager
homepage: https://x-diesel.com
license: Freeware
changelog: https://x-diesel.com/?whatsnew
architecture:
64bit:
url: https://unrealcommander.org/download/evolution/uncomsetup4.21beta14x64(build1626).exe
hash: 41c383da9efe66a495391d65eaac6a0d1bf91037b1b599cf8601a7e467c111f4
32bit:
url: https://unrealcommander.org/download/evolution/uncomsetup4.21beta14x32(build1626).exe
hash: 2fd4eae1f21918f9e9965c35a86ed01342d844031d84088fff801f18237dbce2
innosetup: true
pre_install: |
Test-Persistence 'license.key', 'UncomFTP.ini'
Test-Persistence 'Uncom.ini' -ScriptBlock {
function replaceVal ($cont, $string, $rep) { return $cont -replace "^($string=).*$", "`${1}$rep" }
Write-Host 'No previous configuration found. Creating.' -f Yellow
$content = Get-Content $currentFileDir
$content = replaceVal $content 'ViewStyle' 'Hard day''s light (by Max Diesel)'
$content = replaceVal $content 'FirstRun' '0'
$content = replaceVal $content 'ToolbarGraphicsLibrary' 'Everaldo Coelho''s theme.tgl'
$content = replaceVal $content 'iniDirType' '0'
$content = replaceVal $content 'NewBuildInform' '0'
$content = replaceVal $content 'NewVersionCheckType' '1'
$split = $content.IndexOf('[Settings]')
$first = $content[0..$split]
$second = $content[($split+1)..($content.Length-1)]
$first += 'windowskin=Amakrits'
$new = $first + $second
Out-UTF8File $currentFileDir $new
}
Test-Persistence 'Uncom.bar' -ScriptBlock {
Invoke-Webrequest 'https://gist.githubusercontent.com/Ash258/e143436e2f9183a650424d635b535e51/raw/Uncom.bar' -o $currentFileDir
}
bin: Uncom.exe
shortcuts:
- - Uncom.exe
- Unreal Commander
persist:
- license.key
- UncomFTP.ini
- Uncom.bar
- Uncom.ini
checkver:
disable: true
url: https://x-diesel.com/?download
regex: Unreal Commander (?<pure>[\d.]+)(?:\s*(beta\s+\d+)\s*)?\(.*?(?<build>\d+)\)
replace: ${pure}.${build}
autoupdate:
architecture:
64bit:
url: https://unrealcommander.org/download/evolution/uncomsetup${majorVersion}.${minorVersion}x64(build${patchVersion}).exe
32bit:
url: https://unrealcommander.org/download/evolution/uncomsetup${majorVersion}.${minorVersion}x32(build${patchVersion}).exe