[GH-ISSUE #6603] [Bug] Building from surce: error: the argument '--profile <PROFILE-NAME>' cannot be used with '--release' #2901

Closed
opened 2026-03-23 21:26:02 +00:00 by mirror · 2 comments
Owner

Originally created by @casainho on GitHub (Oct 23, 2024).
Original GitHub issue: https://github.com/AppFlowy-IO/AppFlowy/issues/6603

Bug Description

On Linux Ubuntu 24.04 x86, following the instructions: https://docs.appflowy.io/docs/documentation/appflowy/from-source/environment-setup/building-on-linux

When executing this command:
cargo make --profile production-linux-x86_64 appflowy

I am getting this error:

BUILD_VERSION:
/home/cas/.pub-cache/bin/protoc-gen-dart
[cargo-make][1] INFO - Skipping Task: install_flutter_protobuf 
[cargo-make][1] INFO - Running Task: setup-crate-type
[cargo-make][1] INFO - Running Task: set-app-version
APP_VERSION: 0.7.2 
[cargo-make][1] INFO - Running Task: sdk-release-build
error: the argument '--profile <PROFILE-NAME>' cannot be used with '--release'

Usage: cargo build --profile <PROFILE-NAME> --package [<SPEC>] --target [<TRIPLE>] --features <FEATURES>

For more information, try '--help'.
Error while executing command, exit code: 1
[cargo-make] INFO - Running Task: restore-crate-type
[cargo-make] ERROR - Task error detected, exit code: 105
[cargo-make] WARN - Build Failed.

How to Reproduce

On Linux Ubuntu 24.04 x86, follow the instructions: https://docs.appflowy.io/docs/documentation/appflowy/from-source/environment-setup/building-on-linux

Expected Behavior

Correct build the app.

Operating System

Linux Ubuntu 24.04 x86

AppFlowy Version(s)

0.7.2

Screenshots

image

Additional Context

No response

Originally created by @casainho on GitHub (Oct 23, 2024). Original GitHub issue: https://github.com/AppFlowy-IO/AppFlowy/issues/6603 ### Bug Description On Linux Ubuntu 24.04 x86, following the instructions: https://docs.appflowy.io/docs/documentation/appflowy/from-source/environment-setup/building-on-linux When executing this command: ```cargo make --profile production-linux-x86_64 appflowy``` I am getting this error: ``` BUILD_VERSION: /home/cas/.pub-cache/bin/protoc-gen-dart [cargo-make][1] INFO - Skipping Task: install_flutter_protobuf [cargo-make][1] INFO - Running Task: setup-crate-type [cargo-make][1] INFO - Running Task: set-app-version APP_VERSION: 0.7.2 [cargo-make][1] INFO - Running Task: sdk-release-build error: the argument '--profile <PROFILE-NAME>' cannot be used with '--release' Usage: cargo build --profile <PROFILE-NAME> --package [<SPEC>] --target [<TRIPLE>] --features <FEATURES> For more information, try '--help'. Error while executing command, exit code: 1 [cargo-make] INFO - Running Task: restore-crate-type [cargo-make] ERROR - Task error detected, exit code: 105 [cargo-make] WARN - Build Failed. ``` ### How to Reproduce On Linux Ubuntu 24.04 x86, follow the instructions: https://docs.appflowy.io/docs/documentation/appflowy/from-source/environment-setup/building-on-linux ### Expected Behavior Correct build the app. ### Operating System Linux Ubuntu 24.04 x86 ### AppFlowy Version(s) 0.7.2 ### Screenshots ![image](https://github.com/user-attachments/assets/2f469d1c-4bb5-46a6-bb51-1a0c2780d3a3) ### Additional Context _No response_
Author
Owner

@righere commented on GitHub (Oct 24, 2024):

image

delete --${BUILD_FLAG} in desktop.toml

<!-- gh-comment-id:2434686910 --> @righere commented on GitHub (Oct 24, 2024): ![image](https://github.com/user-attachments/assets/dfe34eba-31bc-49b3-bbff-c6eab5edad5e) delete --${BUILD_FLAG} in desktop.toml
Author
Owner

@casainho commented on GitHub (Oct 24, 2024):

@righere Thanks!! built as expected.

<!-- gh-comment-id:2435018313 --> @casainho commented on GitHub (Oct 24, 2024): @righere Thanks!! built as expected.
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
AppFlowy-IO/AppFlowy#2901
No description provided.