diff --git a/build.sh b/build.sh new file mode 100644 index 0000000..e24f328 --- /dev/null +++ b/build.sh @@ -0,0 +1,12 @@ +#!/bin/bash +pip install -r requirements.txt +if [[ "$OSTYPE" == "linux-gnu"* ]]; then + echo "Compiling for Linux..." + nuitka --standalone --onefile CF-Handler.py + +elif [[ "$OSTYPE" == "msys" || "$OSTYPE" == "cygwin" ]]; then + echo "Compiling for Windows..." + nuitka --standalone --onefile --windows-disable-console CF-Handler.py +else + echo "Unsupported OS" +fi diff --git a/requirements.txt b/requirements.txt new file mode 100644 index 0000000..9c2d719 --- /dev/null +++ b/requirements.txt @@ -0,0 +1 @@ +nuitka