35 lines
613 B
Text
35 lines
613 B
Text
|
|
#!/bin/bash
|
||
|
|
|
||
|
|
|
||
|
|
set -e
|
||
|
|
set -x
|
||
|
|
|
||
|
|
|
||
|
|
cd "$(dirname "$0")/.."
|
||
|
|
mkdir -p dist
|
||
|
|
|
||
|
|
uv pip install pyinstaller
|
||
|
|
|
||
|
|
COMMON_ARGS=(
|
||
|
|
--onefile
|
||
|
|
--add-data "$PWD/eris/tools.toml:eris"
|
||
|
|
--add-data "$PWD/eris/__main__.py:eris"
|
||
|
|
--add-data "$PWD/eris/tools.py:eris"
|
||
|
|
--hidden-import lzma
|
||
|
|
--hidden-import bz2
|
||
|
|
--collect-data lscolors
|
||
|
|
--collect-data fill3
|
||
|
|
--collect-data termstr
|
||
|
|
--distpath dist
|
||
|
|
--specpath build/pyinstaller
|
||
|
|
--workpath build/pyinstaller
|
||
|
|
--noconfirm
|
||
|
|
)
|
||
|
|
|
||
|
|
uv run pyinstaller "${COMMON_ARGS[@]}" --name eris eris/__main__.py
|
||
|
|
|
||
|
|
rm -rf build/pyinstaller
|
||
|
|
|
||
|
|
echo "Built:"
|
||
|
|
ls -lh dist/eris
|