Skip to content

Commit

Permalink
Make platform-specific upgrade packages
Browse files Browse the repository at this point in the history
  • Loading branch information
maddie480 committed Dec 23, 2024
1 parent eb33efa commit 53ffeb3
Show file tree
Hide file tree
Showing 2 changed files with 15 additions and 3 deletions.
16 changes: 14 additions & 2 deletions azure-pipelines.yml
Original file line number Diff line number Diff line change
Expand Up @@ -343,8 +343,9 @@ steps:
Copy-Item -Path uninstaller-winforms/bin/Release/net452/Olympus.exe -Destination love/uninstall.exe
Compress-Archive -Path love/* -DestinationPath $env:BUILD_ARTIFACTSTAGINGDIRECTORY/main/dist.zip -Force
New-Item -Path $env:BUILD_ARTIFACTSTAGINGDIRECTORY/update -ItemType Directory
New-Item -Path $env:BUILD_ARTIFACTSTAGINGDIRECTORY/windows-update -ItemType Directory
Copy-Item -Path olympus.love -Destination $env:BUILD_ARTIFACTSTAGINGDIRECTORY/update/olympus.love
Compress-Archive -Path love/sharp/* -DestinationPath $env:BUILD_ARTIFACTSTAGINGDIRECTORY/update/sharp.zip -Force
Compress-Archive -Path love/sharp/* -DestinationPath $env:BUILD_ARTIFACTSTAGINGDIRECTORY/platform-update/sharp.zip -Force
New-Item -Path $env:BUILD_ARTIFACTSTAGINGDIRECTORY/launcher-winforms -ItemType Directory
Copy-Item -Path launcher-winforms/bin/Release/net452/Olympus.exe -Destination $env:BUILD_ARTIFACTSTAGINGDIRECTORY/launcher-winforms/Olympus.exe
Expand Down Expand Up @@ -385,6 +386,8 @@ steps:
mkdir $BUILD_ARTIFACTSTAGINGDIRECTORY/main
zip --symlinks -r $BUILD_ARTIFACTSTAGINGDIRECTORY/main/dist.zip *
popd
mkdir $BUILD_ARTIFACTSTAGINGDIRECTORY/platform-update
zip -r $BUILD_ARTIFACTSTAGINGDIRECTORY/platform-update/sharp.zip love/$LOVEBINARYDIRECTORY/sharp/*
# Linux
- task: CmdLine@2
Expand Down Expand Up @@ -413,6 +416,8 @@ steps:
mkdir $BUILD_ARTIFACTSTAGINGDIRECTORY/main
zip --symlinks -r $BUILD_ARTIFACTSTAGINGDIRECTORY/main/dist.zip *
popd
mkdir $BUILD_ARTIFACTSTAGINGDIRECTORY/platform-update
zip -r $BUILD_ARTIFACTSTAGINGDIRECTORY/platform-update/sharp.zip love/sharp/*
# Publish.
- task: PublishBuildArtifacts@1
Expand All @@ -425,12 +430,19 @@ steps:
publishLocation: 'Container'
- task: PublishBuildArtifacts@1
condition: and(succeeded(), eq(variables.agentArch, 'windows'))
displayName: 'Dist: Publish update'
displayName: 'Dist: Publish update (common)'
continueOnError: true
inputs:
pathtoPublish: '$(Build.ArtifactStagingDirectory)/update'
artifactName: 'update'
publishLocation: 'Container'
- task: PublishBuildArtifacts@1
displayName: 'Dist: Publish update (platform-specific)'
continueOnError: true
inputs:
pathtoPublish: '$(Build.ArtifactStagingDirectory)/platform-update'
artifactName: '$(artifactPrefix)update$(artifactSuffix)'
publishLocation: 'Container'
- task: PublishBuildArtifacts@1
condition: and(succeeded(), eq(variables.agentArch, 'windows'))
displayName: 'Dist: Publish launcher-winforms'
Expand Down
2 changes: 1 addition & 1 deletion changelog.txt
Original file line number Diff line number Diff line change
Expand Up @@ -3,4 +3,4 @@ and only contains the latest changes.
Its purpose is to be shown in Olympus when updating.

#changelog#
Fixed game freezing during startup when ran through Olympus on Windows
Make platform-specific upgrade packages instead of giving Olympus.Sharp for Windows to all platforms

0 comments on commit 53ffeb3

Please sign in to comment.