From ab2bffe0cb661be9470e131e216d756c2c8dd1ed Mon Sep 17 00:00:00 2001 From: Nathaniel van Diepen Date: Fri, 13 Mar 2026 15:51:27 -0600 Subject: [PATCH 1/4] Use tempdir-spec on macos --- Makefile | 2 ++ main.py | 2 ++ 2 files changed, 4 insertions(+) diff --git a/Makefile b/Makefile index f9bb486..37ac584 100644 --- a/Makefile +++ b/Makefile @@ -158,6 +158,8 @@ executable: $(VENV_BIN_ACTIVATE) --output-dir=dist \ --report=compilation-report.xml \ --output-filename=codexctl \ + --file-version=$(date +%s) \ + --product-version=$(grep ^version pyproject.toml | cut -d'=' -f2 | xargs) \ $(CODEXCTL_FLAGS) \ main.py diff --git a/main.py b/main.py index c0f54a7..dbf8c93 100644 --- a/main.py +++ b/main.py @@ -6,6 +6,8 @@ # nuitka-project: --include-package=google # nuitka-project: --noinclude-unittest-mode=allow # nuitka-project: --nofollow-import-to=setuptools +# nuitka-project-if: {OS} =="Darwin": +# nuitka-project: --onefile-tempdir-spec="{CACHE_DIR}/codexctl/{VERSION}" from codexctl import main From 9c933fc76901106c918b11120b58ba566480929f Mon Sep 17 00:00:00 2001 From: Nathaniel van Diepen Date: Fri, 13 Mar 2026 22:19:09 +0000 Subject: [PATCH 2/4] Use TIME --- Makefile | 2 -- main.py | 2 +- 2 files changed, 1 insertion(+), 3 deletions(-) diff --git a/Makefile b/Makefile index 37ac584..f9bb486 100644 --- a/Makefile +++ b/Makefile @@ -158,8 +158,6 @@ executable: $(VENV_BIN_ACTIVATE) --output-dir=dist \ --report=compilation-report.xml \ --output-filename=codexctl \ - --file-version=$(date +%s) \ - --product-version=$(grep ^version pyproject.toml | cut -d'=' -f2 | xargs) \ $(CODEXCTL_FLAGS) \ main.py diff --git a/main.py b/main.py index dbf8c93..529af2b 100644 --- a/main.py +++ b/main.py @@ -7,7 +7,7 @@ # nuitka-project: --noinclude-unittest-mode=allow # nuitka-project: --nofollow-import-to=setuptools # nuitka-project-if: {OS} =="Darwin": -# nuitka-project: --onefile-tempdir-spec="{CACHE_DIR}/codexctl/{VERSION}" +# nuitka-project: --onefile-tempdir-spec="{CACHE_DIR}/codexctl/{TIME}" from codexctl import main From 543185b8cd71b28363ee8237c96c080adb1a020b Mon Sep 17 00:00:00 2001 From: Nathaniel van Diepen Date: Fri, 13 Mar 2026 16:20:29 -0600 Subject: [PATCH 3/4] Add missing space --- main.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/main.py b/main.py index 529af2b..6b857a1 100644 --- a/main.py +++ b/main.py @@ -6,7 +6,7 @@ # nuitka-project: --include-package=google # nuitka-project: --noinclude-unittest-mode=allow # nuitka-project: --nofollow-import-to=setuptools -# nuitka-project-if: {OS} =="Darwin": +# nuitka-project-if: {OS} == "Darwin": # nuitka-project: --onefile-tempdir-spec="{CACHE_DIR}/codexctl/{TIME}" from codexctl import main From 09027fdca87fc698a1bf2106db306826af7a107f Mon Sep 17 00:00:00 2001 From: Nathaniel van Diepen Date: Sat, 14 Mar 2026 11:01:31 -0600 Subject: [PATCH 4/4] Use compile datetime as version --- Makefile | 2 ++ main.py | 2 +- 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/Makefile b/Makefile index f9bb486..6da23d3 100644 --- a/Makefile +++ b/Makefile @@ -158,6 +158,8 @@ executable: $(VENV_BIN_ACTIVATE) --output-dir=dist \ --report=compilation-report.xml \ --output-filename=codexctl \ + --product-version=$(shell date +%Y.%m.%d) \ + --file-version=$(shell date +%H.%M.%S) \ $(CODEXCTL_FLAGS) \ main.py diff --git a/main.py b/main.py index 6b857a1..09b958e 100644 --- a/main.py +++ b/main.py @@ -7,7 +7,7 @@ # nuitka-project: --noinclude-unittest-mode=allow # nuitka-project: --nofollow-import-to=setuptools # nuitka-project-if: {OS} == "Darwin": -# nuitka-project: --onefile-tempdir-spec="{CACHE_DIR}/codexctl/{TIME}" +# nuitka-project: --onefile-tempdir-spec="{CACHE_DIR}/codexctl/{VERSION}" from codexctl import main