aboutsummaryrefslogtreecommitdiffhomepage
path: root/templates/src
diff options
context:
space:
mode:
authorGravatar Jan Tattermusch <jtattermusch@google.com>2018-08-06 18:22:31 +0200
committerGravatar Jan Tattermusch <jtattermusch@google.com>2018-08-07 08:58:27 +0200
commit29e4947c49f89472cd00ccf51efb7c89ec8950b0 (patch)
tree161309a1fcdd86cbb69cde9904fb7e89e8bb36c9 /templates/src
parentdb81537c0b8b800e334cd5f1412957f192198dfe (diff)
portable zip for unity package
Diffstat (limited to 'templates/src')
-rwxr-xr-xtemplates/src/csharp/build_unitypackage.bat.template4
1 files changed, 3 insertions, 1 deletions
diff --git a/templates/src/csharp/build_unitypackage.bat.template b/templates/src/csharp/build_unitypackage.bat.template
index a53e385f9b..76ec10dbd9 100755
--- a/templates/src/csharp/build_unitypackage.bat.template
+++ b/templates/src/csharp/build_unitypackage.bat.template
@@ -70,7 +70,9 @@
copy /Y Grpc.HealthCheck\bin\Release\net45\Google.Protobuf.dll unitypackage\unitypackage_skeleton\Plugins\Google.Protobuf\lib\net45\Google.Protobuf.dll || goto :error
@rem create a zipfile that will act as a Unity package
- powershell -Command "Add-Type -Assembly 'System.IO.Compression.FileSystem'; [System.IO.Compression.ZipFile]::CreateFromDirectory('unitypackage\unitypackage_skeleton', 'grpc_unity_package.zip');"
+ cd unitypackage\unitypackage_skeleton
+ zip -r ..\..\grpc_unity_package.zip Plugins
+ cd ..\..
copy /Y grpc_unity_package.zip ..\..\artifacts\grpc_unity_package.%VERSION%.zip || goto :error
goto :EOF