-
-
Notifications
You must be signed in to change notification settings - Fork 2.5k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[feat] beforeBuildCommand/beforeDevCommand needs a target triple environment variable #5091
Comments
did you check https://tauri.app/v1/api/config#buildconfig.beforedevcommand there is env vars for arch, platform, ..etc |
Yes, they can't be used to build a target triple |
Why not? you only need |
[arch] [os] [???] [toolchain] the last two are missing |
Yes they are missing, but in the context of tauri apps, predictable.
|
But then there's the issue of concatenating these strings in a cross-platform way. Now I have to resort to a scripting language or something just to concatenate these parts into a target triple. |
Yep, that's why i said it's "not nearly as comfortable to use". it's a workaround not a solution, which is why this issue is still open. In other words, we/i agree that this would be a nice addition 👍 |
Describe the problem
beforeBuildCommand and beforeDevCommand claim to be for conditional compilation, yet offer no way of getting the target triple for building
Describe the solution you'd like
Expose the target triple as an environment variable
Alternatives considered
No response
Additional context
No response
The text was updated successfully, but these errors were encountered: