git.iko.soy/rowtype-yoga/purescript-native
on golang help sign in
Windows bundle script, resolve #468
commitefa60cae4c34bb0812a0d81c280fdefd848c7af6 authorPhil Freeman <paf31@cantab.net> dateTue 4 Nov 2014, 20:59 (12 years ago) parentf10e96b
1 file changed+40
bundle/winbuild.sh+40
bundle/winbuild.shnew file+40
@@ -0,0 +1,40 @@
1+## This Windows-specific version of build.sh can be run in an msys environment
2+## to create a .tar.gz bundle for Windows users.
3+## msysgit contains all of the pieces needed to run this script.
4+
5+set -e
6+
7+SCRIPTPATH=$( cd "$(dirname "$0")" ; pwd -P )
8+
9+pushd ${SCRIPTPATH}
10+
11+# Make the staging directory
12+mkdir -p build/purescript/
13+
14+# Strip the binaries
15+strip ../dist/build/psc/psc.exe
16+strip ../dist/build/psci/psci.exe
17+strip ../dist/build/psc-make/psc-make.exe
18+strip ../dist/build/psc-docs/psc-docs.exe
19+
20+# Copy files to staging directory
21+cp ../dist/build/psc/psc.exe build/purescript/
22+cp ../dist/build/psci/psci.exe build/purescript/
23+cp ../dist/build/psc-make/psc-make.exe build/purescript/
24+cp ../dist/build/psc-docs/psc-docs.exe build/purescript/
25+cp README build/purescript/
26+cp ../LICENSE build/purescript/
27+
28+# Make the binary bundle
29+pushd build
30+tar -zcvf ../win64.tar.gz purescript
31+popd
32+
33+# Calculate the MD5 hash
34+md5sum win64.tar.gz > win64.md5
35+
36+# Remove the staging directory
37+rm -rf build/
38+
39+popd
40+