From 64a371f232052e550d3c4832545fcfb6dab11d8e Mon Sep 17 00:00:00 2001 From: Melody Horn Date: Fri, 22 Feb 2019 04:25:28 -0700 Subject: deploy --- .gitignore | 2 ++ requirements.txt | 1 + setup.py | 19 +++++++++++++++++++ vidslice.bat | 1 - 4 files changed, 22 insertions(+), 1 deletion(-) create mode 100644 setup.py delete mode 100644 vidslice.bat diff --git a/.gitignore b/.gitignore index f377c56..5f4c439 100644 --- a/.gitignore +++ b/.gitignore @@ -1,2 +1,4 @@ venv .idea +build +*.exe diff --git a/requirements.txt b/requirements.txt index cffc1a2..3e4d57b 100644 --- a/requirements.txt +++ b/requirements.txt @@ -1 +1,2 @@ wxPython==4.0.4 +cx_Freeze diff --git a/setup.py b/setup.py new file mode 100644 index 0000000..9aac94a --- /dev/null +++ b/setup.py @@ -0,0 +1,19 @@ +from cx_Freeze import setup, Executable + +# Dependencies are automatically detected, but it might need +# fine tuning. +buildOptions = dict(packages=[], excludes=[]) + +import sys + +base = 'Win32GUI' if sys.platform == 'win32' else None + +executables = [ + Executable('vidslice.py', base=base) +] + +setup(name='vidslice', + version='1.0', + description='', + options=dict(build_exe=buildOptions), + executables=executables) diff --git a/vidslice.bat b/vidslice.bat deleted file mode 100644 index 139fe3b..0000000 --- a/vidslice.bat +++ /dev/null @@ -1 +0,0 @@ -D:\Melody\Projects\vidslice\venv\Scripts\python.exe D:/Melody/Projects/vidslice/vidslice.py %1 -- cgit v1.2.3