Skip to content

Commit

Permalink
add cx_freeze build script
Browse files Browse the repository at this point in the history
  • Loading branch information
Elias authored and Elias committed Feb 22, 2024
1 parent 28492a1 commit 7e02a5a
Show file tree
Hide file tree
Showing 2 changed files with 22 additions and 0 deletions.
2 changes: 2 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -10,3 +10,5 @@ dumpster/
*.bat
.vscode/
demo
build
dist_exe
20 changes: 20 additions & 0 deletions setup.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
import sys
from cx_Freeze import setup, Executable
from src.rosinenpicker.start import __version__

# Dependencies are automatically detected, but it might need fine tuning.
build_exe_options = {
"excludes": ["pdfs/", "configs/", "testconfigs/", ".github/", "helper/", "dumpster/", "*.bat", "test"],
}

# base="Win32GUI" should be used only for Windows GUI app
base = "Win32GUI" if sys.platform == "win32" else None

setup(
name="rosinenpicker",
version=__version__,
description="A package for picking the juciest text morsels out of a pile of documents.",
options={"build_exe": build_exe_options},
executables=[Executable("src/rosinenpicker/start.py", base=base)],
)

0 comments on commit 7e02a5a

Please sign in to comment.