Lots of changes here... - Removed code using RecursivExtractor due to bad usage of /tmp Note: the code that used RecursiveExtractor may not have been in the previous commit - Created _functioning_ implementation of DebUnpacker - Restructured Project layout. TODO: - Possibly rewrite how the DebUnpacker works to have the file contents part of an entry. - Further restructuring and refactoring to make the code a little neater. - Add code for the final unpack steps Un-XZ -> untar -> write to disk - Add code to install - Add code for modified post-install pre-remove etc.. This is kinda needed to ensure proper system integration of new packages.
17 lines
470 B
C#
17 lines
470 B
C#
using System.Text.Json.Serialization;
|
|
|
|
namespace EdgeInstaller;
|
|
|
|
public sealed partial class Package
|
|
{
|
|
[JsonConstructor] // NOTE: without this it would be impossible to deserialise a Package
|
|
private Package(string PackageName, Version Version, int Size, string SHA256, string Filename)
|
|
{
|
|
this.PackageName = PackageName;
|
|
this.Version = Version;
|
|
this.Size = Size;
|
|
this.SHA256 = SHA256;
|
|
this.Filename = Filename;
|
|
}
|
|
}
|