diff options
author | Joey Hess <joey@kitenet.net> | 2013-05-14 17:15:02 -0400 |
---|---|---|
committer | Joey Hess <joey@kitenet.net> | 2013-05-14 17:24:00 -0400 |
commit | b3372adb7e6c6dca8809e15278fd83c5ca394322 (patch) | |
tree | 8b8f80988334ceb8563d7b641d8c1b49d119fb8f /Build/NullSoftInstaller.hs | |
parent | 052cf65368432ff081e8f917222daa24f7abd05e (diff) |
add check for git
Diffstat (limited to 'Build/NullSoftInstaller.hs')
-rwxr-xr-x | Build/NullSoftInstaller.hs | 23 |
1 files changed, 22 insertions, 1 deletions
diff --git a/Build/NullSoftInstaller.hs b/Build/NullSoftInstaller.hs index 6aa76de04..8b1a5e91c 100755 --- a/Build/NullSoftInstaller.hs +++ b/Build/NullSoftInstaller.hs @@ -2,6 +2,18 @@ -
- git-annex should already be built by cabal, and ssh and rsync,
- as well as cygwin libraries, already installed.
+ -
+ - This uses the Haskell nsis package (cabal install nsis)
+ - to generate a .nsi file, which is then used to produce
+ - git-annex-installer.exe
+ -
+ - The installer includes git-annex, and utilities it uses, with the
+ - exception of git. The user needs to install git separately,
+ - and the installer checks for that.
+ -
+ - Copyright 2013 Joey Hess <joey@kitenet.net>
+ -
+ - Licensed under the GNU GPL version 3 or higher.
-}
{-# LANGUAGE OverloadedStrings #-}
@@ -10,9 +22,13 @@ import Development.NSIS main = writeFile "git-annex.nsi" $ nsis $ do
name "git-annex"
- outFile "git-annex.exe"
+ outFile "git-annex-installer.exe"
installDir "$DESKTOP/git-annex"
requestExecutionLevel User
+ iff_ (fileExists "$WINDIR/git.exe")
+ (return ()) $ do
+ messageBox [MB_ABORTRETRYIGNORE]
+ "git does not seem to be installed. git-annex can't be used without git!"
-- Pages to display
page Directory -- Pick where to install
page InstFiles -- Give a progress bar while installing
@@ -22,7 +38,12 @@ main = writeFile "git-annex.nsi" $ nsis $ do file [] "dist/build/git-annex/git-annex.exe"
fromcygwin "rsync.exe"
fromcygwin "ssh.exe"
+ fromcygwin "sha256.exe"
+ fromcygwin "sha1.exe"
+ fromcygwin "sha512.exe"
+ fromcygwin "sha384.exe"
section "DLLS" [] $ mapM_ fromcygwin
+ setOutPath "$INSTDIR"
[ "cygwin1.dll"
, "cygasn1-8.dll"
, "cygheimbase-1.dll"
|