From 199acd484727ec2ccc982d387d1f9a53ab1f6a39 Mon Sep 17 00:00:00 2001 From: joelnir Date: Tue, 16 May 2017 18:28:33 +0200 Subject: [PATCH] Added build configuration file and build instructions. --- build_instructions.txt | 6 ++++++ setup_exe.py | 11 +++++++++++ 2 files changed, 17 insertions(+) create mode 100644 build_instructions.txt create mode 100644 setup_exe.py diff --git a/build_instructions.txt b/build_instructions.txt new file mode 100644 index 0000000..a329bc3 --- /dev/null +++ b/build_instructions.txt @@ -0,0 +1,6 @@ +--- Build Instructions --- +Using py2exe and python 3.4 + +From the main directory run "python setup_exe.py py2exe". +This creates a new "dist" folder with the SplitNotes .exe and needed data files. +Zip up this folder for distribution. \ No newline at end of file diff --git a/setup_exe.py b/setup_exe.py new file mode 100644 index 0000000..49bdfa4 --- /dev/null +++ b/setup_exe.py @@ -0,0 +1,11 @@ +from distutils.core import setup +import py2exe + +setup( + windows=[r'main_window.py'], + options = {'py2exe': {'bundle_files': 2, 'compressed': True}}, + zipfile = None, + data_files = [('resources', ['resources/green.png']), + ('resources', ['resources/red.png']), + ('resources', ['resources/settings_icon.png'])] + ) \ No newline at end of file