Skip to content

Tested fix for renaming build outputs with .fap extension. #36

@ASoldo

Description

@ASoldo

HI, I've read on previous issue (#18 (comment)) about .fap files and location. I found a way to have build output renamed to .fap with Cargo.toml update.
Here is the original post about this topic --> rust-lang/cargo#1706 (comment)

Here is my Cargo.toml

cargo-features = ["different-binary-name"]    # <-- this 
[package]
name = "hello-rust"
version = "0.1.0"
edition = "2021"
rust-version = "1.64.0"
autobins = false
autoexamples = false
autotests = false
autobenches = false

[[bin]]
name = "hello-rust"
filename = "hello-rust.fap"  # <-- this
bench = false
test = false

[dependencies]
flipperzero = { version = "0.6.0", path = "../../crates/flipperzero" }
flipperzero-sys = { version = "0.6.0", path = "../../crates/sys" }
flipperzero-rt = { version = "0.6.0", path = "../../crates/rt" }

And that is pretty much it, I have created a build and upload it to Flipper and works like a charm.
Maybe you could update all other examples to include this.

Metadata

Metadata

Assignees

Labels

enhancementNew feature or request

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions