1
- # Copyright (c) 2024 Files Community
2
- # Licensed under the MIT License. See the LICENSE.
1
+ # Copyright (c) Files Community
2
+ # Licensed under the MIT License.
3
3
4
4
param (
5
5
[string ]$Branch = " " , # This has to correspond with one of the AppEnvironment enum values
@@ -80,6 +80,12 @@ elseif ($Branch -eq "StorePreview")
80
80
(Get-Content $_ - Raw | ForEach-Object - Process { $_ -replace " Assets\\AppTiles\\Dev" , " Assets\AppTiles\Preview" }) | `
81
81
Set-Content $_ - NoNewline `
82
82
}
83
+
84
+ Get-ChildItem $WorkingDir - Include * .cs, * .cpp - recurse | ForEach-Object - Process `
85
+ { `
86
+ (Get-Content $_ - Raw | ForEach-Object - Process { $_ -replace " files-dev" , " files-preview" }) | `
87
+ Set-Content $_ - NoNewline `
88
+ }
83
89
}
84
90
elseif ($Branch -eq " SideloadStable" )
85
91
{
@@ -121,8 +127,8 @@ elseif ($Branch -eq "StoreStable")
121
127
$xmlDoc.Package.Capabilities.RemoveChild ($pm )
122
128
123
129
# Update app protocol and execution alias
124
- $ap.SetAttribute (" Name" , " files" );
125
- $aea .RemoveChild ( $aea .FirstChild ); # Avoid duplication
130
+ $ap.SetAttribute (" Name" , " files-stable " );
131
+ $ea .SetAttribute ( " Alias " , " files-stable.exe " );
126
132
127
133
# Save modified Package.appxmanifest
128
134
$xmlDoc.Save ($PackageManifestPath )
@@ -135,7 +141,7 @@ elseif ($Branch -eq "StoreStable")
135
141
136
142
Get-ChildItem $WorkingDir - Include * .cs, * .cpp - recurse | ForEach-Object - Process `
137
143
{ `
138
- (Get-Content $_ - Raw | ForEach-Object - Process { $_ -replace " files-dev" , " files" }) | `
144
+ (Get-Content $_ - Raw | ForEach-Object - Process { $_ -replace " files-dev" , " files-stable " }) | `
139
145
Set-Content $_ - NoNewline `
140
146
}
141
147
}
0 commit comments