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

Fix PATH issue for archive containing nested portables with binary dependencies #4816

Merged
merged 5 commits into from
Sep 20, 2024

Conversation

ryfu-msft
Copy link
Contributor

@ryfu-msft ryfu-msft commented Sep 17, 2024

Related to: #2711

Changes:
Added a new boolean field to the installer manifest called ArchiveBinariesDependOnPath. This field only applies to nested portables in an archive. When set to true, the portable installer will skip creating a symlink and automatically add the install directory to path.

No manifest validation was added since this field only affected Portables in Archive and should not be blocking even if it doesn't apply. Willing to add a manifest validation warning if needed.

Verified with an E2E test to make sure that the install directory path is added instead of the symlink directory.
Tested with this package before and after the change to make sure that the portable works as expected: microsoft/winget-pkgs#173679

Microsoft Reviewers: Open in CodeFlow

@ryfu-msft ryfu-msft marked this pull request as ready for review September 18, 2024 22:35
@ryfu-msft ryfu-msft requested a review from a team as a code owner September 18, 2024 22:35
@ryfu-msft
Copy link
Contributor Author

/azp run

Copy link

Azure Pipelines successfully started running 1 pipeline(s).

@ryfu-msft ryfu-msft merged commit e813c49 into microsoft:master Sep 20, 2024
9 checks passed
@ryfu-msft ryfu-msft deleted the portableArchiveBug branch September 20, 2024 01:35
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.

2 participants