From 3e490a11960e03755ea8b982e08b033b18d2a48e Mon Sep 17 00:00:00 2001 From: "prompt.ac/@jeffrey" Date: Sat, 18 Jul 2026 15:58:45 -0700 Subject: [PATCH] ci: build Xbox latency app on AppVeyor --- appveyor.yml | 42 ++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 42 insertions(+) create mode 100644 appveyor.yml diff --git a/appveyor.yml b/appveyor.yml new file mode 100644 index 0000000000..15d85bdcae --- /dev/null +++ b/appveyor.yml @@ -0,0 +1,42 @@ +version: 1.0.{build} +image: Visual Studio 2022 +clone_depth: 1 + +environment: + solution: xbox\native-latency\XboxLatency.sln + project_root: xbox\native-latency + package_dir: C:\projects\aesthetic-computer\artifacts\ + cert_password: aesthetic-xbox-ci + +install: + - ps: | + $assets = Join-Path $env:APPVEYOR_BUILD_FOLDER "$env:project_root\Assets" + New-Item -ItemType Directory -Force $assets | Out-Null + $png = [Convert]::FromBase64String('iVBORw0KGgoAAAANSUhEUgAAAAEAAAABCAYAAAAfFcSJAAAADUlEQVQIHWP4z8DwHwAFgAI/ScL8WQAAAABJRU5ErkJggg==') + 'Square150x150Logo.png','Square44x44Logo.png','Wide310x150Logo.png','SplashScreen.png','StoreLogo.png' | + ForEach-Object { [IO.File]::WriteAllBytes((Join-Path $assets $_), $png) } + $cert = New-SelfSignedCertificate -Type Custom -Subject 'CN=AestheticComputerDev' ` + -KeyUsage DigitalSignature -FriendlyName 'AC Xbox CI' -CertStoreLocation 'Cert:\CurrentUser\My' + $password = ConvertTo-SecureString $env:cert_password -AsPlainText -Force + Export-PfxCertificate -Cert $cert ` + -FilePath (Join-Path $env:APPVEYOR_BUILD_FOLDER "$env:project_root\XboxLatency_TemporaryKey.pfx") ` + -Password $password | Out-Null + +build_script: + - cmd: >- + msbuild "%solution%" /restore /m + /p:Configuration=Release /p:Platform=x64 + /p:GenerateAppxPackageOnBuild=true /p:AppxBundle=Never + /p:UapAppxPackageBuildMode=SideloadOnly + /p:PackageCertificatePassword=%cert_password% + /p:AppxPackageDir=%package_dir% + +test: off + +artifacts: + - path: artifacts\**\* + name: xbox-native-latency-x64 + +branches: + only: + - main -- 2.51.2