Skip to content

refactor(macos-sign): use base64 crate instead of Command - #15038

Merged
lucasfernog merged 4 commits into
devfrom
amr/refactor/macos-sign-base64
Mar 10, 2026
Merged

refactor(macos-sign): use base64 crate instead of Command#15038
lucasfernog merged 4 commits into
devfrom
amr/refactor/macos-sign-base64

Conversation

@amrbashir

@amrbashir amrbashir commented Mar 5, 2026

Copy link
Copy Markdown
Member

Avoids the mentioned issue by stripping whitespace before decoding.

This fixes a niche case for me, where I have base64 installed on macOS from GNU coreutils, which doesn't use the same flags and builds were failing for me.

@amrbashir
amrbashir requested a review from a team as a code owner March 5, 2026 02:17
@github-actions

github-actions Bot commented Mar 5, 2026

Copy link
Copy Markdown
Contributor

Package Changes Through 33fafa3

There are 3 changes which include tauri-macos-sign with patch, tauri-cli with patch, @tauri-apps/cli with patch

Planned Package Versions

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

package current next
tauri-macos-sign 2.3.3 2.3.4
tauri-bundler 2.8.1 2.8.2
@tauri-apps/cli 2.10.1 2.10.2
tauri-cli 2.10.1 2.10.2

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


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

zubinqayam

This comment was marked as spam.

zubinqayam

This comment was marked as spam.

zubinqayam

This comment was marked as spam.

Legend-Master
Legend-Master previously approved these changes Mar 7, 2026

@Legend-Master Legend-Master left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Not sure if we need a change file?

.map_err(|error| Error::CommandFailed {
command: "base64 --decode".to_string(),
// strip whitespace before decoding
let cleaned: String = input.chars().filter(|c| !c.is_ascii_whitespace()).collect();

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Not exactly sure the behavior with the OS base64, but I think we should add a bit more context here in the comments

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

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

I don't have enough information about what was the previous problem exactly, so maybe @lucasfernog can shed some light on it

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

this is just tech debt from the days David wrote this - like 5 years ago?? omg i'm old

lucasfernog
lucasfernog previously approved these changes Mar 10, 2026
@lucasfernog
lucasfernog dismissed stale reviews from Legend-Master and themself via 33fafa3 March 10, 2026 12:09
@lucasfernog
lucasfernog merged commit eacd36a into dev Mar 10, 2026
15 checks passed
@lucasfernog
lucasfernog deleted the amr/refactor/macos-sign-base64 branch March 10, 2026 12:15
razein97 pushed a commit to razein97/tauri that referenced this pull request Apr 30, 2026
…#15038)

* refactor(macos-sign): use base64 crate instead of Command

* add base64 crate as a dependency

* add change file

---------

Co-authored-by: Lucas Nogueira <lucas@tauri.app>
razein97 pushed a commit to razein97/tauri that referenced this pull request Apr 30, 2026
…#15038)

* refactor(macos-sign): use base64 crate instead of Command

* add base64 crate as a dependency

* add change file

---------

Co-authored-by: Lucas Nogueira <lucas@tauri.app>
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.

4 participants