Skip to content

Commit 085a21d

Browse files
committed
v1.0.11
1 parent 9e99610 commit 085a21d

File tree

4 files changed

+16
-3
lines changed

4 files changed

+16
-3
lines changed

CHANGELOG.md

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,12 @@ All notable changes to this project will be documented in this file.
55
The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/),
66
and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).
77

8+
## [1.0.11]
9+
10+
### Fixed
11+
12+
- Revert removing UNITYHUB_EDITORS_FOLDER_LOCATION environment variable approach to finding editor install location
13+
814
## [1.0.10]
915

1016
### Changed

lib/unity-path-tools.ts

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -37,6 +37,13 @@ export class UnityPathTools {
3737
case OS.Linux: return path.join('~', 'Unity', 'Hub', 'Editor');
3838
default: throw new Error('Operating system not supported!');
3939
}
40+
} else if (mode === 'environmentVariable') {
41+
const environmentVariablePath = process.env.UNITYHUB_EDITORS_FOLDER_LOCATION as string;
42+
if (!environmentVariablePath) {
43+
throw Error('Environment variable UNITYHUB_EDITORS_FOLDER_LOCATION does not exist on agent.');
44+
}
45+
46+
return environmentVariablePath;
4047
} else if (mode === 'specify') {
4148
if (!customPath) {
4249
throw Error(`${customPath} is not a valid Unity editors folder path.`);

package-lock.json

Lines changed: 2 additions & 2 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "@dinomite-studios/unity-azure-pipelines-tasks-lib",
3-
"version": "1.0.10",
3+
"version": "1.0.11",
44
"description": "A library containing common implementations for pipeline tasks available in the Unity Tools for Azure DevOps extension.",
55
"main": "dist/index.js",
66
"types": "dist/index.d.ts",

0 commit comments

Comments
 (0)