1## This script can be run on any supported OS to create a binary .tar.gz
3## For Windows, msysgit contains all of the pieces needed to run this script.
10 echo "Usage: build.sh osname"
14pushd $(stack path --project-root)
16LOCAL_INSTALL_ROOT=$(stack path --local-install-root)
25# Make the staging directory
26mkdir -p bundle/build/purescript
28# Strip the binaries, and copy them to the staging directory
29for BIN in psc psci psc-docs psc-publish psc-bundle psc-ide-server psc-ide-client
31 FULL_BIN="$LOCAL_INSTALL_ROOT/bin/${BIN}${BIN_EXT}"
32 if [ "$OS" != "win64" ]
36 cp "$FULL_BIN" bundle/build/purescript
39# Copy extra files to the staging directory
40cp bundle/README bundle/build/purescript/
41cp LICENSE bundle/build/purescript/
42cp INSTALL.md bundle/build/purescript/
44stack list-dependencies >bundle/build/purescript/dependencies.txt
46# Make the binary bundle
47pushd bundle/build > /dev/null
48tar -zcvf ../${OS}.tar.gz purescript
51# Calculate the SHA hash
54 # msys/mingw does not include shasum. :(
55 SHASUM="openssl dgst -sha1"
60$SHASUM bundle/${OS}.tar.gz > bundle/${OS}.sha
62# Remove the staging directory
keysesc to close
- j k
- move down, up
- enter
- open
- esc
- back, or up a level
- 1 2 3 4
- readme, files, commits, refs
- /
- filter
- y
- copy the clone command
- c
- compare the chosen commit with another (or shift-click both)
- ?
- show or hide this list