From 377878b5d784891894225a521d4fb5cd2366d040 Mon Sep 17 00:00:00 2001 From: AndrewKahr <22359829+AndrewKahr@users.noreply.github.com> Date: Mon, 24 Jan 2022 13:37:35 -0800 Subject: [PATCH 1/4] Update src/model/action.ts Co-authored-by: Webber Takken --- src/model/action.ts | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/src/model/action.ts b/src/model/action.ts index bee77336..92df3988 100644 --- a/src/model/action.ts +++ b/src/model/action.ts @@ -31,8 +31,7 @@ class Action { static get dockerfile() { const currentPlatform = process.platform; - switch(currentPlatform) - { + switch (currentPlatform) { case "linux": return `${Action.actionFolder}/platforms/ubuntu/Dockerfile`; case "win32": From 390c97bb84bbfe8597feee3863170191f818007f Mon Sep 17 00:00:00 2001 From: AndrewKahr <22359829+AndrewKahr@users.noreply.github.com> Date: Mon, 24 Jan 2022 13:37:44 -0800 Subject: [PATCH 2/4] Update src/model/docker.ts Co-authored-by: Webber Takken --- src/model/docker.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/model/docker.ts b/src/model/docker.ts index 90db24c4..413f359d 100644 --- a/src/model/docker.ts +++ b/src/model/docker.ts @@ -1,7 +1,7 @@ import * as core from '@actions/core'; import { exec } from '@actions/exec'; import ImageTag from './image-tag'; -const fs = require('fs'); +import fs from 'fs'; class Docker { static async build(buildParameters, silent = false) { From e6c511b2ac0abea19950585919c2eb90bb6242aa Mon Sep 17 00:00:00 2001 From: AndrewKahr <22359829+AndrewKahr@users.noreply.github.com> Date: Mon, 24 Jan 2022 14:21:01 -0800 Subject: [PATCH 3/4] Update src/model/image-tag.ts Co-authored-by: David Finol --- src/model/image-tag.ts | 11 ----------- 1 file changed, 11 deletions(-) diff --git a/src/model/image-tag.ts b/src/model/image-tag.ts index 4b9e8765..4fe74764 100644 --- a/src/model/image-tag.ts +++ b/src/model/image-tag.ts @@ -68,17 +68,6 @@ class ImageTag { case Platform.types.StandaloneOSX: return mac; case Platform.types.StandaloneWindows: - // Can only build windows-il2cpp on a windows based system - if (process.platform === 'win32') { - // Unity versions before 2019.3 do not support il2cpp - 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. - If you are trying to build for windows-mono, please use a Linux based OS.`); - } - } - return windows; case Platform.types.StandaloneWindows64: // Can only build windows-il2cpp on a windows based system if (process.platform === 'win32') { From e6106232b333f64e734e6cbc55974061fbf1db4d Mon Sep 17 00:00:00 2001 From: AndrewKahr <22359829+AndrewKahr@users.noreply.github.com> Date: Mon, 24 Jan 2022 14:21:17 -0800 Subject: [PATCH 4/4] Update .github/workflows/build-tests.yml Co-authored-by: David Finol --- .github/workflows/build-tests.yml | 1 + 1 file changed, 1 insertion(+) diff --git a/.github/workflows/build-tests.yml b/.github/workflows/build-tests.yml index 7280067b..653e169e 100644 --- a/.github/workflows/build-tests.yml +++ b/.github/workflows/build-tests.yml @@ -84,6 +84,7 @@ jobs: - 2020.3.24f1 targetPlatform: - StandaloneWindows64 # Build a Windows 64-bit standalone. + - StandaloneWindows # Build a Windows 32-bit standalone. - WSAPlayer # Build a UWP App - tvOS # Build an Apple TV XCode project