feat(updater): support non zipped updater (#1174)

This commit is contained in:
Tony
2024-04-30 22:48:04 +08:00
committed by GitHub
parent f39586bcb4
commit 1fa4d30eab
6 changed files with 210 additions and 175 deletions
+3
View File
@@ -54,6 +54,7 @@ pub enum Error {
/// UTF8 Errors in signature.
#[error("The signature {0} could not be decoded, please check if it is a valid base64 string. The signature must be the contents of the `.sig` file generated by the Tauri bundler, as a string.")]
SignatureUtf8(String),
#[cfg(all(target_os = "windows", feature = "zip"))]
/// `zip` errors.
#[error(transparent)]
Extract(#[from] zip::result::ZipError),
@@ -62,6 +63,8 @@ pub enum Error {
TempDirNotOnSameMountPoint,
#[error("binary for the current target not found in the archive")]
BinaryNotFoundInArchive,
#[error("invalid updater binary format")]
InvalidUpdaterFormat,
#[error(transparent)]
Http(#[from] http::Error),
#[error(transparent)]