< 返回版块

BangByte 发表于 2025-05-27 17:03

Tags:cargo bundle,构建,打包,bundle

[package.metadata.bundle] name = "hello" identifier = "com.example.hello"

cargo clean cargo bundle --target x86_64-pc-windows-msvc --release

warning: C:\Users\tom\.cargo\config is deprecated in favor of config.toml note: if you need to support cargo 1.38 or earlier, you can symlink config to config.toml warning: C:\Users\tom\.cargo\config is deprecated in favor of config.toml note: if you need to support cargo 1.38 or earlier, you can symlink config to config.toml Compiling winapi v0.3.9 Compiling libc v0.2.172 Compiling rand v0.4.6
Compiling rand v0.3.23
Compiling hello v0.1.0 (D:\RustProjects\hello)
Finished release profile [optimized] target(s) in 7.86s
warning: MSI bundle support is still experimental. Bundling hello.msi error: Failed to collect resource file information Caused by: 系统找不到指定的文件。 (os error 2)

执行cargo bundle后,一直提示“系统找不到指定的文件”,哪位大佬指导可以指导一下

评论区

写评论
作者 BangByte 2025-05-28 10:29

谢谢,我看到了。比二楼的垃圾袋强多了

--
👇
Nayaka: https://github.com/burtonageo/cargo-bundle/issues/77

一直有这个问题

ssrlive 2025-05-28 08:27

我想你最應該做的,是單步調試 cargo-bundle 程序,找出問題,然後提交一個 PR 修復問題。而不是在這裏提問。

Nayaka 2025-05-27 17:27

https://github.com/burtonageo/cargo-bundle/issues/77

一直有这个问题

1 共 3 条评论, 1 页