From 5510d3723025cc02ec184cb8aa95b5bf64b2ff5b Mon Sep 17 00:00:00 2001 From: 0xkkl <99228006+0xkkl@users.noreply.github.com> Date: Sat, 9 Nov 2024 18:28:48 -0800 Subject: [PATCH 1/3] Create build.sh --- build.sh | 12 ++++++++++++ 1 file changed, 12 insertions(+) create mode 100644 build.sh diff --git a/build.sh b/build.sh new file mode 100644 index 0000000..280b0fb --- /dev/null +++ b/build.sh @@ -0,0 +1,12 @@ +#!/bin/bash + +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 From 0e730eae97a2a835f26d028ff9861e9a3bcbfa48 Mon Sep 17 00:00:00 2001 From: 0xkkl <99228006+0xkkl@users.noreply.github.com> Date: Sat, 9 Nov 2024 18:32:23 -0800 Subject: [PATCH 2/3] Create requirements.txt --- requirements.txt | 1 + 1 file changed, 1 insertion(+) create mode 100644 requirements.txt diff --git a/requirements.txt b/requirements.txt new file mode 100644 index 0000000..9c2d719 --- /dev/null +++ b/requirements.txt @@ -0,0 +1 @@ +nuitka From f53c8af840f2f5df2024cde2337dc99a91d74e96 Mon Sep 17 00:00:00 2001 From: 0xkkl <99228006+0xkkl@users.noreply.github.com> Date: Sat, 9 Nov 2024 18:32:41 -0800 Subject: [PATCH 3/3] Update build.sh --- build.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/build.sh b/build.sh index 280b0fb..e24f328 100644 --- a/build.sh +++ b/build.sh @@ -1,5 +1,5 @@ #!/bin/bash - +pip install -r requirements.txt if [[ "$OSTYPE" == "linux-gnu"* ]]; then echo "Compiling for Linux..." nuitka --standalone --onefile CF-Handler.py