#!/bin/sh

export LANG=C.UTF-8
cmake -S . -B $1 -DCMAKE_BUILD_TYPE=Release $2
cmake --build $1 --config Release -j
cd $1
cpack -G ZIP
mkdir -p /home/builder/cc3dsfs/build
cp cc3dsfs*.zip /home/builder/cc3dsfs/build
cd ..
