Skip to content

Updated vsix building in order to pass vsixsigntool validation after modified codesigning flow #370

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

Merged
merged 2 commits into from
Feb 11, 2025

Conversation

sid-srini
Copy link
Member

The vsixsigntool has certain pre-requisites for its verification to pass. These are no longer done in the code-signing flow, requiring them to be performed prior to the creation of the vsix.

It seems that the VS Code Marketplace publishing uses a different validation flow for signed vsix, since the unsigned vsix created by the @vscode/vsce node tool doesn't adhere to these restrictions.
For example:

  • [Content_Types].xml must contain file-extension strings without a '.' prefix in a signed vsix-extension.
  • There must be no files present in the vsix-extension without a file-extension.

is valid.

1. Added .sh extension to: ant, antRun, mvnDebug, mvnjyp.
2. Added .txt extension to: NOTICE, LICENSE, project-marker-jdk.
3. Ignore nb clusters .lastModified files and node_modules .npmignore
   from vsix packaging.

Signed-off-by: Siddharth Srinivasan <[email protected]>
from the file extension string that is populated in
[Content-Types.xml] for the different files in the extension.

Signed-off-by: Siddharth Srinivasan <[email protected]>
@oracle-contributor-agreement oracle-contributor-agreement bot added the OCA Verified All contributors have signed the Oracle Contributor Agreement. label Feb 11, 2025
@sid-srini sid-srini requested a review from Achal1607 February 11, 2025 10:43
@sid-srini sid-srini added this to the JVSC 23.1.0 milestone Feb 11, 2025
Copy link
Member

@Achal1607 Achal1607 left a comment

Choose a reason for hiding this comment

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

LGTM. Thanks

@Achal1607 Achal1607 merged commit e3a8169 into oracle:main Feb 11, 2025
3 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
OCA Verified All contributors have signed the Oracle Contributor Agreement.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants