Add sketchy build script

This commit is contained in:
Luke Murphy 2020-05-03 18:11:20 +02:00
parent e730cfec55
commit 60275a475e
No known key found for this signature in database
GPG Key ID: 5E2EF5A63E3718CC
2 changed files with 13 additions and 0 deletions

1
.gitignore vendored
View File

@ -8,3 +8,4 @@ index.html
pip-wheel-metadata/ pip-wheel-metadata/
*.pdf *.pdf
*.css *.css
*.pyz

12
build.sh Executable file
View File

@ -0,0 +1,12 @@
#!/bin/bash
# Ultra wild west single binary compiling
# https://github.com/linkedin/shiv
shiv --output-file=distribusi.pyz \
--site-packages=.venv/lib/python3.7/site-packages/ \
--entry-point=distribusi.cli.cli_entrypoint \
--python="/usr/bin/env python3" \
--compressed \
--compile-pyc \
.