Windows: If 64 bit git is installed, use it when installing git-annex.
However, rsync still won't work with 64 bit git and this is still not the documented way to install it. So, if both 64 and 32 are installed, go with 32. And if neither git can be found, default to 32.
This commit is contained in:
parent
fe83429451
commit
112bb82fc2
3 changed files with 16 additions and 1 deletions
|
@ -87,8 +87,17 @@ installer = "git-annex-installer.exe"
|
|||
uninstaller :: FilePath
|
||||
uninstaller = "git-annex-uninstall.exe"
|
||||
|
||||
gitInstallDir32 :: Exp FilePath
|
||||
gitInstallDir32 = fromString "$PROGRAMFILES\\Git"
|
||||
|
||||
gitInstallDir64 :: Exp FilePath
|
||||
gitInstallDir64 = fromString "$PROGRAMFILES64\\Git"
|
||||
|
||||
gitInstallDir :: Exp FilePath
|
||||
gitInstallDir = fromString "$PROGRAMFILES\\Git"
|
||||
gitInstallDir = fileExists gitInstallDir32 ?
|
||||
( gitInstallDir32
|
||||
, fileExists gitInstallDir64 ? (gitInstallDir64, gitInstallDir32)
|
||||
)
|
||||
|
||||
-- This intentionally has a different name than git-annex or
|
||||
-- git-annex-webapp, since it is itself treated as an executable file.
|
||||
|
|
|
@ -36,6 +36,9 @@ git-annex (7.20181212) UNRELEASED; urgency=medium
|
|||
* The .git/annex/misctmp directory is no longer used and git-annex will
|
||||
delete anything lingering in there after it's 1 week old.
|
||||
* Estimated time to completion display shortened from eg "1h1m1s" to "1h1m".
|
||||
* Windows: If 64 bit git is installed, use it when installing git-annex.
|
||||
(However, rsync still won't work and this is still not the documented way
|
||||
to install it.)
|
||||
|
||||
-- Joey Hess <id@joeyh.name> Tue, 18 Dec 2018 12:24:52 -0400
|
||||
|
||||
|
|
|
@ -6,3 +6,6 @@ The problem came upon reboot when I got "Windows Script Host" error "Can not fin
|
|||
P.S. I really hope that someone eventually takes time to make git-annex become available for Windows from conda-forge.
|
||||
|
||||
[[!meta author=yoh]]
|
||||
|
||||
> Made the NSIS gitInstallDir probe which of PROGRAMFILES/Git
|
||||
> and PROGRAMFILES/Git exists, and use whichever. [[done]] --[[Joey]]
|
||||
|
|
Loading…
Add table
Reference in a new issue