Skip to content

Commit a77fc9d

Browse files
committed
Initial commit of module
0 parents  commit a77fc9d

File tree

5 files changed

+460
-0
lines changed

5 files changed

+460
-0
lines changed

.gitignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
.vscode

LICENSE.md

Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,21 @@
1+
MIT License
2+
3+
Copyright (c) Microsoft Corporation. All rights reserved.
4+
5+
Permission is hereby granted, free of charge, to any person obtaining a copy
6+
of this software and associated documentation files (the "Software"), to deal
7+
in the Software without restriction, including without limitation the rights
8+
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
9+
copies of the Software, and to permit persons to whom the Software is
10+
furnished to do so, subject to the following conditions:
11+
12+
The above copyright notice and this permission notice shall be included in all
13+
copies or substantial portions of the Software.
14+
15+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16+
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17+
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18+
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19+
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20+
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
21+
SOFTWARE

README.md

Lines changed: 37 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,37 @@
1+
# Unity Setup Powershell Module
2+
3+
This PowerShell module contains cmdlets to query installed instances of Unity3D and easily launch the Unity Editor for the correct instances for Unity projects.
4+
5+
## Installation
6+
7+
```powershell
8+
PS C:\> Install-Module UnitySetup -Scope CurrentUser
9+
```
10+
11+
## Using
12+
13+
```powershell
14+
PS C:\> Get-UnitySetupInstance
15+
```
16+
17+
```powershell
18+
PS C:\> Get-UnitySetupInstance | Select-UnitySetupInstance -Latest
19+
PS C:\> Get-UnitySetupInstance | Select-UnitySetupInstance -Version '2017.1.1f1'
20+
PS C:\> Get-UnitySetupInstance | Select-UnitySetupInstance -Project '.\MyUnityProject'
21+
```
22+
23+
```powershell
24+
PS C:\MyUnityProject> Start-UnityEditor
25+
```
26+
27+
# Feedback
28+
To file issues or suggestions, please use the [Issues](https://github.com/Microsoft/unitysetup.powershell/issues) page for this project on GitHub.
29+
30+
31+
# Contributing
32+
33+
This project welcomes contributions and suggestions. Most contributions require you to agree to a Contributor License Agreement (CLA) declaring that you have the right to, and actually do, grant us the rights to use your contribution. For details, visit https://cla.microsoft.com.
34+
35+
When you submit a pull request, a CLA-bot will automatically determine whether you need to provide a CLA and decorate the PR appropriately (e.g., label, comment). Simply follow the instructions provided by the bot. You will only need to do this once across all repos using our CLA.
36+
37+
This project has adopted the [Microsoft Open Source Code of Conduct](https://opensource.microsoft.com/codeofconduct/). For more information see the [Code of Conduct FAQ](https://opensource.microsoft.com/codeofconduct/faq/) or contact [[email protected]](mailto:[email protected]) with any additional questions or comments.

UnitySetup/UnitySetup.psd1

Lines changed: 130 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,130 @@
1+
# Copyright (c) Microsoft Corporation. All rights reserved.
2+
# Licensed under the MIT License.
3+
#
4+
# Module manifest for module 'PSGet_UnitySetup'
5+
#
6+
# Generated by: Josh Wittner
7+
#
8+
# Generated on: 2017-08-04
9+
#
10+
11+
@{
12+
13+
# Script module or binary module file associated with this manifest.
14+
RootModule = 'UnitySetup'
15+
16+
# Version number of this module.
17+
ModuleVersion = '1.3'
18+
19+
# Supported PSEditions
20+
# CompatiblePSEditions = @()
21+
22+
# ID used to uniquely identify this module
23+
GUID = '6dc524ef-5f56-4bc3-b04d-3c2906898f40'
24+
25+
# Author of this module
26+
Author = 'Josh Wittner'
27+
28+
# Company or vendor of this module
29+
CompanyName = 'Microsoft'
30+
31+
# Copyright statement for this module
32+
Copyright = 'Copyright (c) Microsoft Corporation. All rights reserved.'
33+
34+
# Description of the functionality provided by this module
35+
Description = 'Support finding and selecting installs of Unity'
36+
37+
# Minimum version of the Windows PowerShell engine required by this module
38+
# PowerShellVersion = ''
39+
40+
# Name of the Windows PowerShell host required by this module
41+
# PowerShellHostName = ''
42+
43+
# Minimum version of the Windows PowerShell host required by this module
44+
# PowerShellHostVersion = ''
45+
46+
# Minimum version of Microsoft .NET Framework required by this module. This prerequisite is valid for the PowerShell Desktop edition only.
47+
# DotNetFrameworkVersion = ''
48+
49+
# Minimum version of the common language runtime (CLR) required by this module. This prerequisite is valid for the PowerShell Desktop edition only.
50+
# CLRVersion = ''
51+
52+
# Processor architecture (None, X86, Amd64) required by this module
53+
# ProcessorArchitecture = ''
54+
55+
# Modules that must be imported into the global environment prior to importing this module
56+
RequiredModules = @(
57+
@{ModuleName="powershell-yaml"; ModuleVersion="0.3"; Guid = "6a75a662-7f53-425a-9777-ee61284407da"}
58+
)
59+
60+
# Assemblies that must be loaded prior to importing this module
61+
# RequiredAssemblies = @()
62+
63+
# Script files (.ps1) that are run in the caller's environment prior to importing this module.
64+
# ScriptsToProcess = @()
65+
66+
# Type files (.ps1xml) to be loaded when importing this module
67+
# TypesToProcess = @()
68+
69+
# Format files (.ps1xml) to be loaded when importing this module
70+
# FormatsToProcess = @()
71+
72+
# Modules to import as nested modules of the module specified in RootModule/ModuleToProcess
73+
# NestedModules = @()
74+
75+
# Functions to export from this module, for best performance, do not use wildcards and do not delete the entry, use an empty array if there are no functions to export.
76+
FunctionsToExport = 'Get-UnitySetupInstance', 'Select-UnitySetupInstance', 'Start-UnityEditor'
77+
78+
# Cmdlets to export from this module, for best performance, do not use wildcards and do not delete the entry, use an empty array if there are no cmdlets to export.
79+
CmdletsToExport = 'Get-UnitySetupInstance', 'Select-UnitySetupInstance', 'Start-UnityEditor'
80+
81+
# Variables to export from this module
82+
# VariablesToExport = @()
83+
84+
# Aliases to export from this module, for best performance, do not use wildcards and do not delete the entry, use an empty array if there are no aliases to export.
85+
AliasesToExport = @()
86+
87+
# DSC resources to export from this module
88+
# DscResourcesToExport = @()
89+
90+
# List of all modules packaged with this module
91+
# ModuleList = @()
92+
93+
# List of all files packaged with this module
94+
# FileList = @()
95+
96+
# Private data to pass to the module specified in RootModule/ModuleToProcess. This may also contain a PSData hashtable with additional module metadata used by PowerShell.
97+
PrivateData = @{
98+
99+
PSData = @{
100+
101+
# Tags applied to this module. These help with module discovery in online galleries.
102+
Tags = 'Unity'
103+
104+
# A URL to the license for this module.
105+
LicenseUri = 'https://github.com/Microsoft/unitysetup.powershell/blob/master/LICENSE'
106+
107+
# A URL to the main website for this project.
108+
ProjectUri = 'https://github.com/Microsoft/unitysetup.powershell'
109+
110+
# A URL to an icon representing this module.
111+
# IconUri = ''
112+
113+
# ReleaseNotes of this module
114+
# ReleaseNotes = ''
115+
116+
# External dependent modules of this module
117+
ExternalModuleDependencies = @('powershell-yaml')
118+
119+
} # End of PSData hashtable
120+
121+
} # End of PrivateData hashtable
122+
123+
# HelpInfo URI of this module
124+
HelpInfoURI = 'https://github.com/Microsoft/unitysetup.powershell/blob/master/README.md'
125+
126+
# Default prefix for commands exported from this module. Override the default prefix using Import-Module -Prefix.
127+
# DefaultCommandPrefix = ''
128+
129+
}
130+

0 commit comments

Comments
 (0)