Skip to content

Commit

Permalink
Appveyor config update
Browse files Browse the repository at this point in the history
add AOT test branch
  • Loading branch information
bagusnl committed Oct 30, 2024
1 parent e0aebfc commit 43c978a
Showing 1 changed file with 129 additions and 0 deletions.
129 changes: 129 additions & 0 deletions appveyor.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@ branches:
only:
- preview
- stable
- nativeaot-test
for:
-
branches:
Expand Down Expand Up @@ -262,3 +263,131 @@ for:
on_build_success: true
on_build_failure: true
on_build_status_changed: true


-
branches:
only:
- nativeaot-test
configuration: Release
platform: x64
clone_script:
- cmd: >-
git clone -q --branch=preview https://github.com/CollapseLauncher/Collapse.git C:\projects\collapse
git checkout origin/preview
install:
- cmd: >-
echo Init submodules
git submodule update --init --force --depth=1 --recursive
echo.
echo Install InnoSetup
set innoinstall=%temp%\innosetup.exe
curl "https://files.jrsoftware.org/is/6/innosetup-6.2.2.exe" --output %innoinstall%
cmd /c start /wait %innoinstall% /VERYSILENT /SUPPRESSMSGBOXES /NORESTART /SP-
echo.
echo Install dotnet sdk
choco install dotnet-sdk
dotnet --version
echo.
build_script:
- cmd: >-
@echo on
setlocal enabledelayedexpansion
echo Setting environments...
set name=Collapse
set channel=preview
set inno="C:\Program Files (x86)\Inno Setup 6\ISCC.exe"
echo.
echo Build app...
dotnet restore
dotnet publish CollapseLauncher -c Release -p:PublishProfile=Publish-PreviewReleaseAOT -p:PublishDir=".\preview-build\"
echo Getting app version...
for /f "tokens=2 delims==" %%I in ('wmic datafile where "name='C:\\projects\\collapse\\CollapseLauncher\\preview-build\\CollapseLauncher.exe'" get Version /value ^| find "Version"') do set "version_untrim=%%I"
set "version=%version_untrim:~0,-2%"
echo Got version %version%
echo.
echo Setting up Deployable Resources...
mkdir DeployResource
mkdir DeployResource\app-%version%
xcopy "CollapseLauncher\%channel%-build\*" "DeployResource\app-%version%\" /E /K /Y /I
echo Making innosetup file...
mkdir InnoTarget
%inno% /O+ /O "InstallerProp\DeployInstaller-%channel%-AppVeyor.iss"
echo.
echo Moving all the files into artifact to be pushed to SignPath
mkdir SignArtifact
mkdir SignArtifact\BuildArtifact-%version%
mkdir SignArtifact\InnoInstaller
xcopy "CollapseLauncher\%channel%-build\*" "SignArtifact\BuildArtifact-%version%\" /E /K /Y /I
xcopy "InnoTarget\*" "SignArtifact\InnoInstaller\" /E /K /Y /I


test: off
artifacts:
- path: SignArtifact\
name: SignArtifact-Preview

deploy:
- provider: Webhook
url: https://app.signpath.io/API/v1/6988fc60-19f4-4710-8eb7-e837c60c83b4/Integrations/AppVeyor?ProjectSlug=Collapse&SigningPolicySlug=test-signing&ArtifactConfigurationSlug=preview-aot
authorization:
secure: B8zpDU6wkKuCBRz65VfTFxUCxY7HniWmRbJP/E3tE40kGmHKdaFnMCDSURQFWwR1pCcXHqbkJd3YX76tnTXQow==
on:
branch: preview
notifications:
- provider: Email
to:
- [email protected]
on_build_success: true
on_build_failure: true
on_build_status_changed: true

0 comments on commit 43c978a

Please sign in to comment.