Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
I got the following error when tried to install tart binary in
/usr/local/bin/tart
and rantart run monterey-base
:It appeared that Swift Package Manager doesn't embed resources within a binary. I'm still a noob with swift so it was a discovery for me. Since we are planning to distribute Tart as a single binary via a Homebrew formula we need somhow embed the only icon we need within the binary.
I didn't find a better way then just embed the icon data as a base64 string. I've tried to implement a Plugin that can do such embedding during a build phase but seems the Swift Plugins are not yet mature to allow such functionality. So I decidede to implement this hack since we only have one icon to embed.
PS I've also put the
tart.entitelements
file outside of the source root since there was a warning: