Safe Haskell | None |
---|
Biegunka.Source.Zip - functions to work with .zip archives as sources
Source layer
zip :: String -> FilePath -> Script Actions () -> Script Sources ()Source
Download and extract zip archive from the given url to specified path. Also executes attached script
zip "https://example.com/archive.zip" "zip/archive" $ do register "some/not/so/long/path" link "important.file" ".config"
- download and extract archive from https://example.com/archive.zip to ${HOME}/zip/archive
- link ${HOME}/zip/archive to ${HOME}/some/not/so/long/path
- link ${HOME}/zip/archive/important.file to ${HOME}/.config