-
-
Notifications
You must be signed in to change notification settings - Fork 251
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Enable unity licensing server for Windows #638
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM. Can you confirm this works as expected?
if (!(process.env.UNITY_EMAIL && process.env.UNITY_PASSWORD)) { | ||
throw new Error(`Unity email and password must be set for Windows based builds to | ||
authenticate the license. Make sure to set them inside UNITY_EMAIL | ||
if (!((process.env.UNITY_EMAIL && process.env.UNITY_PASSWORD) || buildParameters.unityLicensingServer)) { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Perhaps it would be helpful to simplify the if statement by adding something like
const { unityLicensingServer } = buildParameters
const hasValidLicensingCredentials = process.env.UNITY_EMAIL && process.env.UNITY_PASSWORD
const hasValidLicensingStrategy = validLicensingCredentials || unityLicensingServer
if (!hasValidLicensingStrategy) { /* stuff */ }
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Agreed, I've added these variables for clarification.
We have tested this in our private repo and it works as intended (basically identical to the linux version) |
Hello @webbertakken , if any other changes are needed, I'd be glad to discuss or implement them. |
Released in v4.3.0. |
Hello
A simple version of unity licensing server support for Windows using the same logic as the existing Linux implementation.
Changes
activate.ps1
andreturn_license.ps1
to replicate what is done inactivate.sh
andreturn_license.sh
validate-windows.ts
to allow this option to pass through for a Windows builddocker.ts
to correctly copy the unity config file necessary for unity licensing server requestRelated PRs
Checklist
code of conduct
in the documentation repo)