diff options
author | Joey Hess <id@joeyh.name> | 2013-05-14 17:01:45 -0500 |
---|---|---|
committer | Joey Hess <id@joeyh.name> | 2013-05-14 17:01:45 -0500 |
commit | 052cf65368432ff081e8f917222daa24f7abd05e (patch) | |
tree | 63662df32513e847e23f65dcd3cfa2c02aa6416f /Build/NullSoftInstaller.hs | |
parent | c9b3272783904b7b593d17198a90654e67e1de0e (diff) |
untested nullsoft installer generator
Diffstat (limited to 'Build/NullSoftInstaller.hs')
-rwxr-xr-x | Build/NullSoftInstaller.hs | 46 |
1 files changed, 46 insertions, 0 deletions
diff --git a/Build/NullSoftInstaller.hs b/Build/NullSoftInstaller.hs new file mode 100755 index 000000000..6aa76de04 --- /dev/null +++ b/Build/NullSoftInstaller.hs @@ -0,0 +1,46 @@ +{- Generates a NullSoft installer program for git-annex on Windows.
+ -
+ - git-annex should already be built by cabal, and ssh and rsync,
+ - as well as cygwin libraries, already installed.
+ -}
+
+{-# LANGUAGE OverloadedStrings #-}
+
+import Development.NSIS
+
+main = writeFile "git-annex.nsi" $ nsis $ do
+ name "git-annex"
+ outFile "git-annex.exe"
+ installDir "$DESKTOP/git-annex"
+ requestExecutionLevel User
+ -- Pages to display
+ page Directory -- Pick where to install
+ page InstFiles -- Give a progress bar while installing
+ -- Groups of files to install
+ section "programs" [] $ do
+ setOutPath "$INSTDIR"
+ file [] "dist/build/git-annex/git-annex.exe"
+ fromcygwin "rsync.exe"
+ fromcygwin "ssh.exe"
+ section "DLLS" [] $ mapM_ fromcygwin
+ [ "cygwin1.dll"
+ , "cygasn1-8.dll"
+ , "cygheimbase-1.dll"
+ , "cygroken-18.dll"
+ , "cygcom_err-2.dll"
+ , "cygheimntlm-0.dll"
+ , "cygsqlite3-0.dll"
+ , "cygcrypt-0.dll"
+ , "cyghx509-5.dll"
+ , "cygssp-0.dll"
+ , "cygcrypto-1.0.0.dll"
+ , "cygiconv-2.dll"
+ , "cyggcc_s-1.dll"
+ , "cygintl-8.dll"
+ , "cygwind-0.dll"
+ , "cyggssapi-3.dll"
+ , "cygkrb5-26.dll"
+ , "cygz.dll"
+ ]
+ where
+ fromcygwin f = file [] (str $ "/bin/" ++ f)
|