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

Commit

Permalink
Merge pull request #10 from spatialos/release-2.0.0-rc-01
Browse files Browse the repository at this point in the history
Release 2.0.0-rc-01
  • Loading branch information
oblm authored Jun 12, 2018
2 parents ac91982 + 9e60439 commit 9d3724d
Show file tree
Hide file tree
Showing 27 changed files with 70 additions and 598 deletions.

This file was deleted.

This file was deleted.

Original file line number Diff line number Diff line change
Expand Up @@ -409,11 +409,7 @@ private static void SwapInList<T>(IList<T> list, int indexA, int indexB)

private static IDisposable IndentLevelScope(int increment)
{
#if UNITY_2017_3_OR_NEWER
return new EditorGUI.IndentLevelScope(increment);
#else
return new FallbackIndentLevelScope(increment);
#endif
}
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -9,12 +9,7 @@ namespace Improbable.Unity.MinimalBuildSystem.Configuration
{
public class WorkerBuildData
{
internal const BuildTarget OSXBuildTarget =
#if UNITY_2017_3_OR_NEWER
BuildTarget.StandaloneOSX;
#else
BuildTarget.StandaloneOSXIntel64;
#endif
internal const BuildTarget OSXBuildTarget = BuildTarget.StandaloneOSX;

private readonly WorkerPlatform workerPlatform;
private readonly BuildTarget buildTarget;
Expand Down

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Original file line number Diff line number Diff line change
Expand Up @@ -32,11 +32,7 @@ internal static PlayerBuildConfiguation Generate()
Targets = new List<string>
{
BuildTarget.StandaloneWindows.ToString(),
#if UNITY_2017_3_OR_NEWER
BuildTarget.StandaloneOSX.ToString()
#else
BuildTarget.StandaloneOSXIntel64.ToString()
#endif
}
}
},
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,9 @@
using Improbable.Unity.EditorTools.Util;
using Improbable.Unity.Util;
using UnityEditor;
#if UNITY_2018_1_OR_NEWER
using UnityEditor.Build.Reporting;
#endif
using UnityEngine;

namespace Improbable.Unity.EditorTools.Build
Expand Down Expand Up @@ -51,15 +54,6 @@ private static BuildTarget ToRuntimePlatform(string platform)
if (platform.ToLower() != "current")
{
var value = (BuildTarget) Enum.Parse(typeof(BuildTarget), platform);
#if UNITY_2017_3_OR_NEWER
#pragma warning disable 618
if (value == BuildTarget.StandaloneOSXIntel64)
{
Debug.LogWarningFormat("{0} is deprecated and will be removed. Please update {1} to use {2} instead.", BuildTarget.StandaloneOSXIntel64, UnityPlayerBuilders.PlayerConfigurationFilePath, BuildTarget.StandaloneOSX);
value = BuildTarget.StandaloneOSX;
}
#pragma warning restore 618
#endif
return value;
}

Expand All @@ -73,11 +67,7 @@ internal static BuildTarget CurrentPlatform()
case RuntimePlatform.WindowsEditor:
return BuildTarget.StandaloneWindows;
case RuntimePlatform.OSXEditor:
#if UNITY_2017_3_OR_NEWER
return BuildTarget.StandaloneOSX;
#else
return BuildTarget.StandaloneOSXIntel64;
#endif
case RuntimePlatform.LinuxEditor:
return BuildTarget.StandaloneLinux64;
default:
Expand Down Expand Up @@ -120,11 +110,7 @@ internal string AssemblyDirectory
{
switch (BuildTarget)
{
#if UNITY_2017_3_OR_NEWER
case BuildTarget.StandaloneOSX:
#else
case BuildTarget.StandaloneOSXIntel64:
#endif
{
return PathUtil.Combine(PackagePath, string.Format("{0}.app", PackageName), "Contents", "Resources", "Data", "Managed");
}
Expand Down Expand Up @@ -202,11 +188,7 @@ private static PlatformData CreatePlatformData(BuildTarget buildTarget)
return new PlatformData("Managed", "Windows", "_Data", ".exe");
case BuildTarget.StandaloneWindows64:
return new PlatformData("Managed", "Windows", "_Data", ".exe");
#if UNITY_2017_3_OR_NEWER
case BuildTarget.StandaloneOSX:
#else
case BuildTarget.StandaloneOSXIntel64:
#endif
return new PlatformData("Contents/Data/Managed", "Mac", ".app", "");
case BuildTarget.StandaloneLinux64:
return new PlatformData("Managed", "Linux", "_Data", "");
Expand All @@ -228,12 +210,19 @@ internal void BuildPlayer()

var playerOptions = new BuildPlayerOptions { target = BuildTarget, locationPathName = tempExecutablePath, options = options, scenes = scenes };
var buildErrorMessage = BuildPipeline.BuildPlayer(playerOptions);
#if UNITY_2018_1_OR_NEWER
if (buildErrorMessage.summary.result != BuildResult.Succeeded)
{
throw new ApplicationException(string.Format("Failed to build player {0} due to {1} errors", BuildConfigComment,
buildErrorMessage.summary.totalErrors));
}
#else
if (!string.IsNullOrEmpty(buildErrorMessage))
{
throw new ApplicationException(string.Format("Failed to build player {0} due to {1}", BuildConfigComment,
buildErrorMessage));
}

#endif
Debug.LogFormat("Built player {0} into {1}", BuildConfigComment, PackagePath);
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -16,8 +16,8 @@ namespace Improbable.Unity.EditorTools
[InitializeOnLoad]
public class SpatialOsWindow : EditorWindow
{
private const string MinVersion = "5.6.0";
private const string MaxVersion = "2017.3.0";
private const string MinVersion = "2017.3.0";
private const string MaxVersion = "2018.1.3";

private static SharedGuiContent sharedContent;
private static string versionMessage;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -20,13 +20,7 @@ public class EntityPrefabExporter
{
{ BuildTarget.StandaloneWindows, Platform.BuildPlatform.Windows },
{ BuildTarget.StandaloneWindows64, Platform.BuildPlatform.Windows },
#if UNITY_2017_3_OR_NEWER
{ BuildTarget.StandaloneOSX, Platform.BuildPlatform.OSX },
#else
{ BuildTarget.StandaloneOSXIntel, Platform.BuildPlatform.OSX },
{ BuildTarget.StandaloneOSXIntel64, Platform.BuildPlatform.OSX },
{ BuildTarget.StandaloneOSXUniversal, Platform.BuildPlatform.OSX },
#endif
{ BuildTarget.StandaloneLinux, Platform.BuildPlatform.Linux },
{ BuildTarget.StandaloneLinux64, Platform.BuildPlatform.Linux },
{ BuildTarget.iOS, Platform.BuildPlatform.iOS }
Expand Down
Binary file removed docs/assets/setup/setup-unity-build-support-mac.png
Binary file not shown.
Binary file removed docs/assets/setup/setup-unity-build-support-win.png
Binary file not shown.
Binary file not shown.
17 changes: 2 additions & 15 deletions docs/get-started/requirements.md
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ Up-to-date versions of Windows 7 and 10 work with SpatialOS.
| Required for | |
| --- | --- |
| All SpatialOS development | `spatial` CLI ([download directly](setup/win.md#2-set-up-the-spatialos-cli)) <br> PowerShell 3.0 and later / Windows Command Prompt / Git BASH (For local deployments, you must use PowerShell or Command Prompt.) <br> [Visual C++ Redistributable for Visual Studio 2015](https://www.microsoft.com/en-gb/download/details.aspx?id=48145) |
| [Unity SDK](../introduction.md) | [Unity 2017.3.0](https://unity3d.com/get-unity/download/archive), including `Linux Build Support` and `Mac Build Support` <br> Unity versions **5.6.0** and **2017.3.0** have been tested with SpatialOS. Other versions may work fine, but have not been extensively tested. |
| [Unity SDK](../introduction.md) | [Unity 2018.1.3](https://unity3d.com/get-unity/download/archive), including `Linux Build Support` and `Mac Mono Scripting Backend Support` <br> Unity versions **2017.3.0** and **2018.1.3** have been tested with SpatialOS. Other versions may work fine, but have not been extensively tested. |

You can find installation instructions for the basic requirements in the [setup guide for Windows](setup/win.md).

Expand All @@ -20,23 +20,10 @@ Up-to-date versions of macOS Sierra, El Capitan and High Sierra work with Spati
| Required for | |
| --- | --- |
| All SpatialOS development | `spatial` CLI [download directly](setup/mac.md#2-set-up-the-spatialos-cli) <br> Any Bash terminal |
| [Unity SDK](../introduction.md) | [Unity 2017.3.0](https://unity3d.com/get-unity/download/archive), including `Linux Build Support` and `Windows Build Support` |
| [Unity SDK](../introduction.md) | [Unity 2018.1.3](https://unity3d.com/get-unity/download/archive), including `Linux Build Support` and `Windows Build Support` |

You can find installation instructions for the basic requirements in the [setup guide for macOS](setup/mac.md).

### Linux requirements

Major distributions (e.g,. Ubuntu, Fedora, CentOS) on machines with an AMD64 processor should work with the C++, C# and Java SDKs. The Launcher will not work.

Unity themselves only experimentally support Linux.

| Required for | |
| --- | --- |
| All SpatialOS development | `spatial` CLI ([download directly](setup/linux.md#2-set-up-the-spatialos-cli)) <br> Any Bash terminal |
| [Unity SDK](../introduction.md) | You can try [experimental Unity 2017.3.0](https://forum.unity3d.com/threads/unity-on-linux-release-notes-and-known-issues.350256/#post-3017538) <br> [Mono latest](http://www.mono-project.com/docs/getting-started/install/linux/) |

You can find installation instructions for the basic requirements in the [setup guide for Linux](setup/linux.md).

### Browsers

To access the Console and Inspector, you'll need one of the following:
Expand Down
55 changes: 0 additions & 55 deletions docs/get-started/setup/linux.md

This file was deleted.

Loading

0 comments on commit 9d3724d

Please sign in to comment.