forked from Ash258/Shovel-Ash258
-
Notifications
You must be signed in to change notification settings - Fork 0
/
mRemoteNG-pre.json
66 lines (66 loc) · 2.56 KB
/
mRemoteNG-pre.json
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
58
59
60
61
62
63
64
65
66
{
"version": "1.77.1.27713",
"description": "Tabbed, multi-protocol remote connections manager. Fork of mRemote.",
"homepage": "https://mremoteng.org",
"license": {
"identifier": "GPL-2.0-only",
"url": "https://github.com/mRemoteNG/mRemoteNG/blob/develop/COPYING.TXT"
},
"url": "https://github.com/mRemoteNG/mRemoteNG/releases/download/v1.77.1/mRemoteNG-Portable-1.77.1.27713.zip",
"hash": "49ca9646e42123f0258caf547b29577b1b24ab9e3effe1b8df6ba250d7ed0de0",
"pre_install": [
"function SettingProperty ($key, $value) {",
" return \" <setting name=\"\"$key\"\">$value</setting>\"",
"}",
"function Persist-Check ($file, $content) {",
" if (-not (Test-Path \"$persist_dir\\$file\")) {",
" Write-Host 'File' $file 'does not exists. Creating.' -f Yellow",
" Set-Content \"$dir\\$file\" ($content -join \"`r`n\") -Encoding Ascii",
" }",
"}",
"$SETTINGS = @{",
" 'CheckForUpdatesOnStartup' = 'False'",
" 'CheckForUpdatesAsked' = 'True'",
"}",
"$CONT = @(",
" '<?xml version=\"1.0\" encoding=\"utf-8\"?>'",
" '<settings>'",
" ' <localSettings>'",
")",
"$SETTINGS.Keys | ForEach-Object { $CONT += SettingProperty $_ $SETTINGS[$_] }",
"$CONT += ' </localSettings>'",
"$CONT += '</settings>'",
"",
"Persist-Check 'mRemoteNG.settings' $CONT",
"$confCONT = @(",
" '<?xml version=\"1.0\" encoding=\"utf-8\"?>'",
" '<mrng:Connections xmlns:mrng=\"https://mremoteng.org\" Name=\"Connections\" Export=\"false\" EncryptionEngine=\"AES\" BlockCipherMode=\"GCM\" KdfIterations=\"1000\" FullFileEncryption=\"false\" Protected=\"ivoI7siIZakTBRM676LK7RTH9N2RgT8xngMykDB/xs630qEm8sO8qkFbsO1VewsD2LiptqRME4vJEBqCjEZyFTc1\" ConfVersion=\"2.6\" />'",
")",
"Persist-Check 'confCons.xml' $confCONT"
],
"bin": [
"mRemoteNG.exe",
"PuTTYNG.exe"
],
"shortcuts": [
[
"mRemoteNG.exe",
"mRemoteNG"
],
[
"PuTTYNG.exe",
"PuTTYNG"
]
],
"persist": [
"confCons.xml",
"mRemoteNG.settings"
],
"checkver": {
"url": "https://github.com/mRemoteNG/mRemoteNG/releases",
"regex": "(?sm)Pre-release.*?mRemoteNG-Portable-([\\d.]+)\\.zip"
},
"autoupdate": {
"url": "https://github.com/mRemoteNG/mRemoteNG/releases/download/v$matchHead/mRemoteNG-Portable-$version.zip"
}
}