Skip to content

Useful Patterns

WXY edited this page May 25, 2020 · 1 revision

Here we provide some ubiquitous config snippets that can improve any config

Unzipping on windows

Windows actually has builtin support for zip archives. The following transform allows you to leverage this capability installing any other programs.

[transform]
name = unzip
include = file_path /\.zip$/i
exec = C:\Windows\System32\WindowsPowerShell\v1.0\powershell.exe
args = -command "Expand-Archive -Force -Path '{from}' -DestinationPath '{to}'"
consume = yes