From ea77e64c3f9112ca109121985a6b67bec29e8a12 Mon Sep 17 00:00:00 2001 From: "copilot-swe-agent[bot]" <198982749+Copilot@users.noreply.github.com> Date: Mon, 19 Jan 2026 19:10:40 +0000 Subject: [PATCH 1/5] Initial plan From 354473638efceba9625cff9049b43d944e39aedd Mon Sep 17 00:00:00 2001 From: "copilot-swe-agent[bot]" <198982749+Copilot@users.noreply.github.com> Date: Mon, 19 Jan 2026 19:12:56 +0000 Subject: [PATCH 2/5] Fix ARM64 cross-compilation in release workflow Co-authored-by: supervoidcoder <88671013+supervoidcoder@users.noreply.github.com> --- .github/workflows/release.yml | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index 8dc34c8..d8130bd 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -163,8 +163,14 @@ jobs: exit /b 1 ) + REM Map architecture for cross-compilation (host_target) + REM GitHub Actions windows-latest runners are x64, so we need x64_ for cross-compilation + set "VCVARS_ARCH=${{ matrix.arch }}" + if "${{ matrix.arch }}"=="x86" set "VCVARS_ARCH=x64_x86" + if "${{ matrix.arch }}"=="arm64" set "VCVARS_ARCH=x64_arm64" + REM Initialize environment for the target architecture - call "%VS_PATH%\VC\Auxiliary\Build\vcvarsall.bat" ${{ matrix.arch }} + call "%VS_PATH%\VC\Auxiliary\Build\vcvarsall.bat" %VCVARS_ARCH% set outName=win-witr-${{ matrix.arch }}.exe echo Compiling %outName%... From b2f4080b4835bf6f9624034a9c82f1d1bccbc0e0 Mon Sep 17 00:00:00 2001 From: "copilot-swe-agent[bot]" <198982749+Copilot@users.noreply.github.com> Date: Mon, 19 Jan 2026 19:13:49 +0000 Subject: [PATCH 3/5] Fix batch file syntax for architecture comparison Co-authored-by: supervoidcoder <88671013+supervoidcoder@users.noreply.github.com> --- .github/workflows/release.yml | 11 ++++++++--- 1 file changed, 8 insertions(+), 3 deletions(-) diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index d8130bd..4c31b2b 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -165,9 +165,14 @@ jobs: REM Map architecture for cross-compilation (host_target) REM GitHub Actions windows-latest runners are x64, so we need x64_ for cross-compilation - set "VCVARS_ARCH=${{ matrix.arch }}" - if "${{ matrix.arch }}"=="x86" set "VCVARS_ARCH=x64_x86" - if "${{ matrix.arch }}"=="arm64" set "VCVARS_ARCH=x64_arm64" + set "TARGET_ARCH=${{ matrix.arch }}" + if "%TARGET_ARCH%"=="x86" ( + set "VCVARS_ARCH=x64_x86" + ) else if "%TARGET_ARCH%"=="arm64" ( + set "VCVARS_ARCH=x64_arm64" + ) else ( + set "VCVARS_ARCH=%TARGET_ARCH%" + ) REM Initialize environment for the target architecture call "%VS_PATH%\VC\Auxiliary\Build\vcvarsall.bat" %VCVARS_ARCH% From 4b1a08b6ee921589b58deb8a6f11a6b08d18e836 Mon Sep 17 00:00:00 2001 From: "copilot-swe-agent[bot]" <198982749+Copilot@users.noreply.github.com> Date: Mon, 19 Jan 2026 19:14:36 +0000 Subject: [PATCH 4/5] Simplify batch file conditional logic Co-authored-by: supervoidcoder <88671013+supervoidcoder@users.noreply.github.com> --- .github/workflows/release.yml | 10 +++------- 1 file changed, 3 insertions(+), 7 deletions(-) diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index 4c31b2b..7cefe35 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -166,13 +166,9 @@ jobs: REM Map architecture for cross-compilation (host_target) REM GitHub Actions windows-latest runners are x64, so we need x64_ for cross-compilation set "TARGET_ARCH=${{ matrix.arch }}" - if "%TARGET_ARCH%"=="x86" ( - set "VCVARS_ARCH=x64_x86" - ) else if "%TARGET_ARCH%"=="arm64" ( - set "VCVARS_ARCH=x64_arm64" - ) else ( - set "VCVARS_ARCH=%TARGET_ARCH%" - ) + set "VCVARS_ARCH=%TARGET_ARCH%" + if "%TARGET_ARCH%"=="x86" set "VCVARS_ARCH=x64_x86" + if "%TARGET_ARCH%"=="arm64" set "VCVARS_ARCH=x64_arm64" REM Initialize environment for the target architecture call "%VS_PATH%\VC\Auxiliary\Build\vcvarsall.bat" %VCVARS_ARCH% From da019b1a9f11bcb8960b3740c37b9756ff44d47f Mon Sep 17 00:00:00 2001 From: supervoidcoder <88671013+supervoidcoder@users.noreply.github.com> Date: Mon, 19 Jan 2026 14:20:25 -0500 Subject: [PATCH 5/5] tuff --- main.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/main.cpp b/main.cpp index cf78628..7a4cfe9 100644 --- a/main.cpp +++ b/main.cpp @@ -16,7 +16,7 @@ #include #include #include - + #define windows_time_to_unix_epoch(x) ((x) - 116444736000000000LL) / 10000000LL // The above macro converts Windows FILETIME to Unix epoch time in seconds. // I explain more about why this is needed below and in the README.