Support for inspect builds

pull/419/head
Frostebite 2022-08-10 04:49:04 +01:00
parent 2b4e2c44e1
commit 294a39ed33
3 changed files with 5 additions and 5 deletions

4
dist/index.js vendored
View File

@ -5207,9 +5207,9 @@ class ImageTag {
case platform_1.default.types.StandaloneWindows:
case platform_1.default.types.StandaloneWindows64:
// Can only build windows-il2cpp on a windows based system
if (process.platform === 'win32') {
if (process.env.il2cppEnabled && process.platform === 'win32') {
// Unity versions before 2019.3 do not support il2cpp
if ((process.env.il2cppEnabled && major >= 2020) || (major === 2019 && minor >= 3)) {
if (major >= 2020 || (major === 2019 && minor >= 3)) {
return windowsIl2cpp;
}
else {

2
dist/index.js.map vendored

File diff suppressed because one or more lines are too long

View File

@ -83,9 +83,9 @@ class ImageTag {
case Platform.types.StandaloneWindows:
case Platform.types.StandaloneWindows64:
// Can only build windows-il2cpp on a windows based system
if (process.platform === 'win32') {
if (process.env.il2cppEnabled && process.platform === 'win32') {
// Unity versions before 2019.3 do not support il2cpp
if ((process.env.il2cppEnabled && major >= 2020) || (major === 2019 && minor >= 3)) {
if (major >= 2020 || (major === 2019 && minor >= 3)) {
return windowsIl2cpp;
} else {
throw new Error(`Windows-based builds are only supported on 2019.3.X+ versions of Unity.