forked from purescript/purescript
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathwinbuild.sh
More file actions
40 lines (29 loc) · 1.04 KB
/
winbuild.sh
File metadata and controls
40 lines (29 loc) · 1.04 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
## This Windows-specific version of build.sh can be run in an msys environment
## to create a .tar.gz bundle for Windows users.
## msysgit contains all of the pieces needed to run this script.
set -e
SCRIPTPATH=$( cd "$(dirname "$0")" ; pwd -P )
pushd ${SCRIPTPATH}
# Make the staging directory
mkdir -p build/purescript/
# Strip the binaries
strip ../dist/build/psc/psc.exe
strip ../dist/build/psci/psci.exe
strip ../dist/build/psc-make/psc-make.exe
strip ../dist/build/psc-docs/psc-docs.exe
# Copy files to staging directory
cp ../dist/build/psc/psc.exe build/purescript/
cp ../dist/build/psci/psci.exe build/purescript/
cp ../dist/build/psc-make/psc-make.exe build/purescript/
cp ../dist/build/psc-docs/psc-docs.exe build/purescript/
cp README build/purescript/
cp ../LICENSE build/purescript/
# Make the binary bundle
pushd build
tar -zcvf ../win64.tar.gz purescript
popd
# Calculate the MD5 hash
md5sum win64.tar.gz > win64.md5
# Remove the staging directory
rm -rf build/
popd