Skip to content

Conversation

embogomolov
Copy link

  • Replace Unix-specific cp -r command with cross-platform Node.js cp() function
  • Add icon.ico to Tauri bundle configuration to fix Windows bundling

These changes enable successful builds on Windows systems

- Replace Unix-specific cp -r command with cross-platform Node.js cp() function
- Add icon.ico to Tauri bundle configuration to fix Windows bundling

These changes enable successful builds on Windows systems
@kinghighland
Copy link

there is a format issue about icon.ico.

error: failed to run custom build command for claudia v0.1.0 (D:\vsrepos\claudia\src-tauri)

Caused by:
process didn't exit successfully: D:\vsrepos\claudia\src-tauri\target\release\build\claudia-1044a434cbc5185d\build-script-build (exit code: 101)
--- stdout
cargo:rerun-if-env-changed=TAURI_CONFIG
...
...
D:\vsrepos\claudia\src-tauri\target\release\build\claudia-018914faed00ae8d\out\resource.rc(26) : error RC2175 : resource file \?\D:\vsrepos\claudia\src-tauri\icons\icon.ico is not in 3.00 format

--- stderr

@kinghighland
Copy link

@rikodot
Copy link

rikodot commented Jul 15, 2025

i personally had to copy and replace the runCommand function from fetch-and-build.js into build-executables.js and replace the icon.ico (i converted icon.png into an icon.ico 256x256 32bit)

@rikodot
Copy link

rikodot commented Jul 15, 2025

also had to update bundled claude code version as i cant use any other than the bundled version for some reason:

  1. i install latest version via npm (npm install -g @anthropic-ai/claude-code)
  2. find install path (where claude), in my case it was C:\Program Files\nodejs and from there i go to C:\Program Files\nodejs\node_modules\@anthropic-ai\claude-code
  3. open cli.js and search for import.meta.url).resolve("./yoga.wasm"
  4. in scripts/prepare-bundle-native.js i change yogaLoadPattern and yogaLoadReplacement accordingly (this changes with each claude code version)
  5. just to be sure i replaced all references to old version of claude code in scripts/fetch-and-build.js (from 1.0.41 and 1.0.42 to 1.0.51 you find this out via claude --version)
  6. in package.json change all references to old version as well so from --version=1.0.41 or --version=1.0.42 to --version=1.0.51

@KaKuCoCo
Copy link

same error #199 ,replace ico not work for me.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants