Skip to content
This repository has been archived by the owner on Aug 11, 2024. It is now read-only.

Commit

Permalink
tweak path search
Browse files Browse the repository at this point in the history
  • Loading branch information
StephenHodgson committed Jul 17, 2024
1 parent e14b8a6 commit 82e0b80
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 5 deletions.
3 changes: 1 addition & 2 deletions dist/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -58619,8 +58619,7 @@ const getLicensingClient = () => {
// macOS (Editor versions 2021.3.19f1 or later): <UnityEditorDir>/Contents/Frameworks/UnityLicensingClient.app/Contents/MacOS/
// macOS (Editor versions earlier than 2021.3.19f1): <UnityEditorDir>/Contents/Frameworks/UnityLicensingClient.app/Contents/Resources/
// Linux: <UnityEditorDir>/Data/Resources/Licensing/Client
const editorPath = process.env.UNITY_EDITOR_PATH;
// parse version string from editor path
const editorPath = path.resolve(process.env.UNITY_EDITOR_PATH, '..');
const version = editorPath.match(/(\d+\.\d+\.\d+[a-z]?\d?)/)[0];
core.debug(`Unity Editor Path: ${editorPath}`);
core.debug(`Unity Version: ${version}`);
Expand Down
2 changes: 1 addition & 1 deletion dist/index.js.map

Large diffs are not rendered by default.

3 changes: 1 addition & 2 deletions src/activate.js
Original file line number Diff line number Diff line change
Expand Up @@ -209,8 +209,7 @@ const getLicensingClient = () => {
// macOS (Editor versions 2021.3.19f1 or later): <UnityEditorDir>/Contents/Frameworks/UnityLicensingClient.app/Contents/MacOS/
// macOS (Editor versions earlier than 2021.3.19f1): <UnityEditorDir>/Contents/Frameworks/UnityLicensingClient.app/Contents/Resources/
// Linux: <UnityEditorDir>/Data/Resources/Licensing/Client
const editorPath = process.env.UNITY_EDITOR_PATH;
// parse version string from editor path
const editorPath = path.resolve(process.env.UNITY_EDITOR_PATH, '..');
const version = editorPath.match(/(\d+\.\d+\.\d+[a-z]?\d?)/)[0];
core.debug(`Unity Editor Path: ${editorPath}`);
core.debug(`Unity Version: ${version}`);
Expand Down

0 comments on commit 82e0b80

Please sign in to comment.