Skip to content

feat: Add files field in macos build config, closes #3290#7798

Merged
lucasfernog merged 9 commits intotauri-apps:devfrom
repalash:mac-app-contents
Dec 28, 2023
Merged

feat: Add files field in macos build config, closes #3290#7798
lucasfernog merged 9 commits intotauri-apps:devfrom
repalash:mac-app-contents

Conversation

@repalash
Copy link
Contributor

@repalash repalash commented Sep 9, 2023

What kind of change does this PR introduce?

Added a new field, appContents to tauri macos bundle config. Any files and directories added here are copied to the app bundle under the Contents directory.

This makes it possible to add custom Library items, Plugins built separately with code etc as requested in #3290

  • Bugfix
  • Feature
  • Docs
  • New Binding issue #___
  • Code style update
  • Refactor
  • Build-related changes
  • Other, please describe:

Does this PR introduce a breaking change?

  • Yes, and the changes were approved in issue #___
  • No

Checklist

  • When resolving issues, they are referenced in the PR's title (e.g fix: remove a typo, closes #___, #___)
  • A change file is added if any packages will require a version bump due to this PR per the instructions in the readme.
  • I have added a convincing reason for adding this feature, if necessary

Other information

It's my first PR here. Let me know if you want to change the field name or copy logic, or if these kinds of PRs are not accepted.

@repalash repalash requested a review from a team as a code owner September 9, 2023 12:39
Copy link
Contributor

@simonhyll simonhyll left a comment

Choose a reason for hiding this comment

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

Untested but code wise looks good to me

@repalash repalash changed the title feat: Add appContents field in macos build config, closes #3290 feat: Add files field in macos build config, closes #3290 Sep 11, 2023
@repalash
Copy link
Contributor Author

Edited to make it similar to DebConfig::files.

},
"macOS": {
"frameworks": [],
"appContents": [],
Copy link
Contributor

Choose a reason for hiding this comment

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

It should be files?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Fixed

@dwosk
Copy link

dwosk commented Nov 1, 2023

@repalash @pewsheen anything left to do for this? Would love to see this get merged in and available in the 1.x releases.

@repalash
Copy link
Contributor Author

repalash commented Nov 7, 2023

Nothing left from my side, @pewsheen is it all good?

@pewsheen
Copy link
Contributor

pewsheen commented Nov 8, 2023

Nothing left from my side, @pewsheen is it all good?

The code looks to me. But I remembered there are some discussions about signing files in the resources field and this one may have similar requests. cc @lucasfernog

@hjmallon
Copy link

hjmallon commented Dec 4, 2023

I tested this code out and have a couple of comments

  1. It does need a code signing implementation (similar to feat(bundler): codesign nested code on macos #8259)
  2. It does not copy bundles well at the moment (e.g. XPCServices) these need copying like in the Frameworks part

Copy link
Member

@lucasfernog lucasfernog left a comment

Choose a reason for hiding this comment

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

LGTM, nice work! I think codesign should be handled separately, probably on #8259

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

Status: 🔎 In audit

Development

Successfully merging this pull request may close these issues.

6 participants