Skip to content

Commit

Permalink
add setup stuff, build script, icon
Browse files Browse the repository at this point in the history
  • Loading branch information
Kadachii committed Nov 21, 2022
1 parent c2e5732 commit 96fea70
Show file tree
Hide file tree
Showing 18 changed files with 28 additions and 20 deletions.
3 changes: 2 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
@@ -1 +1,2 @@
venv
venv
build
4 changes: 4 additions & 0 deletions build.bat
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
call venv/Scripts/activate.bat
cd src
python setup.py build -b ../build --build-exe ../build/Knuckles_to_OSC
cd ..
19 changes: 0 additions & 19 deletions setup.py

This file was deleted.

File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
2 changes: 2 additions & 0 deletions src/debug_mode.bat
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
@echo off
start Knuckles_to_OSC.exe --debug
Binary file added src/icon.ico
Binary file not shown.
File renamed without changes.
Binary file added src/openvr/libopenvr_api_32.dll
Binary file not shown.
Binary file added src/openvr/libopenvr_api_32.dylib
Binary file not shown.
Binary file added src/openvr/libopenvr_api_32.so
Binary file not shown.
Binary file added src/openvr/libopenvr_api_64.dll
Binary file not shown.
Binary file added src/openvr/libopenvr_api_64.so
Binary file not shown.
File renamed without changes.
File renamed without changes.
20 changes: 20 additions & 0 deletions src/setup.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
import sys
from cx_Freeze import setup, Executable

# Dependencies are automatically detected, but it might need fine tuning.
# "packages": ["os"] is used as example only
packages = ["os", "json", "traceback", "openvr", "sys", "time", "ctypes", "argparse", "pythonosc", "collections", "setuptools", "packaging", "pkg_resources"]
exclude = ["tkinter", "asyncio", "concurrent", "lib2to3"]
include = ["packaging.version", "pyparsing"]
file_include = ["config.json", "ovrConfig.json", "openvr/", "bindings/", "app.vrmanifest", "debug_mode.bat"]
bin_excludes = ["_bz2.pyd", "_decimal.pyd", "_hashlib.pyd", "_lzma.pyd", "_queue.pyd", "_ssl.pyd", "libcrypto-1_1.dll", "libssl-1_1.dll", "ucrtbase.dll", "VCRUNTIME140.dll"]

build_exe_options = {"packages": packages, "includes": include, "excludes": exclude, "include_files": file_include, "bin_excludes": bin_excludes}

setup(
name="knuckles_to_osc",
version="0.1",
description="Knuckles to OSC",
options={"build_exe": build_exe_options},
executables=[Executable("knuckles_to_osc.py", target_name="Knuckles_to_OSC.exe", base=False, icon="icon.ico")],
)

0 comments on commit 96fea70

Please sign in to comment.