Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions scripts/package-appx.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -67,15 +67,15 @@ async function addProtocolHandlerToManifest( manifestPath ) {
const manifestContent = await fs.readFile( manifestPath, 'utf-8' );

// Check if protocol handler already exists
if ( manifestContent.includes( 'wpcom-local-dev' ) ) {
if ( manifestContent.includes( 'wp-studio' ) ) {
console.log( '~~~ Protocol handler already exists, skipping...' );
return;
}

// Insert the protocol handler extension before </Application>
const protocolExtension = ` <Extensions>
<uap:Extension Category="windows.protocol">
<uap:Protocol Name="wpcom-local-dev">
<uap:Protocol Name="wp-studio">
<uap:DisplayName>WordPress.com Local Dev Protocol</uap:DisplayName>
</uap:Protocol>
</uap:Extension>
Expand Down