Skip to content

Commit 67df711

Browse files
committed
Better cross platform support and bails out when on a platform that's unsupported. Drops 'Setup' in favor of just stating 'Windows' on Windows platform. Updates README.md and -Examples to match with Setup changes.
1 parent 3f26666 commit 67df711

File tree

2 files changed

+194
-120
lines changed

2 files changed

+194
-120
lines changed

README.md

Lines changed: 34 additions & 33 deletions
Original file line numberDiff line numberDiff line change
@@ -28,19 +28,19 @@ Find all of your Unity installs:
2828
Get-UnitySetupInstance
2929
3030
# Example output:
31-
# Version Components Path
32-
# ------- ---------- ----
33-
# 2017.1.2f1 Setup, Metro, UWP_IL2CPP C:\Program Files\Unity-2017.1.2f1\
34-
# 2017.1.3f1 Setup, Metro, UWP_IL2CPP C:\Program Files\Unity-2017.1.3f1\
35-
# 2017.2.1f1 Setup, Metro, UWP_IL2CPP C:\Program Files\Unity-2017.2.1f1\
36-
# 2017.3.1f1 Setup, Metro, UWP_IL2CPP, Linux, Vuforia C:\Program Files\Unity-2017.3.1f1\
37-
# 2018.1.0b4 Setup, Metro, UWP_IL2CPP, Vuforia C:\Program Files\Unity-2018.1.0b4\
38-
# 2018.1.0b8 All C:\Program Files\Unity-2018.1.0b8\
39-
# 2017.1.0p5 Setup, Metro, UWP_IL2CPP C:\Program Files\Unity.2017.1.0p5\
40-
# 2017.1.1f1 Setup, Metro, UWP_IL2CPP C:\Program Files\Unity.2017.1.1f1\
41-
# 2017.1.1p3 Setup, StandardAssets, Metro, UWP_IL2CPP C:\Program Files\Unity.2017.1.1p3\
42-
# 2017.2.0f3 Setup, Metro, UWP_IL2CPP, Vuforia C:\Program Files\Unity.2017.2.0f3\
43-
# 2017.3.0f3 Setup, Metro, UWP_IL2CPP, Mac, Vuforia C:\Program Files\Unity.2017.3.0f3\
31+
# Version Components Path
32+
# ------- ---------- ----
33+
# 2017.1.2f1 Windows, Metro, UWP_IL2CPP C:\Program Files\Unity-2017.1.2f1\
34+
# 2017.1.3f1 Windows, Metro, UWP_IL2CPP C:\Program Files\Unity-2017.1.3f1\
35+
# 2017.2.1f1 Windows, Metro, UWP_IL2CPP C:\Program Files\Unity-2017.2.1f1\
36+
# 2017.3.1f1 Windows, Metro, UWP_IL2CPP, Linux, Vuforia C:\Program Files\Unity-2017.3.1f1\
37+
# 2018.1.0b4 Windows, Metro, UWP_IL2CPP, Vuforia C:\Program Files\Unity-2018.1.0b4\
38+
# 2018.1.0b8 All C:\Program Files\Unity-2018.1.0b8\
39+
# 2017.1.0p5 Windows, Metro, UWP_IL2CPP C:\Program Files\Unity.2017.1.0p5\
40+
# 2017.1.1f1 Windows, Metro, UWP_IL2CPP C:\Program Files\Unity.2017.1.1f1\
41+
# 2017.1.1p3 Windows, StandardAssets, Metro, UWP_IL2CPP C:\Program Files\Unity.2017.1.1p3\
42+
# 2017.2.0f3 Windows, Metro, UWP_IL2CPP, Vuforia C:\Program Files\Unity.2017.2.0f3\
43+
# 2017.3.0f3 Windows, Metro, UWP_IL2CPP, Mac, Vuforia C:\Program Files\Unity.2017.3.0f3\
4444
```
4545

4646
Select the Unity installs that you want:
@@ -78,31 +78,32 @@ Find the installers for a particular version:
7878
Find-UnitySetupInstaller -Version '2017.3.0f3' | Format-Table
7979
8080
# Example output:
81-
# ComponentType Version Length LastModified DownloadUrl
82-
# ------------- ------- ------ ------------ -----------
83-
# Setup 2017.3.0f3 553688024 2017-12-18 08:15:20 https://netstorage.unity3d.com/unity/...
84-
# Documentation 2017.3.0f3 358911256 2017-12-18 08:18:37 https://netstorage.unity3d.com/unity/...
85-
# StandardAssets 2017.3.0f3 189886032 2017-12-18 08:15:52 https://netstorage.unity3d.com/unity/...
86-
# Metro 2017.3.0f3 172298008 2017-12-18 08:17:44 https://netstorage.unity3d.com/unity/...
87-
# UWP_IL2CPP 2017.3.0f3 152933480 2017-12-18 08:17:55 https://netstorage.unity3d.com/unity/...
88-
# Android 2017.3.0f3 194240888 2017-12-18 08:16:06 https://netstorage.unity3d.com/unity/...
89-
# iOS 2017.3.0f3 802853872 2017-12-18 08:17:21 https://netstorage.unity3d.com/unity/...
90-
# AppleTV 2017.3.0f3 273433528 2017-12-18 08:16:24 https://netstorage.unity3d.com/unity/...
91-
# Facebook 2017.3.0f3 32131560 2017-12-18 08:16:27 https://netstorage.unity3d.com/unity/...
92-
# Linux 2017.3.0f3 122271984 2017-12-18 08:17:30 https://netstorage.unity3d.com/unity/...
93-
# Vuforia 2017.3.0f3 65677296 2017-12-18 08:18:00 https://netstorage.unity3d.com/unity/...
94-
# WebGL 2017.3.0f3 134133288 2017-12-18 08:18:09 https://netstorage.unity3d.com/unity/...
81+
# ComponentType Version Length LastModified DownloadUrl
82+
# ------------- ------- ------ ------------ -----------
83+
# Windows 2017.3.0f3 553688024 12/18/2017 8:05:31 AM https://download.unity3d.com/download_unity/...
84+
# Linux 2017.3.0f3 122271984 12/18/2017 8:06:53 AM https://download.unity3d.com/download_unity/...
85+
# Mac 2017.3.0f3 28103888 12/18/2017 8:06:53 AM https://download.unity3d.com/download_unity/...
86+
# Documentation 2017.3.0f3 358911256 12/18/2017 8:07:34 AM https://download.unity3d.com/download_unity/...
87+
# StandardAssets 2017.3.0f3 189886032 12/18/2017 8:05:50 AM https://download.unity3d.com/download_unity/...
88+
# Metro 2017.3.0f3 172298008 12/18/2017 8:07:04 AM https://download.unity3d.com/download_unity/...
89+
# UWP_IL2CPP 2017.3.0f3 152933480 12/18/2017 8:07:10 AM https://download.unity3d.com/download_unity/...
90+
# Android 2017.3.0f3 194240888 12/18/2017 8:05:58 AM https://download.unity3d.com/download_unity/...
91+
# iOS 2017.3.0f3 802853872 12/18/2017 8:06:46 AM https://download.unity3d.com/download_unity/...
92+
# AppleTV 2017.3.0f3 273433528 12/18/2017 8:06:09 AM https://download.unity3d.com/download_unity/...
93+
# Facebook 2017.3.0f3 32131560 12/18/2017 8:06:12 AM https://download.unity3d.com/download_unity/...
94+
# Vuforia 2017.3.0f3 65677296 12/18/2017 8:07:12 AM https://download.unity3d.com/download_unity/...
95+
# WebGL 2017.3.0f3 134133288 12/18/2017 8:07:19 AM https://download.unity3d.com/download_unity/...
9596
```
9697

9798
Limit what components you search for:
9899
```powershell
99-
Find-UnitySetupInstaller -Version 2017.3.0f3 -Components 'Setup','Documentation' | Format-Table
100+
Find-UnitySetupInstaller -Version 2017.3.0f3 -Components 'Windows','Documentation' | Format-Table
100101
101102
# Example output:
102-
# ComponentType Version Length LastModified DownloadUrl
103-
# ------------- ------- ------ ------------ -----------
104-
# Setup 2017.3.0f3 553688024 2017-12-18 08:15:20 https://netstorage.unity3d.com/unity/...
105-
# Documentation 2017.3.0f3 358911256 2017-12-18 08:18:37 https://netstorage.unity3d.com/unity/...
103+
# ComponentType Version Length LastModified DownloadUrl
104+
# ------------- ------- ------ ------------ -----------
105+
# Windows 2017.3.0f3 553688024 12/18/2017 8:05:31 AM https://download.unity3d.com/download_unity/...
106+
# Documentation 2017.3.0f3 358911256 12/18/2017 8:07:34 AM https://download.unity3d.com/download_unity/...
106107
```
107108

108109
Install UnitySetup instances:
@@ -129,7 +130,7 @@ Configuration Sample_xUnitySetupInstance_Install {
129130
130131
xUnitySetupInstance Unity {
131132
Versions = '2017.3.1f1,2018.1.0b9'
132-
Components = 'Setup', 'Mac', 'Linux', 'Metro', 'iOS'
133+
Components = 'Windows', 'Mac', 'Linux', 'Metro', 'iOS'
133134
Ensure = 'Present'
134135
}
135136
}

0 commit comments

Comments
 (0)