Skip to content

Commit

Permalink
Release v1.1.0
Browse files Browse the repository at this point in the history
  • Loading branch information
operate-services-sdk-bot committed Oct 12, 2023
1 parent f2b24e9 commit ad18fd2
Show file tree
Hide file tree
Showing 327 changed files with 16,277 additions and 1,415 deletions.
41 changes: 41 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,42 @@ All notable changes to UGS CLI will be documented in this file.
The format is based on [Keep a Changelog](http://keepachangelog.com/en/1.0.0/)
and this project adheres to [Semantic Versioning](http://semver.org/spec/v2.0.0.html).

## [1.1.0] - 2023-10-12

### Added
* Bash installer to download and install the UGS CLI on MacOS and Linux
* Added config as code support for economy module
* Deploy
* Fetch
* Added config as code support for access module
* Deploy
* Fetch
* Added `new-file` commands for economy resources
* For inventory items
* For currencies
* For virtual purchases
* For real-item purchases
* For Cloud Code C# Modules
* For project access policies
* For triggers
* Added `gsh server files` command behind feature flag
* Added support for .sln files on deploy
* .sln files now are compiled and zipped into .ccm before deploying
* Added config as code support for triggers
* Deploy

### Changed
- Services can support multiple file extensions
- Updated server states in `ugs gsh machine list`

### Fixed
- Handle exceptions when using Deploy with a Remote Config file that has unsupported config types.
- Fixed an issue where if a leaderboard fails to load, it incorrectly deploys as a empty leaderboard and it is not reported
- Added correct description when Cloud Code deploy has duplication file error during dry-run.
- Fixed an issue with `ugs gsh fleet-region update` not ensuring the fleet region is brought online by default.
- Handle exception for mis-spelt bool input params for `ugs gsh fleet-region update` command.
- Fixed an issue with Deploy and Fetch on Remote Config containing JSON arrays.

## [1.0.0] - 2023-08-01

### Added
Expand All @@ -15,12 +51,17 @@ and this project adheres to [Semantic Versioning](http://semver.org/spec/v2.0.0.
- Deploy sends file configurations into the service
- Fetch updates local files based on service configuration
- Leaderboards now supports `new-file`, to create an empty file for leaderboards
- Added new commands to Game Server Hosting for: machine list

### Changed
- Removed Leaderboards support to `create` and `update` commands.

### Fixed
- GSH Fleet Region Update now properly reports offline fleet region values.
- GSH Fleet Region server settings now align with UDash
- A bug logging an additional error when deploying a file.
- A bug preventing Remote Config deploy from printing entries when encountering a `RemoteConfigDeploymentException`.
- A bug in Cloud Code scripts throwing unhandled exception when using create command with a directory path but an empty file name.

## [1.0.0-beta.6] - 2023-07-10

Expand Down
17 changes: 6 additions & 11 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,20 +1,13 @@
# UGS CLI
For installing the UGS CLI and getting started, see [Getting Started](https://services.docs.unity.com/guides/ugs-cli/latest/general/get-started/install-the-cli).
The unity gaming services (UGS) CLI is a unified command line interface tool for gaming services.

The source code project is for reference only. You may not be able to build it due to lack of access to internal dependencies.

## Installation

### With npm
Install the CLI with npm by calling `npm install -g ugs` in your command line.

### With GitHub
Download the executable directly from the [GitHub releases](https://github.com/Unity-Technologies/unity-gaming-services-cli/releases).

On macos and linux, use `chmod +x <path_to_executable>` to mark the file as executable.
## Installation and Getting Started
To get started and install the CLI, see [Getting Started].

## Documentation
To see the full list of services and commands available in the UGS CLI, visit the documentation on https://services.docs.unity.com/guides/ugs-cli/latest/general/overview
To see the full list of services and commands available in the UGS CLI, visit the [documentation].

## Basic Commands
An UGS CLI command has the following format:
Expand Down Expand Up @@ -55,3 +48,5 @@ Please [Submit a Request](https://support.unity.com/hc/en-us/requests/new?ticket
[Alpine]: https://alpinelinux.org/
[Ubuntu]: https://ubuntu.com/
[Windows]: https://www.microsoft.com/windows/
[Getting Started]: https://services.docs.unity.com/guides/ugs-cli/latest/general/get-started/install-the-cli
[Documentation]: https://services.docs.unity.com/guides/ugs-cli/latest/general/overview
15 changes: 15 additions & 0 deletions Samples/Deploy/Access/sample-policy.ac
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
{
"$schema": "https://ugs-config-schemas.unity3d.com/v1/project-access-policy.schema.json",
"Statements": [
{
"Sid": "DenyAccessToAllServices",
"Action": [
"*"
],
"Effect": "Allow",
"Principal": "Player",
"Resource": "urn:ugs:*",
"Version": "1.0.0"
}
]
}
Binary file added Samples/Deploy/CloudCode/Module/Module.ccm
Binary file not shown.
File renamed without changes.
4 changes: 4 additions & 0 deletions Samples/Deploy/Economy/CURRENCY.ecc
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
{
"initial": 3333,
"name": "currency"
}
3 changes: 3 additions & 0 deletions Samples/Deploy/Economy/INVENTORY_ITEM.eci
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
{
"name": "inventory item"
}
12 changes: 12 additions & 0 deletions Samples/Deploy/Economy/REAL_MONEY_PURCHASE.ecr
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
{
"storeIdentifiers": {
"googlePlayStore": "123"
},
"rewards": [
{
"resourceId": "CURRENCY",
"amount": 6
}
],
"name": "My Real Money Purchase"
}
15 changes: 15 additions & 0 deletions Samples/Deploy/Economy/VIRTUAL_MONEY_PURCHASE.ecv
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
{
"costs": [
{
"resourceId": "CURRENCY",
"amount": 2
}
],
"rewards": [
{
"resourceId": "INVENTORY_ITEM",
"amount": 6
}
],
"name": "My Virtual Purchase"
}
26 changes: 26 additions & 0 deletions Samples/Deploy/Leaderboards/lbsample.lb
Original file line number Diff line number Diff line change
@@ -0,0 +1,26 @@
{
"$schema": "https://ugs-config-schemas.unity3d.com/v1/leaderboards.schema.json",
"SortOrder": "asc",
"UpdateType": "keepBest",
"Name": "My Leaderboard",
"ResetConfig": {
"Start": "2023-08-25T00:00:00-04:00",
"Schedule": "0 12 1 * *"
},
"TieringConfig": {
"Strategy": "score",
"Tiers": [
{
"Id": "Gold",
"Cutoff": 200.0
},
{
"Id": "Silver",
"Cutoff": 100.0
},
{
"Id": "Bronze"
}
]
}
}
16 changes: 16 additions & 0 deletions Samples/Deploy/Triggers/my-triggers.tr
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
{
"Configs": [
{
"Name": "Trigger 1",
"EventType": "EventType1",
"ActionType": "cloud-code",
"ActionUrn": "urn:ugs:cloud-code:MyScript"
},
{
"Name": "Trigger 2",
"EventType": "EventType2",
"ActionType": "cloud-code",
"ActionUrn": "urn:ugs:cloud-code:MyModule/MyFunction"
}
]
}
Loading

0 comments on commit ad18fd2

Please sign in to comment.