Skip to content
Draft
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion common/constants.ts
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ export const DAY_MS = HOUR_MS * 24;

// OAuth constants
export const CLIENT_ID = '95109';
export const PROTOCOL_PREFIX = 'wpcom-local-dev';
export const PROTOCOL_PREFIX = 'wp-studio';
Copy link
Contributor Author

@gavande1 gavande1 Nov 7, 2025

Choose a reason for hiding this comment

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

This is a temporary change until #2029 is merged.


export const LOCKFILE_NAME = 'appdata-v1.json.lock';
export const LOCKFILE_STALE_TIME = 5000;
Expand Down
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