Skip to content
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: Custom sign command with object notation #10634

Merged

Conversation

anatawa12
Copy link
Contributor

Copy link
Contributor

github-actions bot commented Aug 15, 2024

Package Changes Through e520696

There are 6 changes which include tauri with prerelease, tauri-build with prerelease, tauri-utils with prerelease, tauri-bundler with prerelease, @tauri-apps/cli with prerelease, tauri-cli with prerelease

Planned Package Versions

The following package releases are the planned based on the context of changes in this pull request.

package current next
tauri-utils 2.0.0-rc.3 2.0.0-rc.4
tauri-bundler 2.0.1-rc.2 2.0.1-rc.3
tauri-runtime 2.0.0-rc.3 2.0.0-rc.4
tauri-runtime-wry 2.0.0-rc.3 2.0.0-rc.4
tauri-codegen 2.0.0-rc.3 2.0.0-rc.4
tauri-macros 2.0.0-rc.3 2.0.0-rc.4
tauri-plugin 2.0.0-rc.3 2.0.0-rc.4
tauri-build 2.0.0-rc.3 2.0.0-rc.4
tauri 2.0.0-rc.3 2.0.0-rc.4
@tauri-apps/cli 2.0.0-rc.4 2.0.0-rc.5
tauri-cli 2.0.0-rc.4 2.0.0-rc.5

Add another change file through the GitHub UI by following this link.


Read about change files or the docs at github.com/jbolda/covector

@anatawa12
Copy link
Contributor Author

I ran cargo fmt at repository root again but no diff are generated. I feel it's weird to fail fmt check

"tauri-utils": patch:breaking
---

Custom sign command for windows executables is now with object instead of string to support whitespaces in the command path and arguments.
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I wonder if it is worth supporting both formats, string is more concise for simple use cases and object is better for white space paths and such

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

supporting both formats is what we do :) use an enum with serde(untagged)

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@anatawa12 sorry for the inconvenience, could you add support for both? and add a note in docs that users should use the object format if their binary or arguments have spaces.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

OK.
Should support quote in string notation for whitespaces? or use old simple parser with split(' ')?

Copy link
Member

@amrbashir amrbashir Aug 15, 2024

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

use old simple parser, and just add a note in docs, thanks

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I added string form support in 53e285a.

Since string format is only for simpler config file, I added parsing logic in cli module and bundler module have single object form as input.

@anatawa12 anatawa12 force-pushed the object-notation-for-custom-sign-command branch from cc88888 to d01d92f Compare August 15, 2024 18:49
@anatawa12
Copy link
Contributor Author

I ran cargo fmt at repository root again but no diff are generated. I feel it's weird to fail fmt check

I found that I have to run cargo fmt inside each folder in tooling/ folder since they are not part of root workspace

@anatawa12 anatawa12 changed the title feat!: Custom sign command with object notation feat: Custom sign command with object notation Aug 15, 2024
@lucasfernog lucasfernog merged commit 8d148a9 into tauri-apps:dev Aug 19, 2024
34 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants