Skip to content

Sniffnet fails to build using the cargo installation (error RC2135 : file not found: ./resources/packaging/windows/graphics/sniffnet.ico) #681

Closed

Description

@Quorsor

Is there an existing issue for this?

  • I have searched the existing issues.

What's the problem?

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.

Activity

  1. added
    bugSomething isn't working
    WindowsSomething related to Windows operating system
    on Jan 16, 2025
  2. self-assigned this
    on Jan 16, 2025
  3. added this to the v1.4.0 milestone on Jan 16, 2025
  4. 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
  5. added a commit that references this issue on Feb 16, 2025
    04f86db
  6. GyulyVGC commented on Feb 16, 2025

    @GyulyVGC
    Owner

    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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

WindowsSomething related to Windows operating systembugSomething isn't working

Projects

No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions