c68ff8aeedc2b779ae42d745457ecd443e22e212
- Author
- Marc Cornellà <marc@mcornella.com>
- Committer
- GitHub <noreply@github.com>
- Date
Message
feat(extract): add support for .vsix files (VS Code extension) (#12643)
Diff
1diff --git a/plugins/extract/README.md b/plugins/extract/README.md
2index c8d98b2298e3b4350e4663a18c6c2a294bc5c198..e0f5715210960d369a890d55861140b01ce60cdd 100644
3--- a/plugins/extract/README.md
4+++ b/plugins/extract/README.md
5@@ -52,6 +52,7 @@ plugins=(... extract)
6 | `tlz` | Tarball with lzma compression |
7 | `txz` | Tarball with lzma2 compression |
8 | `tzst` | Tarball with zstd compression |
9+| `vsix` | VS Code extension zip file |
10 | `war` | Web Application archive (Java-based) |
11 | `whl` | Python wheel file |
12 | `xpi` | Mozilla XPI module file |
13diff --git a/plugins/extract/extract.plugin.zsh b/plugins/extract/extract.plugin.zsh
14index e2b3111d57a13e6e777fbee67de0eeeaf27c8228..f2eebf4d6461d59e4dd2958b734e060c859ae520 100644
15--- a/plugins/extract/extract.plugin.zsh
16+++ b/plugins/extract/extract.plugin.zsh
17@@ -76,7 +76,7 @@ EOF
18 (*.lz4) lz4 -d "$full_path" ;;
19 (*.lzma) unlzma "$full_path" ;;
20 (*.z) uncompress "$full_path" ;;
21- (*.zip|*.war|*.jar|*.ear|*.sublime-package|*.ipa|*.ipsw|*.xpi|*.apk|*.aar|*.whl) unzip "$full_path" ;;
22+ (*.zip|*.war|*.jar|*.ear|*.sublime-package|*.ipa|*.ipsw|*.xpi|*.apk|*.aar|*.whl|*.vsix) unzip "$full_path" ;;
23 (*.rar) unrar x -ad "$full_path" ;;
24 (*.rpm)
25 rpm2cpio "$full_path" | cpio --quiet -id ;;