Skip to content
This repository was archived by the owner on Apr 30, 2024. It is now read-only.

Commit 6a098fe

Browse files
committed
Merge branch 'rewrite/main' of https://github.com/UWPCommunity/Quarrel into rewrite/main
2 parents 8620625 + 39444d4 commit 6a098fe

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

azure-pipelines-package-alpha.yml

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -80,7 +80,7 @@ steps:
8080
/p:PackageCertificateKeyFile="$(signingCertificate.secureFilePath)"
8181
/p:PackageCertificateThumbprint="$(SignedCertificateThumbprint-Alpha)"
8282
/p:PackageCertificatePassword="$(SignCertificatePassword-Alpha)"
83-
/p:AppInstallerUri="https://quarrelfordiscord.github.io/QuarrelInstaller/"
83+
/p:AppInstallerUri="$(siteUri)"
8484
/p:AppInstallerUpdateFrequency=1
8585
/p:AppInstallerCheckForUpdateFrequency=OnApplicationRun
8686
/p:GenerateAppInstallerFile=true'
@@ -90,17 +90,17 @@ steps:
9090
$doc = [System.Xml.Linq.XDocument]::Load(
9191
"$(appxPackageDir)/Quarrel.appinstaller")
9292
$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("/", "_"))";
9595
$doc.Root.Element($xName).Attribute("Uri").Value =
9696
"https://github.com/UWPCommunity/Quarrel/releases/download/alpha-v$(Build.BuildNumber)/Quarrel.appinstaller" +
9797
$bundle.Replace("/", "_");
9898
9999
$xName = "{http://schemas.microsoft.com/appx/appinstaller/2017/2}Dependencies"
100100
101101
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("/", "_"))";
104104
$element.Attribute("Uri").Value =
105105
"https://github.com/UWPCommunity/Quarrel/releases/download/alpha-v$(Build.BuildNumber)/Quarrel.appinstaller" +
106106
$dep.Replace("/", "_");

0 commit comments

Comments
 (0)