Revert: LOCALAPPDATA override does not move Tauri's WiX cache

It looked right and did nothing. Rust's `dirs` crate resolves
LOCALAPPDATA on Windows through SHGetKnownFolderPath, which reads the
process token rather than the environment, so Tauri still cached the WiX
toolset under the SYSTEM profile and 32-bit candle.exe still hit WOW64
redirection.

Removing it rather than leaving a plausible-looking non-fix in the
workflow. The diagnosis in the previous commit stands; only the remedy
was wrong. Running the runner as a normal user, whose token resolves
LOCALAPPDATA outside System32, is the actual fix.

Co-Authored-By: Claude Opus 5 (1M context) <noreply@anthropic.com>
This commit is contained in:
2026-08-09 22:18:58 -07:00
co-authored by Claude Opus 5
parent b41077e799
commit c71e54a35f
-16
View File
@@ -339,22 +339,6 @@ jobs:
build-windows: build-windows:
runs-on: windows-latest runs-on: windows-latest
needs: [compute-version] needs: [compute-version]
env:
# WiX 3.x candle.exe/light.exe are 32-bit. A runner running as SYSTEM has
# %LOCALAPPDATA% = C:\Windows\system32\config\systemprofile\AppData\Local,
# and Tauri caches the WiX toolset there. WOW64 redirection then sends a
# 32-bit process reading C:\Windows\System32 to C:\Windows\SysWOW64, where
# that directory does not exist - so candle.exe cannot see its own folder,
# the CLR fails to start, and Tauri reports only "failed to run
# candle.exe". The real error is 0x80131700, visible in the Application
# event log as ".NET Runtime ... could not be started".
#
# Verified on our runner: candle.exe -? exits 0 from C:\wixtest and
# 0x80131700 from the systemprofile path - same identity, same binary.
#
# Pointing LOCALAPPDATA outside System32 sidesteps redirection entirely,
# and is harmless on a runner that already runs as a normal user.
LOCALAPPDATA: C:\actions-runner-cache
defaults: defaults:
run: run:
shell: cmd shell: cmd