Skip to content
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
24 changes: 0 additions & 24 deletions .github/workflows/copilot-setup-steps.yml

This file was deleted.

12 changes: 6 additions & 6 deletions src/WinGetSourceCreator/Helpers.cs
Original file line number Diff line number Diff line change
Expand Up @@ -86,12 +86,7 @@ public static void Unpack(string package, string outDir)
string pathToSDK = SDKDetector.Instance.LatestSDKBinPath;
string makeappxExecutable = Path.Combine(pathToSDK, "makeappx.exe");
string args = $"unpack /nv /p \"{package}\" /d \"{outDir}\"";
Process p = new Process
{
StartInfo = new ProcessStartInfo(makeappxExecutable, args)
};
p.Start();
p.WaitForExit();
RunCommand(makeappxExecutable, args);
}

public static void PackWithMappingFile(string outputPackage, string mappingFile)
Expand Down Expand Up @@ -138,6 +133,11 @@ public static void RunCommand(string command, string args, string? workingDirect
}
p.Start();
p.WaitForExit();

if (p.ExitCode != 0)
{
throw new Exception($"Command failed with exit code {p.ExitCode}: {command} {args}");
}
}

// If in the future we edit more elements, this should be a nice wrapper class.
Expand Down
Loading