git.iko.soy/rowtype-yoga/purescript-native
on golang help sign in
Merge pull request #2000 from purescript/winbuild-stack
9f292cfGary Burgess
bundle/winbuild-stack.shnew file+46
@@ -0,0 +1,46 @@
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} > /dev/null
10+
11+# Make the staging directory
12+mkdir -p build/purescript/
13+
14+# Strip the binaries
15+strip $APPDATA/local/bin/psc.exe
16+strip $APPDATA/local/bin/psci.exe
17+strip $APPDATA/local/bin/psc-docs.exe
18+strip $APPDATA/local/bin/psc-publish.exe
19+strip $APPDATA/local/bin/psc-bundle.exe
20+strip $APPDATA/local/bin/psc-ide-server.exe
21+strip $APPDATA/local/bin/psc-ide-client.exe
22+
23+# Copy files to staging directory
24+cp $APPDATA/local/bin/psc.exe build/purescript/
25+cp $APPDATA/local/bin/psci.exe build/purescript/
26+cp $APPDATA/local/bin/psc-docs.exe build/purescript/
27+cp $APPDATA/local/bin/psc-publish.exe build/purescript/
28+cp $APPDATA/local/bin/psc-bundle.exe build/purescript/
29+cp $APPDATA/local/bin/psc-ide-server.exe build/purescript/
30+cp $APPDATA/local/bin/psc-ide-client.exe build/purescript/
31+cp README build/purescript/
32+cp ../LICENSE build/purescript/
33+cp ../INSTALL.md build/purescript/
34+
35+# Make the binary bundle
36+pushd build > /dev/null
37+tar -zcvf ../win64.tar.gz purescript
38+popd > /dev/null
39+
40+# Calculate the MD5 hash
41+md5sum win64.tar.gz > win64.md5
42+
43+# Remove the staging directory
44+rm -rf build/
45+
46+popd > /dev/null