FazBrowse GitHub Viewer
|
Trending
|
URL:
|
Home
Tools:
[Download Repo ZIP]
[View Raw Code]
[Original HTTPS Page]
InputSystem/git-add-api.ps1 at develop · Thing-rr/InputSystem · GitHub
Thing-rr
/
InputSystem
Public
forked from
Unity-Technologies/InputSystem
Notifications
You must be signed in to change notification settings
Fork
0
Star
0
Code
Pull requests
0
Actions
Projects
Security and quality
0
Insights
Additional navigation options
Code
Pull requests
Actions
Projects
Security and quality
Insights
Expand file tree
Breadcrumbs
InputSystem
/
git-add-api.ps1
Copy path
More file actions
More file actions
Latest commit
History
History
History
16 lines (12 loc) · 658 Bytes
Breadcrumbs
InputSystem
/
git-add-api.ps1
Copy path
File metadata and controls
16 lines (12 loc) · 658 Bytes
Raw
Copy raw file
Download raw file
Open symbols panel
Edit and raw actions
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
#
Copy .api files from Packages/com.unity.inputsystem to Tools/API/{CurrentVersion}.
#
Read current version from package.json.
$CurrentVersion
=
(
Get-Content
Packages
/
com.unity.inputsystem
/
package.json
|
ConvertFrom-Json
).version
#
Create Tools/API/{CurrentVersion} directory.
if
(
-Not
(
Test-Path
Tools
/
API
/
$CurrentVersion
) )
{
mkdir Tools
/
API
/
$CurrentVersion
}
#
Grap all .api files from Packages/com.unity.inputsystem and copy them to Tools/API/{CurrentVersion}.
Get-ChildItem
Packages
/
com.unity.inputsystem
-
Recurse
-
Filter
*
.api
|
foreach
{ cp
$_
.FullName
Tools
/
API
/
$CurrentVersion
}
#
Add them to git.
git add Tools
/
API
/
$CurrentVersion
/*
.api
Back
|
FazBrowse Home
|
New Git URL