Skip to content

Commit

Permalink
Add make target to bundle code as an executable
Browse files Browse the repository at this point in the history
  • Loading branch information
ad-si committed May 8, 2023
1 parent 672bfa0 commit f0ce3d7
Showing 1 changed file with 24 additions and 0 deletions.
24 changes: 24 additions & 0 deletions makefile
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
.PHONY: help
help: makefile
@tail -n +4 makefile | grep ".PHONY"


pyFiles := $(shell find core/perspectra -name '*.py')


# TODO: Slow startup time on first execution
.PHONY: build-pyinstaller
build-pyinstaller: core/perspectra/__main__.py $(pyFiles)
poetry run pyinstaller $< \
--paths core/perspectra \
--noconfirm \
--name perspectra


# # TODO: Does not work yet due to import errors
# .PHONY: build-nuitka
# build-nuitka: core/perspectra/__main__.py $(pyFiles)
# poetry run python -m nuitka \
# --standalone \
# --output-filename=perspectra \
# $<

0 comments on commit f0ce3d7

Please sign in to comment.