public Task UnpackPackage(string packageFilePath, string unpackedDirectory, CancellationToken cancellationToken = default, IProgress <ProgressData> progress = null) { var wrapper = new PackUnPackProgressWrapper(progress); var arguments = $"unpack /d \"{unpackedDirectory}\" /p \"{packageFilePath}\" /v /o"; return(this.RunMakeAppx(arguments, cancellationToken, wrapper.Callback)); }
public Task UnpackPackage(string sourceMsixPath, string unpackedDirectory, bool validate, CancellationToken cancellationToken = default, IProgress <ProgressData> progress = null) { var wrapper = new PackUnPackProgressWrapper(progress); var arguments = $"unpack /d \"{unpackedDirectory}\" /p \"{sourceMsixPath}\" /v /o"; if (!validate) { arguments += " /nv"; } return(this.RunMakeAppx(arguments, cancellationToken, wrapper.Callback)); }
public Task PackPackageFiles(string mappingFile, string packageFilePath, bool compress, bool validate, CancellationToken cancellationToken = default, IProgress <ProgressData> progress = null) { var arguments = $"pack /f \"{mappingFile}\" /p \"{packageFilePath}\" /v /o"; if (!compress) { arguments += " /nc"; } if (!validate) { arguments += " /nv"; } var wrapper = new PackUnPackProgressWrapper(progress); return(this.RunMakeAppx(arguments, cancellationToken, wrapper.Callback)); }
public Task PackPackageDirectory(string unpackedDirectory, string targetMsixPath, bool compress, bool validate, CancellationToken cancellationToken = default, IProgress <ProgressData> progress = null) { var arguments = $"pack /d \"{unpackedDirectory}\" /p \"{targetMsixPath}\" /v /o"; if (!compress) { arguments += " /nc"; } if (!validate) { arguments += " /nv"; } var wrapper = new PackUnPackProgressWrapper(progress); return(this.RunMakeAppx(arguments, cancellationToken, wrapper.Callback)); }