Skip to content

Commit 033026f

Browse files
committed
Update
1 parent abb9334 commit 033026f

File tree

2 files changed

+16
-11
lines changed

2 files changed

+16
-11
lines changed

.github/scripts/Configure-AppxManifest.ps1

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -36,8 +36,8 @@ if ($Branch -eq "Preview")
3636
$xmlDoc.Package.Applications.Application.VisualElements.DefaultTile.ShortName="Files - Preview"
3737

3838
# Update app protocol and execution alias
39-
$ap.SetAttribute("Name", "files-pre");
40-
$ea.SetAttribute("Alias", "files-pre.exe");
39+
$ap.SetAttribute("Name", "files-preview");
40+
$ea.SetAttribute("Alias", "files-preview.exe");
4141

4242
# Save modified Package.appxmanifest
4343
$xmlDoc.Save($PackageManifestPath)
@@ -50,7 +50,7 @@ if ($Branch -eq "Preview")
5050

5151
Get-ChildItem $WorkingDir -Include *.cs, *.cpp -recurse | ForEach-Object -Process `
5252
{ `
53-
(Get-Content $_ -Raw | ForEach-Object -Process { $_ -replace "files-dev", "files-pre" }) | `
53+
(Get-Content $_ -Raw | ForEach-Object -Process { $_ -replace "files-dev", "files-preview" }) | `
5454
Set-Content $_ -NoNewline `
5555
}
5656
}
@@ -63,8 +63,8 @@ elseif ($Branch -eq "Stable")
6363
$xmlDoc.Package.Applications.Application.VisualElements.DefaultTile.ShortName="Files"
6464

6565
# Update app protocol and execution alias
66-
$ap.SetAttribute("Name", "files");
67-
$aea.RemoveChild(aea.FirstChild); # Avoid duplication
66+
$ap.SetAttribute("Name", "files-stable");
67+
$ea.SetAttribute("Alias", "files-stable.exe");
6868

6969
# Save modified Package.appxmanifest
7070
$xmlDoc.Save($PackageManifestPath)
@@ -77,7 +77,7 @@ elseif ($Branch -eq "Stable")
7777

7878
Get-ChildItem $WorkingDir -Include *.cs, *.cpp -recurse | ForEach-Object -Process `
7979
{ `
80-
(Get-Content $_ -Raw | ForEach-Object -Process { $_ -replace "files-dev", "files" }) | `
80+
(Get-Content $_ -Raw | ForEach-Object -Process { $_ -replace "files-dev", "files-stable" }) | `
8181
Set-Content $_ -NoNewline `
8282
}
8383
}

src/Files.App (Package)/Package.appxmanifest

Lines changed: 10 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -119,21 +119,26 @@
119119
</uap3:Extension>
120120

121121
<uap:Extension Category="windows.protocol">
122-
<!-- This is for backward compatibility -->
122+
<!-- This is kept for backward compatibility. -->
123123
<uap:Protocol ReturnResults="none" Name="files-uwp" />
124124
</uap:Extension>
125125

126126
<uap:Extension Category="windows.protocol">
127-
<!-- This value changes based on the build branch (files, files-pre, files-dev). -->
127+
<!-- This is kept for backward compatibility. -->
128+
<uap:Protocol ReturnResults="none" Name="files" />
129+
</uap:Extension>
130+
131+
<uap:Extension Category="windows.protocol">
132+
<!-- This value changes based on the build branch by CI (files-stable, files-preview, files-dev). -->
128133
<uap:Protocol ReturnResults="none" Name="files-dev" />
129134
</uap:Extension>
130135

131136
<uap5:Extension Category="windows.appExecutionAlias">
132137
<uap5:AppExecutionAlias>
133-
<!-- This value changes based on the build branch (files, files-pre, files-dev). -->
134-
<uap5:ExecutionAlias Alias="files-dev.exe" />
135-
<!-- This is for backward compatibility -->
138+
<!-- This is kept for backward compatibility. -->
136139
<uap5:ExecutionAlias Alias="files.exe" />
140+
<!-- This value changes based on the build branch by CI (files-stable, files-preview, files-dev). -->
141+
<uap5:ExecutionAlias Alias="files-dev.exe" />
137142
</uap5:AppExecutionAlias>
138143
</uap5:Extension>
139144

0 commit comments

Comments
 (0)