Skip to content
This repository was archived by the owner on Oct 18, 2021. It is now read-only.

Commit 71d67da

Browse files
authored
Use stack install to copy binary files (#267)
1 parent 4eeba0c commit 71d67da

File tree

1 file changed

+3
-10
lines changed

1 file changed

+3
-10
lines changed

tools/deploy-build.sh

+3-10
Original file line numberDiff line numberDiff line change
@@ -6,19 +6,12 @@ if [[ $# == 0 ]]; then
66
exec $0 amc amc-prove amulet-lsp
77
fi
88

9-
build () {
10-
stack build \
11-
--ghc-options "-optc-static -optl-static -fhide-source-paths" \
12-
--flag amuletml:amc-prove-server $FAST
13-
}
14-
15-
build
169
rm -rfv result/
1710
mkdir -p result/
1811

19-
for arg in $*; do
20-
cp .stack-work/dist/*/"Cabal-3.0.1.0/build/$arg/$arg" result/
21-
done
12+
stack install --local-bin-path=result \
13+
--ghc-options "-optc-static -optl-static -fhide-source-paths" \
14+
--flag amuletml:amc-prove-server $FAST
2215

2316
if which upx &>/dev/null; then
2417
upx result/*

0 commit comments

Comments
 (0)