add check for git
This commit is contained in:
parent
73052a1c90
commit
6cbca01261
1 changed files with 22 additions and 1 deletions
|
@ -2,6 +2,18 @@
|
||||||
-
|
-
|
||||||
- git-annex should already be built by cabal, and ssh and rsync,
|
- git-annex should already be built by cabal, and ssh and rsync,
|
||||||
- as well as cygwin libraries, already installed.
|
- 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 #-}
|
{-# LANGUAGE OverloadedStrings #-}
|
||||||
|
@ -10,9 +22,13 @@ import Development.NSIS
|
||||||
|
|
||||||
main = writeFile "git-annex.nsi" $ nsis $ do
|
main = writeFile "git-annex.nsi" $ nsis $ do
|
||||||
name "git-annex"
|
name "git-annex"
|
||||||
outFile "git-annex.exe"
|
outFile "git-annex-installer.exe"
|
||||||
installDir "$DESKTOP/git-annex"
|
installDir "$DESKTOP/git-annex"
|
||||||
requestExecutionLevel User
|
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
|
-- Pages to display
|
||||||
page Directory -- Pick where to install
|
page Directory -- Pick where to install
|
||||||
page InstFiles -- Give a progress bar while installing
|
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"
|
file [] "dist/build/git-annex/git-annex.exe"
|
||||||
fromcygwin "rsync.exe"
|
fromcygwin "rsync.exe"
|
||||||
fromcygwin "ssh.exe"
|
fromcygwin "ssh.exe"
|
||||||
|
fromcygwin "sha256.exe"
|
||||||
|
fromcygwin "sha1.exe"
|
||||||
|
fromcygwin "sha512.exe"
|
||||||
|
fromcygwin "sha384.exe"
|
||||||
section "DLLS" [] $ mapM_ fromcygwin
|
section "DLLS" [] $ mapM_ fromcygwin
|
||||||
|
setOutPath "$INSTDIR"
|
||||||
[ "cygwin1.dll"
|
[ "cygwin1.dll"
|
||||||
, "cygasn1-8.dll"
|
, "cygasn1-8.dll"
|
||||||
, "cygheimbase-1.dll"
|
, "cygheimbase-1.dll"
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue