Maintainer | Brandon Chinn <brandonchinn178@gmail.com> |
---|---|
Stability | experimental |
Portability | portable |
Safe Haskell | None |
Language | Haskell2010 |
Defines functions that should be used in a self-extractable executable.
Documentation
extractTo :: FilePath -> IO () Source #
Extract the self-bundled executable to the given path.
extractTo "dir" -- will extract to $CWD/dir extractTo "/usr/local/lib"
withExtractToTemp :: (FilePath -> IO ()) -> IO () Source #
Extract the self-bundled executable to a temporary path.
bundle :: FilePath -> FilePath -> IO () Source #
Bundle the given directory into the executable with the given name.
For example, to bundle the static/
directory in the executable named install-files
:
bundle "./install-files" "./static/"
withExtractToTemp' :: (Path Abs Dir -> IO ()) -> IO () Source #
Same as withExtractToTemp
, except using the Path
library.