We can now build the CLI in a cross platform way (linux/mac/windows) all from the Makefile with relocatable VENV, DIST, and TOX directories. We can also optionally build in a docker container on platforms where docker is available.
12 lines
269 B
Bash
Executable File
12 lines
269 B
Bash
Executable File
#!/bin/bash
|
|
|
|
CURRDIR=$(dirname "${0}")
|
|
source ${CURRDIR}/common.sh
|
|
|
|
echo "Building binary..."
|
|
${BUILDDIR}/${VENV}/${BIN}/pyinstaller${EXE} \
|
|
--workpath=${BUILDDIR}/${DIST}/build \
|
|
--distpath=${BUILDDIR}/${DIST} \
|
|
${BASEDIR}/binary.spec
|
|
echo "Binary built."
|