80
80
/p:PackageCertificateKeyFile="$(signingCertificate.secureFilePath)"
81
81
/p:PackageCertificateThumbprint="$(SignedCertificateThumbprint-Alpha)"
82
82
/p:PackageCertificatePassword="$(SignCertificatePassword-Alpha)"
83
- /p:AppInstallerUri="https://quarrelfordiscord.github.io/QuarrelInstaller/ "
83
+ /p:AppInstallerUri="$(siteUri) "
84
84
/p:AppInstallerUpdateFrequency=1
85
85
/p:AppInstallerCheckForUpdateFrequency=OnApplicationRun
86
86
/p:GenerateAppInstallerFile=true'
@@ -90,17 +90,17 @@ steps:
90
90
$doc = [System.Xml.Linq.XDocument]::Load(
91
91
"$(appxPackageDir)/Quarrel.appinstaller")
92
92
$xName = "{http://schemas.microsoft.com/appx/appinstaller/2017/2}MainBundle"
93
- $bundle = $doc.Root.Element($xName).Attribute("Uri").Value.Replace("https://quarrelfordiscord.github.io/QuarrelInstaller/ ", "");
94
- Copy-Item $ bundle -Destination ( $(build.artifactStagingDirectory) + $ bundle.Replace("/", "_"));
93
+ $bundle = $doc.Root.Element($xName).Attribute("Uri").Value.Replace("$(siteUri) ", "");
94
+ Copy-Item "$( bundle)" -Destination " $(build.artifactStagingDirectory)$($ bundle.Replace("/", "_"))" ;
95
95
$doc.Root.Element($xName).Attribute("Uri").Value =
96
96
"https://github.com/UWPCommunity/Quarrel/releases/download/alpha-v$(Build.BuildNumber)/Quarrel.appinstaller" +
97
97
$bundle.Replace("/", "_");
98
98
99
99
$xName = "{http://schemas.microsoft.com/appx/appinstaller/2017/2}Dependencies"
100
100
101
101
foreach ($element in $doc.Root.Elements($xName)){
102
- $dep = $element.Attribute("Uri").Value.Replace("https://quarrelfordiscord.github.io/QuarrelInstaller/ ", "");
103
- Copy-Item $ dep -Destination ( $(build.artifactStagingDirectory) + $ dep.Replace("/", "_"));
102
+ $dep = $element.Attribute("Uri").Value.Replace("$(siteUri) ", "");
103
+ Copy-Item "$( dep)" -Destination " $(build.artifactStagingDirectory)$($ dep.Replace("/", "_"))" ;
104
104
$element.Attribute("Uri").Value =
105
105
"https://github.com/UWPCommunity/Quarrel/releases/download/alpha-v$(Build.BuildNumber)/Quarrel.appinstaller" +
106
106
$dep.Replace("/", "_");
0 commit comments