Skip to content

Commit

Permalink
Add Windows release script
Browse files Browse the repository at this point in the history
  • Loading branch information
ebiggers committed May 14, 2016
1 parent 5aff7d7 commit 910b407
Showing 1 changed file with 19 additions and 0 deletions.
19 changes: 19 additions & 0 deletions tools/make-windows-releases
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
#!/bin/sh

set -eu

for arch in 'i686' 'x86_64'; do
make -j CC=${arch}-w64-mingw32-gcc
dir=xpack-$(git describe --tags | tr -d v)-windows-${arch}-bin
rm -rf $dir ${dir}.zip
mkdir $dir
cp libxpack.dll libxpack.lib libxpack.h *.exe $dir
${arch}-w64-mingw32-strip ${dir}/libxpack.dll ${dir}/*.exe
for file in COPYING; do
sed < $file > ${dir}/${file}.txt -e 's/$/\r/g'
done
for file in README.md; do
sed < $file > ${dir}/${file} -e 's/$/\r/g'
done
(cd ${dir} && zip -r ../${dir}.zip .)
done

0 comments on commit 910b407

Please sign in to comment.