NOISSUE Flatten gui and logic libraries into MultiMC
This commit is contained in:
43
launcher/updater/testdata/1.json
vendored
Normal file
43
launcher/updater/testdata/1.json
vendored
Normal file
@ -0,0 +1,43 @@
|
||||
{
|
||||
"ApiVersion": 0,
|
||||
"Id": 1,
|
||||
"Name": "1.0.1",
|
||||
"Files": [
|
||||
{
|
||||
"Path": "fileOne",
|
||||
"Sources": [
|
||||
{
|
||||
"SourceType": "http",
|
||||
"Url": "@TEST_DATA_URL@/fileOneA"
|
||||
}
|
||||
],
|
||||
"Executable": true,
|
||||
"Perms": 493,
|
||||
"MD5": "9eb84090956c484e32cb6c08455a667b"
|
||||
},
|
||||
{
|
||||
"Path": "fileTwo",
|
||||
"Sources": [
|
||||
{
|
||||
"SourceType": "http",
|
||||
"Url": "@TEST_DATA_URL@/fileTwo"
|
||||
}
|
||||
],
|
||||
"Executable": false,
|
||||
"Perms": 644,
|
||||
"MD5": "38f94f54fa3eb72b0ea836538c10b043"
|
||||
},
|
||||
{
|
||||
"Path": "fileThree",
|
||||
"Sources": [
|
||||
{
|
||||
"SourceType": "http",
|
||||
"Url": "@TEST_DATA_URL@/fileThree"
|
||||
}
|
||||
],
|
||||
"Executable": false,
|
||||
"Perms": "750",
|
||||
"MD5": "f12df554b21e320be6471d7154130e70"
|
||||
}
|
||||
]
|
||||
}
|
31
launcher/updater/testdata/2.json
vendored
Normal file
31
launcher/updater/testdata/2.json
vendored
Normal file
@ -0,0 +1,31 @@
|
||||
{
|
||||
"ApiVersion": 0,
|
||||
"Id": 1,
|
||||
"Name": "1.0.1",
|
||||
"Files": [
|
||||
{
|
||||
"Path": "fileOne",
|
||||
"Sources": [
|
||||
{
|
||||
"SourceType": "http",
|
||||
"Url": "@TEST_DATA_URL@/fileOneB"
|
||||
}
|
||||
],
|
||||
"Executable": true,
|
||||
"Perms": 493,
|
||||
"MD5": "42915a71277c9016668cce7b82c6b577"
|
||||
},
|
||||
{
|
||||
"Path": "fileTwo",
|
||||
"Sources": [
|
||||
{
|
||||
"SourceType": "http",
|
||||
"Url": "@TEST_DATA_URL@/fileTwo"
|
||||
}
|
||||
],
|
||||
"Executable": false,
|
||||
"Perms": 644,
|
||||
"MD5": "38f94f54fa3eb72b0ea836538c10b043"
|
||||
}
|
||||
]
|
||||
}
|
23
launcher/updater/testdata/channels.json
vendored
Normal file
23
launcher/updater/testdata/channels.json
vendored
Normal file
@ -0,0 +1,23 @@
|
||||
{
|
||||
"format_version": 0,
|
||||
"channels": [
|
||||
{
|
||||
"id": "develop",
|
||||
"name": "Develop",
|
||||
"description": "The channel called \"develop\"",
|
||||
"url": "@TEST_DATA_URL@"
|
||||
},
|
||||
{
|
||||
"id": "stable",
|
||||
"name": "Stable",
|
||||
"description": "It's stable at least",
|
||||
"url": "@TEST_DATA_URL@"
|
||||
},
|
||||
{
|
||||
"id": "42",
|
||||
"name": "The Channel",
|
||||
"description": "This is the channel that is going to answer all of your questions",
|
||||
"url": "https://dent.me/tea"
|
||||
}
|
||||
]
|
||||
}
|
23
launcher/updater/testdata/errorChannels.json
vendored
Normal file
23
launcher/updater/testdata/errorChannels.json
vendored
Normal file
@ -0,0 +1,23 @@
|
||||
{
|
||||
"format_version": 0,
|
||||
"channels": [
|
||||
{
|
||||
"id": "",
|
||||
"name": "Develop",
|
||||
"description": "The channel called \"develop\"",
|
||||
"url": "http://example.org/stuff"
|
||||
},
|
||||
{
|
||||
"id": "stable",
|
||||
"name": "",
|
||||
"description": "It's stable at least",
|
||||
"url": "ftp://username@host/path/to/stuff"
|
||||
},
|
||||
{
|
||||
"id": "42",
|
||||
"name": "The Channel",
|
||||
"description": "This is the channel that is going to answer all of your questions",
|
||||
"url": ""
|
||||
}
|
||||
]
|
||||
}
|
1
launcher/updater/testdata/fileOneA
vendored
Normal file
1
launcher/updater/testdata/fileOneA
vendored
Normal file
@ -0,0 +1 @@
|
||||
stuff
|
3
launcher/updater/testdata/fileOneB
vendored
Normal file
3
launcher/updater/testdata/fileOneB
vendored
Normal file
@ -0,0 +1,3 @@
|
||||
stuff
|
||||
|
||||
more stuff that came in the new version
|
1
launcher/updater/testdata/fileThree
vendored
Normal file
1
launcher/updater/testdata/fileThree
vendored
Normal file
@ -0,0 +1 @@
|
||||
this is yet another file
|
1
launcher/updater/testdata/fileTwo
vendored
Normal file
1
launcher/updater/testdata/fileTwo
vendored
Normal file
@ -0,0 +1 @@
|
||||
some other stuff
|
22
launcher/updater/testdata/garbageChannels.json
vendored
Normal file
22
launcher/updater/testdata/garbageChannels.json
vendored
Normal file
@ -0,0 +1,22 @@
|
||||
{
|
||||
"format_version": 0,
|
||||
"channels": [
|
||||
{
|
||||
"id": "develop",
|
||||
"name": "Develop",
|
||||
"description": "The channel called \"develop\"",
|
||||
aa "url": "http://example.org/stuff"
|
||||
},
|
||||
a "id": "stable",
|
||||
"name": "Stable",
|
||||
"description": "It's stable at least",
|
||||
"url": "ftp://username@host/path/to/stuff"
|
||||
},
|
||||
{
|
||||
"id": "42"f
|
||||
"name": "The Channel",
|
||||
"description": "This is the channel that is going to answer all of your questions",
|
||||
"url": "https://dent.me/tea"
|
||||
}
|
||||
]
|
||||
}
|
9
launcher/updater/testdata/index.json
vendored
Normal file
9
launcher/updater/testdata/index.json
vendored
Normal file
@ -0,0 +1,9 @@
|
||||
{
|
||||
"ApiVersion": 0,
|
||||
"Versions": [
|
||||
{ "Id": 0, "Name": "1.0.0" },
|
||||
{ "Id": 1, "Name": "1.0.1" },
|
||||
{ "Id": 2, "Name": "1.0.2" },
|
||||
{ "Id": 3, "Name": "1.0.3" }
|
||||
]
|
||||
}
|
5
launcher/updater/testdata/noChannels.json
vendored
Normal file
5
launcher/updater/testdata/noChannels.json
vendored
Normal file
@ -0,0 +1,5 @@
|
||||
{
|
||||
"format_version": 0,
|
||||
"channels": [
|
||||
]
|
||||
}
|
11
launcher/updater/testdata/oneChannel.json
vendored
Normal file
11
launcher/updater/testdata/oneChannel.json
vendored
Normal file
@ -0,0 +1,11 @@
|
||||
{
|
||||
"format_version": 0,
|
||||
"channels": [
|
||||
{
|
||||
"id": "develop",
|
||||
"name": "Develop",
|
||||
"description": "The channel called \"develop\"",
|
||||
"url": "http://example.org/stuff"
|
||||
}
|
||||
]
|
||||
}
|
17
launcher/updater/testdata/tst_DownloadTask-test_writeInstallScript.xml
vendored
Normal file
17
launcher/updater/testdata/tst_DownloadTask-test_writeInstallScript.xml
vendored
Normal file
@ -0,0 +1,17 @@
|
||||
<update version="3">
|
||||
<install>
|
||||
<file>
|
||||
<source>sourceOne</source>
|
||||
<dest>destOne</dest>
|
||||
<mode>0777</mode>
|
||||
</file>
|
||||
<file>
|
||||
<source>MultiMC.exe</source>
|
||||
<dest>M/u/l/t/i/M/C/e/x/e</dest>
|
||||
<mode>0644</mode>
|
||||
</file>
|
||||
</install>
|
||||
<uninstall>
|
||||
<file>toDelete.abc</file>
|
||||
</uninstall>
|
||||
</update>
|
Reference in New Issue
Block a user