You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Sniffnet fails to build using the cargo installation (error RC2135 : file not found: ./resources/packaging/windows/graphics/sniffnet.ico) #681
Sniffnet fails to build using the cargo installation.
How did you install the app?
installed from crates.io
Operating System
Windows
Additional context
command output
Caused by:
process didn't exit successfully: `C:\Users\Admin\`AppData\Local\Temp\cargo-installcBCKZH`\release\build\sniffnet-d42dcf163b623d06\build-script-build` (exit code: 101)
--- stdout
cargo:rerun-if-changed=./resources/packaging/windows/graphics/sniffnet.ico
cargo:rerun-if-changed=./services.txt
package.metadata.winres does not exist
"C:\\Program Files (x86)\\Windows Kits\\10\\bin\\10.0.22621.0\\x64\\rc.exe"
Selected RC path: 'C:\Program Files (x86)\Windows Kits\10\bin\10.0.22621.0\x64\rc.exe'
RC Output:
Microsoft (R) Windows (R) Resource Compiler Version 10.0.10011.16384
Copyright (C) Microsoft Corporation. All rights reserved.
C:\Users\Admin\`AppData\Local\Temp\cargo-installcBCKZH`\release\build\sniffnet-08d41838ec031ad8\out\resource.rc(25) : error RC2135 : file not found: ./resources/packaging/windows/graphics/sniffnet.ico
------
RC Error:
------
--- stderr
thread 'main' panicked at C:\Users\Admin\.cargo\registry\src\index.crates.io-6f17d22bba15001f\sniffnet-1.3.2\build.rs:31:23:
called `Result::unwrap()` on an `Err` value: Custom { kind: Other, error: "Could not compile resource file" }
note: run with `RUST_BACKTRACE=1` environment variable to display a backtrace
warning: build failed, waiting for other jobs to finish...
error: failed to compile `sniffnet v1.3.2`, intermediate artifacts can be found at `C:\Users\Admin\`AppData\Local\Temp\cargo-installcBCKZH``.
To reuse those artifacts with a future compilation, set the environment variable `CARGO_TARGET_DIR` to that path.
changed the title [-]error RC2135 : file not found: ./resources/packaging/windows/graphics/sniffnet.ico[/-][+]Sniffnet fails to build using the cargo installation (`error RC2135 : file not found: ./resources/packaging/windows/graphics/sniffnet.ico`)[/+]on Jan 23, 2025
Thanks for making me notice, I just fixed this in #718.
To avoid this happening again in the future, I've also added a CI/CD step to check the crate packaging before publication.
Activity
[-]error RC2135 : file not found: ./resources/packaging/windows/graphics/sniffnet.ico[/-][+]Sniffnet fails to build using the cargo installation (`error RC2135 : file not found: ./resources/packaging/windows/graphics/sniffnet.ico`)[/+]skip unnecessary set_icon() during build script (fix #681)
GyulyVGC commentedon Feb 16, 2025
Thanks for making me notice, I just fixed this in #718.
To avoid this happening again in the future, I've also added a CI/CD step to check the crate packaging before publication.