couch/package.sh

40 lines
660 B
Bash
Raw Normal View History

2021-03-16 13:33:49 -05:00
#!/usr/bin/env bash
set -e
cd `dirname $0`
mkdir -p dist
2021-03-31 13:45:17 -05:00
## Linux build
2021-03-16 13:33:49 -05:00
mkdir -p build
cd build
2021-03-31 13:45:17 -05:00
cmake -DCMAKE_BUILD_TYPE=Release ..
2021-03-16 13:33:49 -05:00
make
rm -f couch-linux.tgz
tar cvzf couch-linux.tgz \
couch \
CORRESPONDINGSOURCE.txt \
LICENSE
mv couch-linux.tgz ../dist
2021-03-31 13:45:17 -05:00
cd ..
## Windows build
mkdir -p build-win
cd build-win
x86_64-w64-mingw32-cmake -DCMAKE_BUILD_TYPE=Release ..
make
rm -rf couch-win.zip
cp ../binaries/*.dll .
zip couch-win.zip \
couch.exe \
CORRESPONDINGSOURCE.txt \
LICENSE \
*.dll
mv couch-win.zip ../dist
cd ..
2021-03-16 13:33:49 -05:00
2021-03-31 13:45:17 -05:00
## Source packages
git archive -o dist/couch-source.tgz master
git archive -o dist/couch-source.zip master