Skip to content

Commit

Permalink
installer: add 7zip archive to FileType (#235)
Browse files Browse the repository at this point in the history
  • Loading branch information
devmatteini committed Oct 27, 2024
1 parent 3aed434 commit 18e5628
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 0 deletions.
1 change: 1 addition & 0 deletions src/installer/file.rs
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,7 @@ pub enum FileType {
Debian,
TarArchive(Compression),
ZipArchive,
SevenZipArchive,
CompressedFile(Compression),
ExecutableFile,
}
Expand Down
1 change: 1 addition & 0 deletions src/installer/install.rs
Original file line number Diff line number Diff line change
Expand Up @@ -38,6 +38,7 @@ fn find_installer_for(
FileType::TarArchive(Compression::Xz) => TarArchiveInstaller::xz,
FileType::TarArchive(Compression::Bz2) => TarArchiveInstaller::bz2,
FileType::ZipArchive => ZipArchiveInstaller::run,
FileType::SevenZipArchive => todo!(),
FileType::CompressedFile(Compression::Gz) => CompressedFileInstaller::gz,
FileType::CompressedFile(Compression::Xz) => CompressedFileInstaller::xz,
FileType::CompressedFile(Compression::Bz2) => CompressedFileInstaller::bz2,
Expand Down

0 comments on commit 18e5628

Please sign in to comment.