still need stack-windows.yaml to specify newer versions of Win32 and unix-compat
This commit is contained in:
parent
f953f19e68
commit
25854c73db
5 changed files with 38 additions and 8 deletions
|
@ -39,8 +39,9 @@ for Windows. One way is to download it from
|
||||||
Put it somewhere in PATH.
|
Put it somewhere in PATH.
|
||||||
|
|
||||||
Then open Git Bash, [[clone git-annex|download]], and in git-annex's source
|
Then open Git Bash, [[clone git-annex|download]], and in git-annex's source
|
||||||
tree, run "stack build" to download and
|
tree, run "stack build --stack-yaml stack-windows.yaml" to download and
|
||||||
build all dependencies and git-annex. "stack install" will install git-annex.
|
build all dependencies and git-annex. "stack install --stack-yaml
|
||||||
|
stack-windows.yaml" will install git-annex.
|
||||||
|
|
||||||
(To build the git-annex installer, you also need to install the NullSoft
|
(To build the git-annex installer, you also need to install the NullSoft
|
||||||
installer system. The script `standalone/windows/build.sh` is
|
installer system. The script `standalone/windows/build.sh` is
|
||||||
|
|
|
@ -381,7 +381,7 @@ Executable git-annex
|
||||||
|
|
||||||
if (os(windows))
|
if (os(windows))
|
||||||
Build-Depends:
|
Build-Depends:
|
||||||
Win32 (>= 2.6.1.0),
|
Win32 (== 2.3.1.1),
|
||||||
Win32-extras,
|
Win32-extras,
|
||||||
unix-compat (>= 0.5),
|
unix-compat (>= 0.5),
|
||||||
setenv,
|
setenv,
|
||||||
|
|
28
stack-windows.yaml
Normal file
28
stack-windows.yaml
Normal file
|
@ -0,0 +1,28 @@
|
||||||
|
flags:
|
||||||
|
git-annex:
|
||||||
|
concurrentoutput: true
|
||||||
|
production: true
|
||||||
|
assistant: true
|
||||||
|
pairing: true
|
||||||
|
network-uri: true
|
||||||
|
s3: true
|
||||||
|
testsuite: true
|
||||||
|
webdav: true
|
||||||
|
torrentparser: true
|
||||||
|
webapp: true
|
||||||
|
magicmime: false
|
||||||
|
dbus: false
|
||||||
|
android: false
|
||||||
|
androidsplice: false
|
||||||
|
packages:
|
||||||
|
- '.'
|
||||||
|
extra-deps:
|
||||||
|
- aws-0.17.1
|
||||||
|
- bloomfilter-2.0.1.0
|
||||||
|
- torrent-10000.1.1
|
||||||
|
- yesod-default-1.2.0
|
||||||
|
- Win32-2.6.1.0
|
||||||
|
- unix-compat-0.5
|
||||||
|
explicit-setup-deps:
|
||||||
|
git-annex: true
|
||||||
|
resolver: lts-9.10
|
|
@ -23,4 +23,4 @@ extra-deps:
|
||||||
- yesod-default-1.2.0
|
- yesod-default-1.2.0
|
||||||
explicit-setup-deps:
|
explicit-setup-deps:
|
||||||
git-annex: true
|
git-annex: true
|
||||||
resolver: lts-9.10
|
resolver: lts-9.9
|
||||||
|
|
|
@ -64,16 +64,17 @@ getextra rsync.exe 85cb7a4d16d274fcf8069b39042965ad26abd6aa
|
||||||
stack --version
|
stack --version
|
||||||
|
|
||||||
# Build git-annex
|
# Build git-annex
|
||||||
stack setup
|
stack setup --stack-yaml stack-windows.yaml
|
||||||
stack install -j 1 --no-haddock --local-bin-path .
|
stack install -j 1 --stack-yaml stack-windows.yaml --no-haddock \
|
||||||
|
--local-bin-path .
|
||||||
|
|
||||||
# Build the installer
|
# Build the installer
|
||||||
withcygpreferred stack ghc --no-haddock \
|
withcygpreferred stack ghc --stack-yaml stack-windows.yaml --no-haddock \
|
||||||
--package nsis Build/NullSoftInstaller.hs
|
--package nsis Build/NullSoftInstaller.hs
|
||||||
./Build/NullSoftInstaller
|
./Build/NullSoftInstaller
|
||||||
|
|
||||||
mkdir -p dist
|
mkdir -p dist
|
||||||
stack ghc --no-haddock Build/BuildVersion.hs
|
stack ghc --stack-yaml stack-windows.yaml --no-haddock Build/BuildVersion.hs
|
||||||
./Build/BuildVersion > dist/build-version
|
./Build/BuildVersion > dist/build-version
|
||||||
|
|
||||||
# Test git-annex
|
# Test git-annex
|
||||||
|
|
Loading…
Add table
Reference in a new issue