summaryrefslogtreecommitdiff
path: root/standalone/windows/build.sh
diff options
context:
space:
mode:
Diffstat (limited to 'standalone/windows/build.sh')
-rwxr-xr-xstandalone/windows/build.sh23
1 files changed, 14 insertions, 9 deletions
diff --git a/standalone/windows/build.sh b/standalone/windows/build.sh
index 86b28847c..91037eec3 100755
--- a/standalone/windows/build.sh
+++ b/standalone/windows/build.sh
@@ -58,20 +58,25 @@ if ! withcyg cabal build; then
Build/EvilLinker
fi
-# Build the installer
-cabal install nsis
-ghc -fforce-recomp --make Build/NullSoftInstaller.hs -fno-warn-tabs
-# Want to include cygwin programs in bundle, not others, since
-# it includes the cygwin libs that go with them.
-# Currently need an different version of rsync than the one from cygwin.
-# This rsync build originally comes from https://msys2.github.io/,
-# and it works with the ssh bundled with git for windows.
+# Get extra programs to bundle with git-annex.
+# These are msys2 programs, from https://msys2.github.io/.
+# Since git for windows uses msys2, and includes its libraries,
+# these programs will work well with it.
if [ ! -e rsync.exe ] || [ "$(sha1sum rsync.exe)" != "85cb7a4d16d274fcf8069b39042965ad26abd6aa" ]; then
rm -f rsync.exe || true
withcyg wget https://downloads.kitenet.net/git-annex/windows/assets/rsync.exe
withcyg chmod +x rsync.exe
fi
-PATH=".:/c/cygwin/bin:$PATH" Build/NullSoftInstaller.exe
+if [ ! -e wget.exe ] || [ "$(sha1sum wget.exe)" != "044380729200d5762965b10123a4f134806b01cf" ]; then
+ rm -f wget.exe || true
+ withcyg wget https://downloads.kitenet.net/git-annex/windows/assets/wget.exe
+ withcyg chmod +x wget.exe
+fi
+
+# Build the installer
+cabal install nsis
+ghc -fforce-recomp --make Build/NullSoftInstaller.hs -fno-warn-tabs
+Build/NullSoftInstaller.exe
rm -f last-incremental-failed