Skip to content

Commit c37ed3b

Browse files
authored
Feature: Added support for opening Jar archives in Files (#13722)
1 parent 61fc5ac commit c37ed3b

File tree

2 files changed

+2
-1
lines changed

2 files changed

+2
-1
lines changed

src/Files.App (Package)/Package.appxmanifest

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -140,6 +140,7 @@
140140
<uap:FileType>.7z</uap:FileType>
141141
<uap:FileType>.rar</uap:FileType>
142142
<uap:FileType>.tar</uap:FileType>
143+
<uap:FileType>.jar</uap:FileType>
143144
</uap:SupportedFileTypes>
144145
<uap:Logo>assets\archives\ExtensionIcon.png</uap:Logo>
145146
</uap:FileTypeAssociation>

src/Files.Shared/Helpers/FileExtensionHelpers.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -65,7 +65,7 @@ public static bool IsBrowsableZipFile(string? filePath, out string? ext)
6565
}
6666

6767
// Only extensions we want to browse
68-
ext = new[] { ".zip", ".7z", ".rar", ".tar", ".gz", ".lzh" }
68+
ext = new[] { ".zip", ".7z", ".rar", ".tar", ".gz", ".lzh", ".jar" }
6969
.FirstOrDefault(x => filePath.Contains(x, StringComparison.OrdinalIgnoreCase));
7070

7171
return ext is not null;

0 commit comments

Comments
 (0)