-
-
Notifications
You must be signed in to change notification settings - Fork 52
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* packaging cleanup * removed whitespace * cleanup
- Loading branch information
1 parent
d4a124d
commit df74925
Showing
5 changed files
with
18 additions
and
44 deletions.
There are no files selected for viewing
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,24 +1,28 @@ | ||
New-Item "package-release" -ItemType Directory | ||
|
||
# Copy `package-dev` stuff | ||
Copy-Item "package-dev/*" -Destination "package-release/" -Exclude "README.md", "package.json", "Tests", "Tests.meta", "*.asmdef", "*.asmdef.meta", "SentryOptions.json*" -Recurse | ||
$exclude = @( | ||
"README.md", | ||
"package.json", | ||
"Tests", | ||
"Tests.meta", | ||
"*.asmdef", | ||
"*.asmdef.meta", | ||
"SentryOptions.json*", | ||
"alias-references.*", | ||
"assembly-alias.*" | ||
) | ||
|
||
Copy-Item "package-dev/*" "package-release/" -Exclude $exclude -Recurse | ||
|
||
# Override with package (e.g. custom .meta files) | ||
Copy-Item "package/*" -Destination "package-release/" -Recurse -Force | ||
|
||
# Copy `package` stuff | ||
Copy-Item "package/package.json" -Destination "package-release/package.json" | ||
Copy-Item "package/README.md" -Destination "package-release/README.md" | ||
Copy-Item "CHANGELOG.md" -Destination "package-release/CHANGELOG.md" | ||
Copy-Item "package/CHANGELOG.md.meta" -Destination "package-release/CHANGELOG.md.meta" | ||
Copy-Item "LICENSE.md" -Destination "package-release/LICENSE.md" | ||
Copy-Item "package/LICENSE.md.meta" -Destination "package-release/LICENSE.md.meta" | ||
New-Item -Type dir "package-release/Runtime/" -Force | ||
Get-ChildItem "package/Runtime/" -Include "*.asmdef", "*.asmdef.meta" -Recurse | ForEach-Object { Copy-Item -Path $_.FullName -Destination "package-release/Runtime/" } | ||
# Destination directory need to exist if we're copying a file instead of a directory | ||
New-Item -Type dir "package-release/Documentation~/" -Force | ||
Get-ChildItem "package/Documentation~/" -Include "*.md" -Recurse | ForEach-Object { Copy-Item -Path $_.FullName -Destination "package-release/Documentation~/" } | ||
|
||
# Copy samples | ||
Copy-Item "samples/unity-of-bugs/Assets/Scenes" -Destination "package-release/Samples~/unity-of-bugs/Assets/Scenes" -Recurse | ||
Copy-Item "samples/unity-of-bugs/Assets/Scripts" -Destination "package-release/Samples~/unity-of-bugs/Assets/Scripts" -Recurse | ||
Copy-Item "samples/unity-of-bugs/Assets/Scenes" -Destination "package-release/Samples~/unity-of-bugs/Scenes" -Recurse | ||
Copy-Item "samples/unity-of-bugs/Assets/Scripts" -Destination "package-release/Samples~/unity-of-bugs/Scripts" -Recurse | ||
|
||
# Create zip | ||
Compress-Archive "package-release/*" -DestinationPath "package-release.zip" -Force |