Update Packager.cs
This commit is contained in:
parent
f08a1da67e
commit
5c71c57d82
@ -72,6 +72,10 @@ public class BrikPackage : IDisposable {
|
|||||||
|
|
||||||
public static class Packager {
|
public static class Packager {
|
||||||
public static void Pack(string sourceFolder, string outputPath, byte key) {
|
public static void Pack(string sourceFolder, string outputPath, byte key) {
|
||||||
|
string? directory = Path.GetDirectoryName(outputPath);
|
||||||
|
if (!string.IsNullOrEmpty(directory)) {
|
||||||
|
Directory.CreateDirectory(directory);
|
||||||
|
}
|
||||||
using var memoryStream = new MemoryStream();
|
using var memoryStream = new MemoryStream();
|
||||||
var writerOptions = new WriterOptions(CompressionType.LZMA);
|
var writerOptions = new WriterOptions(CompressionType.LZMA);
|
||||||
|
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user