Skip to content

Commit

Permalink
Fix: Updated the launcher project
Browse files Browse the repository at this point in the history
  • Loading branch information
yaira2 committed Dec 20, 2024
1 parent abbd003 commit 60c0eab
Show file tree
Hide file tree
Showing 5 changed files with 14 additions and 19 deletions.
12 changes: 9 additions & 3 deletions .github/scripts/Configure-AppxManifest.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -80,6 +80,12 @@ elseif ($Branch -eq "StorePreview")
(Get-Content $_ -Raw | ForEach-Object -Process { $_ -replace "Assets\\AppTiles\\Dev", "Assets\AppTiles\Preview" }) | `
Set-Content $_ -NoNewline `
}

Get-ChildItem $WorkingDir -Include *.cs, *.cpp -recurse | ForEach-Object -Process `
{ `
(Get-Content $_ -Raw | ForEach-Object -Process { $_ -replace "files-dev", "files-preview" }) | `
Set-Content $_ -NoNewline `
}
}
elseif ($Branch -eq "SideloadStable")
{
Expand Down Expand Up @@ -121,8 +127,8 @@ elseif ($Branch -eq "StoreStable")
$xmlDoc.Package.Capabilities.RemoveChild($pm)

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

# Save modified Package.appxmanifest
$xmlDoc.Save($PackageManifestPath)
Expand All @@ -135,7 +141,7 @@ elseif ($Branch -eq "StoreStable")

Get-ChildItem $WorkingDir -Include *.cs, *.cpp -recurse | ForEach-Object -Process `
{ `
(Get-Content $_ -Raw | ForEach-Object -Process { $_ -replace "files-dev", "files" }) | `
(Get-Content $_ -Raw | ForEach-Object -Process { $_ -replace "files-dev", "files-stable" }) | `
Set-Content $_ -NoNewline `
}
}
Expand Down
5 changes: 3 additions & 2 deletions Files.sln
Original file line number Diff line number Diff line change
Expand Up @@ -27,10 +27,11 @@ EndProject
Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "Files.App", "src\Files.App\Files.App.csproj", "{6F431D82-A5FF-4833-B5E4-702E1E523126}"
ProjectSection(ProjectDependencies) = postProject
{1EE996D6-885E-4403-A461-26C7A4E14D26} = {1EE996D6-885E-4403-A461-26C7A4E14D26}
{A2FF3F3B-8EBC-4108-B99D-1476B7876656} = {A2FF3F3B-8EBC-4108-B99D-1476B7876656}
{EBFA367F-CBDB-4CD0-B838-D6B95F61D1F6} = {EBFA367F-CBDB-4CD0-B838-D6B95F61D1F6}
{25FD5045-6D4C-4DD0-B3AC-613AB59CBB07} = {25FD5045-6D4C-4DD0-B3AC-613AB59CBB07}
{7756A1A4-17B5-4E6B-9B12-F19AA868A225} = {7756A1A4-17B5-4E6B-9B12-F19AA868A225}
{A2FF3F3B-8EBC-4108-B99D-1476B7876656} = {A2FF3F3B-8EBC-4108-B99D-1476B7876656}
{B3FE3F3B-CECC-4918-B72B-5488C3774125} = {B3FE3F3B-CECC-4918-B72B-5488C3774125}
{EBFA367F-CBDB-4CD0-B838-D6B95F61D1F6} = {EBFA367F-CBDB-4CD0-B838-D6B95F61D1F6}
EndProjectSection
EndProject
Project("{C7167F0D-BC9F-4E6E-AFE1-012C56B48DB5}") = "Files.Package", "src\Files.App (Package)\Files.Package.wapproj", "{8F60FD8E-1921-47D6-97B0-D26D7B3A4999}"
Expand Down
14 changes: 1 addition & 13 deletions src/Files.App (Package)/Package.appxmanifest
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@
<Identity
Name="FilesDev"
Publisher="CN=Files"
Version="3.8.2.0" />
Version="3.8.5.0" />

<Properties>
<DisplayName>Files - Dev</DisplayName>
Expand Down Expand Up @@ -118,25 +118,13 @@
</uap3:AppExtensionHost>
</uap3:Extension>

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

<uap:Extension Category="windows.protocol">
<!-- This is kept for backward compatibility. -->
<uap:Protocol ReturnResults="none" Name="files" />
</uap:Extension>

<uap:Extension Category="windows.protocol">
<!-- This value changes based on the build branch by CI (files-stable, files-preview, files-dev). -->
<uap:Protocol ReturnResults="none" Name="files-dev" />
</uap:Extension>

<uap5:Extension Category="windows.appExecutionAlias">
<uap5:AppExecutionAlias>
<!-- This is kept for backward compatibility. -->
<uap5:ExecutionAlias Alias="files.exe" />
<!-- This value changes based on the build branch by CI (files-stable, files-preview, files-dev). -->
<uap5:ExecutionAlias Alias="files-dev.exe" />
</uap5:AppExecutionAlias>
Expand Down
Binary file modified src/Files.App/Assets/FilesOpenDialog/Files.App.Launcher.exe
Binary file not shown.
Original file line number Diff line number Diff line change
@@ -1 +1 @@
c8f6e414f1a2dd954a24ccbe0fac1d167ffc2808c9c127b6c3d1811b53ffe457
7219ea9bd5832c77f1d6c8e57f97e6504a33f07bdef61122a171061f0dcb3509

0 comments on commit 60c0eab

Please sign in to comment.