Skip to content

Commit 8d03974

Browse files
committed
stuff
1 parent d603419 commit 8d03974

71 files changed

Lines changed: 1345 additions & 0 deletions

File tree

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

DiffCreator/DiffCreator.csproj

Lines changed: 23 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,23 @@
1+
<Project Sdk="Microsoft.NET.Sdk">
2+
3+
<PropertyGroup>
4+
<OutputType>Exe</OutputType>
5+
<TargetFramework>net6.0</TargetFramework>
6+
<ImplicitUsings>enable</ImplicitUsings>
7+
<Nullable>enable</Nullable>
8+
</PropertyGroup>
9+
10+
<ItemGroup>
11+
<PackageReference Include="QuestPatcher.Axml">
12+
<Version>1.0.2</Version>
13+
</PackageReference>
14+
<PackageReference Include="Sewer56.VCDiff">
15+
<Version>3.4.0</Version>
16+
</PackageReference>
17+
</ItemGroup>
18+
19+
<ItemGroup>
20+
<ProjectReference Include="..\ComputerUtils\ComputerUtils\ComputerUtils.csproj" />
21+
</ItemGroup>
22+
23+
</Project>

DiffCreator/Program.cs

Lines changed: 42 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,42 @@
1+
using System.Diagnostics;
2+
using System.IO.Compression;
3+
using System.Reflection;
4+
using ComputerUtils.ConsoleUi;
5+
using ComputerUtils.Logging;
6+
using ComputerUtils.Updating;
7+
8+
Logger.displayLogInConsole = true;
9+
Updater updater = new Updater("0.1.0", "https://github.com/ComputerElite/QuestAppVersionSwitcher", "QAVS diff creator", Assembly.GetExecutingAssembly().Location);
10+
if (args.Length == 1 && args[0] == "--update")
11+
{
12+
Logger.Log("Starting in update mode");
13+
updater.Update();
14+
return;
15+
}
16+
updater.UpdateAssistant();
17+
18+
if (!File.Exists("xdelta3.exe"))
19+
{
20+
DownloadProgressUI d = new DownloadProgressUI();
21+
d.StartDownload("https://github.com/jmacd/xdelta-gpl/releases/download/v3.0.10/xdelta3-x86_64-3.0.10.exe.zip", "xdelta3.exe.zip");
22+
foreach(ZipArchiveEntry e in ZipFile.OpenRead("xdelta3.exe.zip").Entries) if(e.Name.ToLower().Contains("xdelta")) e.ExtractToFile("xdelta3.exe", true);
23+
}
24+
25+
Console.WriteLine();
26+
Console.WriteLine();
27+
Console.WriteLine("Expected folder structure:");
28+
29+
Console.WriteLine("<supplied directory>");
30+
Console.WriteLine(" - app.apk");
31+
Console.WriteLine(" - obb/");
32+
Console.WriteLine(" - obb1.obb");
33+
Console.WriteLine(" - obb2.obb");
34+
Console.WriteLine(" - ...");
35+
36+
string source = ConsoleUiController.QuestionString("Source version directory: ");
37+
string target = ConsoleUiController.QuestionString("Target version directory: ");
38+
if(!target.EndsWith(Path.DirectorySeparatorChar)) target += Path.DirectorySeparatorChar;
39+
string output = target + "diffs" + Path.DirectorySeparatorChar + DateTime.Now.Ticks + Path.DirectorySeparatorChar;
40+
if (!Directory.Exists(output)) Directory.CreateDirectory(output);
41+
QuestAppVersionSwitcher.DiffDowngrading.DiffCreator.CreateDiff(source, target, output);
42+
Logger.Log("Diff created in " + output);
60 KB
Binary file not shown.
20.5 KB
Binary file not shown.
17.5 KB
Binary file not shown.
105 KB
Binary file not shown.
42.7 KB
Binary file not shown.
Lines changed: 229 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,229 @@
1+
{
2+
"runtimeTarget": {
3+
"name": ".NETCoreApp,Version=v6.0",
4+
"signature": ""
5+
},
6+
"compilationOptions": {},
7+
"targets": {
8+
".NETCoreApp,Version=v6.0": {
9+
"DiffCreator/1.0.0": {
10+
"dependencies": {
11+
"ComputerUtils": "1.0.0",
12+
"QuestPatcher.Axml": "1.0.2",
13+
"Sewer56.VCDiff": "3.4.0"
14+
},
15+
"runtime": {
16+
"DiffCreator.dll": {}
17+
}
18+
},
19+
"AForge/2.2.5": {
20+
"runtime": {
21+
"lib/AForge.dll": {
22+
"assemblyVersion": "2.2.5.0",
23+
"fileVersion": "2.2.5.0"
24+
}
25+
}
26+
},
27+
"AForge.Video/2.2.5": {
28+
"dependencies": {
29+
"AForge": "2.2.5"
30+
},
31+
"runtime": {
32+
"lib/AForge.Video.dll": {
33+
"assemblyVersion": "2.2.5.0",
34+
"fileVersion": "2.2.5.0"
35+
}
36+
}
37+
},
38+
"AForge.Video.DirectShow/2.2.5": {
39+
"dependencies": {
40+
"AForge.Video": "2.2.5"
41+
},
42+
"runtime": {
43+
"lib/AForge.Video.DirectShow.dll": {
44+
"assemblyVersion": "2.2.5.0",
45+
"fileVersion": "2.2.5.0"
46+
}
47+
}
48+
},
49+
"Microsoft.IO.RecyclableMemoryStream/2.1.3": {
50+
"runtime": {
51+
"lib/net5.0/Microsoft.IO.RecyclableMemoryStream.dll": {
52+
"assemblyVersion": "2.1.3.0",
53+
"fileVersion": "2.1.3.0"
54+
}
55+
}
56+
},
57+
"Microsoft.Win32.SystemEvents/6.0.0": {
58+
"runtime": {
59+
"lib/net6.0/Microsoft.Win32.SystemEvents.dll": {
60+
"assemblyVersion": "6.0.0.0",
61+
"fileVersion": "6.0.21.52210"
62+
}
63+
},
64+
"runtimeTargets": {
65+
"runtimes/win/lib/net6.0/Microsoft.Win32.SystemEvents.dll": {
66+
"rid": "win",
67+
"assetType": "runtime",
68+
"assemblyVersion": "6.0.0.0",
69+
"fileVersion": "6.0.21.52210"
70+
}
71+
}
72+
},
73+
"MimeTypeMapOfficial/1.0.17": {
74+
"runtime": {
75+
"lib/netcoreapp3.1/MimeTypes.dll": {
76+
"assemblyVersion": "2.3.2.0",
77+
"fileVersion": "2.3.2.0"
78+
}
79+
}
80+
},
81+
"QRCoder/1.4.3": {
82+
"runtime": {
83+
"lib/net6.0/QRCoder.dll": {
84+
"assemblyVersion": "1.4.3.0",
85+
"fileVersion": "1.4.3.0"
86+
}
87+
}
88+
},
89+
"QuestPatcher.Axml/1.0.2": {
90+
"runtime": {
91+
"lib/netstandard2.1/QuestPatcher.Axml.dll": {
92+
"assemblyVersion": "1.0.1.0",
93+
"fileVersion": "1.0.1.0"
94+
}
95+
}
96+
},
97+
"Sewer56.VCDiff/3.4.0": {
98+
"dependencies": {
99+
"Microsoft.IO.RecyclableMemoryStream": "2.1.3"
100+
},
101+
"runtime": {
102+
"lib/net5.0/VCDiff.dll": {
103+
"assemblyVersion": "3.4.0.0",
104+
"fileVersion": "3.4.0.0"
105+
}
106+
}
107+
},
108+
"System.Drawing.Common/6.0.0": {
109+
"dependencies": {
110+
"Microsoft.Win32.SystemEvents": "6.0.0"
111+
},
112+
"runtime": {
113+
"lib/net6.0/System.Drawing.Common.dll": {
114+
"assemblyVersion": "6.0.0.0",
115+
"fileVersion": "6.0.21.52210"
116+
}
117+
},
118+
"runtimeTargets": {
119+
"runtimes/unix/lib/net6.0/System.Drawing.Common.dll": {
120+
"rid": "unix",
121+
"assetType": "runtime",
122+
"assemblyVersion": "6.0.0.0",
123+
"fileVersion": "6.0.21.52210"
124+
},
125+
"runtimes/win/lib/net6.0/System.Drawing.Common.dll": {
126+
"rid": "win",
127+
"assetType": "runtime",
128+
"assemblyVersion": "6.0.0.0",
129+
"fileVersion": "6.0.21.52210"
130+
}
131+
}
132+
},
133+
"ComputerUtils/1.0.0": {
134+
"dependencies": {
135+
"AForge.Video": "2.2.5",
136+
"AForge.Video.DirectShow": "2.2.5",
137+
"MimeTypeMapOfficial": "1.0.17",
138+
"QRCoder": "1.4.3",
139+
"System.Drawing.Common": "6.0.0"
140+
},
141+
"runtime": {
142+
"ComputerUtils.dll": {}
143+
}
144+
}
145+
}
146+
},
147+
"libraries": {
148+
"DiffCreator/1.0.0": {
149+
"type": "project",
150+
"serviceable": false,
151+
"sha512": ""
152+
},
153+
"AForge/2.2.5": {
154+
"type": "package",
155+
"serviceable": true,
156+
"sha512": "sha512-clkumhM9DggqIzEXAHgVLeWO4arG5YfoPr7J4jfjJx35AoeEIJSSm49J25bwp/9mXQYLwi7y1Wunc8qgYJsGxg==",
157+
"path": "aforge/2.2.5",
158+
"hashPath": "aforge.2.2.5.nupkg.sha512"
159+
},
160+
"AForge.Video/2.2.5": {
161+
"type": "package",
162+
"serviceable": true,
163+
"sha512": "sha512-XqzcOXtBUagEPRqg/00oayxlCPmxP4284SdM62mVotsNoD03fs19BrzdMBfhUOOYPyd0B/IXH7tEWnSDmc2gxA==",
164+
"path": "aforge.video/2.2.5",
165+
"hashPath": "aforge.video.2.2.5.nupkg.sha512"
166+
},
167+
"AForge.Video.DirectShow/2.2.5": {
168+
"type": "package",
169+
"serviceable": true,
170+
"sha512": "sha512-pEch6felU/RGAbl0A7yjaQjsGxwiRFU9R+qBqR92wQo++XhzPLeQaZHnAPIBYaG7MfoqtjgCDkK4z3Tra4VQ3w==",
171+
"path": "aforge.video.directshow/2.2.5",
172+
"hashPath": "aforge.video.directshow.2.2.5.nupkg.sha512"
173+
},
174+
"Microsoft.IO.RecyclableMemoryStream/2.1.3": {
175+
"type": "package",
176+
"serviceable": true,
177+
"sha512": "sha512-h1hjJ7E0ZMTbutiUXmv07rs+cTST9+w+iDNZginmArfZr47GjHevwBQK/LBcAkHm+w+IHaBd9Lsuf5dv8DnDAg==",
178+
"path": "microsoft.io.recyclablememorystream/2.1.3",
179+
"hashPath": "microsoft.io.recyclablememorystream.2.1.3.nupkg.sha512"
180+
},
181+
"Microsoft.Win32.SystemEvents/6.0.0": {
182+
"type": "package",
183+
"serviceable": true,
184+
"sha512": "sha512-hqTM5628jSsQiv+HGpiq3WKBl2c8v1KZfby2J6Pr7pEPlK9waPdgEO6b8A/+/xn/yZ9ulv8HuqK71ONy2tg67A==",
185+
"path": "microsoft.win32.systemevents/6.0.0",
186+
"hashPath": "microsoft.win32.systemevents.6.0.0.nupkg.sha512"
187+
},
188+
"MimeTypeMapOfficial/1.0.17": {
189+
"type": "package",
190+
"serviceable": true,
191+
"sha512": "sha512-f6DSQSYTckCjq1ifRj0fSLiEmDv+22uo4+JjTeb3MNZK3Ban1XLjA+bTQtD+/7x2NBEAGzBLYIRpS1IU2OgIAw==",
192+
"path": "mimetypemapofficial/1.0.17",
193+
"hashPath": "mimetypemapofficial.1.0.17.nupkg.sha512"
194+
},
195+
"QRCoder/1.4.3": {
196+
"type": "package",
197+
"serviceable": true,
198+
"sha512": "sha512-fWuFqjm8GTlEb2GqBl3Hi8HZZeZQwBSHxvRPtPjyNbT82H0ff0JwavKRBmMaXCno1Av6McPC8aJzri0Mj2w9Jw==",
199+
"path": "qrcoder/1.4.3",
200+
"hashPath": "qrcoder.1.4.3.nupkg.sha512"
201+
},
202+
"QuestPatcher.Axml/1.0.2": {
203+
"type": "package",
204+
"serviceable": true,
205+
"sha512": "sha512-q3mlJQWTswHgvi1fh2/G7Yjc5fiGW1tMKxaVhEtEWkJWqkfkvrnqOh+5SXQGdG6xpTbQaqhYEkcDAShRIeN0oQ==",
206+
"path": "questpatcher.axml/1.0.2",
207+
"hashPath": "questpatcher.axml.1.0.2.nupkg.sha512"
208+
},
209+
"Sewer56.VCDiff/3.4.0": {
210+
"type": "package",
211+
"serviceable": true,
212+
"sha512": "sha512-q0MQGbutMUv+SARxYS3w/qdZvcBPbRNt06pJLNM6TytcwwrkPvxxKYtgIldt1NmySp04SAydY8+85zF9+2opag==",
213+
"path": "sewer56.vcdiff/3.4.0",
214+
"hashPath": "sewer56.vcdiff.3.4.0.nupkg.sha512"
215+
},
216+
"System.Drawing.Common/6.0.0": {
217+
"type": "package",
218+
"serviceable": true,
219+
"sha512": "sha512-NfuoKUiP2nUWwKZN6twGqXioIe1zVD0RIj2t976A+czLHr2nY454RwwXs6JU9Htc6mwqL6Dn/nEL3dpVf2jOhg==",
220+
"path": "system.drawing.common/6.0.0",
221+
"hashPath": "system.drawing.common.6.0.0.nupkg.sha512"
222+
},
223+
"ComputerUtils/1.0.0": {
224+
"type": "project",
225+
"serviceable": false,
226+
"sha512": ""
227+
}
228+
}
229+
}
17 KB
Binary file not shown.
145 KB
Binary file not shown.

0 commit comments

Comments
 (0)