Skip to content

Commit 910b407

Browse files
committed
Add Windows release script
1 parent 5aff7d7 commit 910b407

File tree

1 file changed

+19
-0
lines changed

1 file changed

+19
-0
lines changed

tools/make-windows-releases

Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,19 @@
1+
#!/bin/sh
2+
3+
set -eu
4+
5+
for arch in 'i686' 'x86_64'; do
6+
make -j CC=${arch}-w64-mingw32-gcc
7+
dir=xpack-$(git describe --tags | tr -d v)-windows-${arch}-bin
8+
rm -rf $dir ${dir}.zip
9+
mkdir $dir
10+
cp libxpack.dll libxpack.lib libxpack.h *.exe $dir
11+
${arch}-w64-mingw32-strip ${dir}/libxpack.dll ${dir}/*.exe
12+
for file in COPYING; do
13+
sed < $file > ${dir}/${file}.txt -e 's/$/\r/g'
14+
done
15+
for file in README.md; do
16+
sed < $file > ${dir}/${file} -e 's/$/\r/g'
17+
done
18+
(cd ${dir} && zip -r ../${dir}.zip .)
19+
done

0 commit comments

Comments
 (0)