The Amazon GameLift Plugin for Unity contains libraries and native UI that makes it easier to access GameLift resources and integrate GameLift into your Unity game. You can use the GameLift Unity Plugin to access GameLift APIs and deploy AWS CloudFormation templates for common gaming scenarios.
With 2.x, we changed up the artifact we released from the tarball to a ZIP including the tarball, the CSharp Server SDK for Unity (with the license file removed), and a readme for installation instructions. This PR looks to update the scripts to handle this new artifact automatically.
Update release script to,
Accept a parameter for the server sdk version for the release
Download the server sdk, remove the license file, and re-package the zip
Package a zip including an installation readme, the server sdk zip, and the plugin tarball
Use $LASTEXITCODE to accurately stop execution of the script when an error occurs (at any level)
Known issue: If the error occurs with the call command itself (ex: & "$PSScriptRoot\build.ps1"), $LASTEXITCODE will not be set and the script won't terminate.
Prevent npm pack from including new artifact files (repeated calls to export.ps1 would exponentially grow the tarball size)
Add some color to the logs:
Green - Important step succeeded (building the sample project and packaging the release zip)
With 2.x, we changed up the artifact we released from the tarball to a ZIP including the tarball, the CSharp Server SDK for Unity (with the license file removed), and a readme for installation instructions. This PR looks to update the scripts to handle this new artifact automatically.
Update release script to,
$LASTEXITCODE
to accurately stop execution of the script when an error occurs (at any level)& "$PSScriptRoot\build.ps1"
),$LASTEXITCODE
will not be set and the script won't terminate.npm pack
from including new artifact files (repeated calls toexport.ps1
would exponentially grow the tarball size)By submitting this pull request, I confirm that you can use, modify, copy, and redistribute this contribution, under the terms of your choice.