-
-
Notifications
You must be signed in to change notification settings - Fork 142
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Feature/add support for licensing server (#196)
* First take on adding support for sending in unity licensing server url on linux * Forgot to build dist * Moved services-config parsing to typescript * Need to set licensing server env variable for activate.sh * Forgot unused docker mount directory /resources
- Loading branch information
Showing
9 changed files
with
126 additions
and
7 deletions.
There are no files selected for viewing
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
Large diffs are not rendered by default.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
{ | ||
"licensingServiceBaseUrl": "%URL%", | ||
"enableEntitlementLicensing": true, | ||
"enableFloatingApi": true, | ||
"clientConnectTimeoutSec": 5, | ||
"clientHandshakeTimeoutSec": 10 | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,20 @@ | ||
import * as core from '@actions/core'; | ||
import fs from 'fs'; | ||
|
||
class LicensingServerSetup { | ||
public static Setup(unityLicensingServer, actionFolder: string) { | ||
const servicesConfigPath = `${actionFolder}/unity-config/services-config.json`; | ||
const servicesConfigPathTemplate = `${servicesConfigPath}.template`; | ||
if (!fs.existsSync(servicesConfigPathTemplate)) { | ||
core.error(`Missing services config ${servicesConfigPathTemplate}`); | ||
|
||
return; | ||
} | ||
|
||
let servicesConfig = fs.readFileSync(servicesConfigPathTemplate).toString(); | ||
servicesConfig = servicesConfig.replace('%URL%', unityLicensingServer); | ||
fs.writeFileSync(servicesConfigPath, servicesConfig); | ||
} | ||
} | ||
|
||
export default LicensingServerSetup; |