--- /dev/null
+# Copyright (C) 2016 and later: Unicode, Inc. and others.\r
+# License & terms of use: http://www.unicode.org/copyright.html\r
+#-------------------------\r
+# Script: icu\packaging\distrelease.ps1\r
+# Author: Steven R. Loomis\r
+# Date: 2017-04-14\r
+#-------------------------\r
+#\r
+# This builds a zipfile containing the *64 bit* Windows binary\r
+#\r
+# Usage: (after building ICU using MSVC) \r
+# (bring up Powershell ISE)\r
+# cd C:\icu\icu4c\\r
+# Set-ExecutionPolicy -Scope Process AllSigned\r
+# .\packaging\distrelease.ps1\r
+#\r
+# Will emit: c:\icu4c\icu\source\dist\icu-windows.zip\r
+#\r
+#\r
+# You will get warnings from the execution policy and the script itself.\r
+# see https://docs.microsoft.com/en-us/powershell/module/microsoft.powershell.core/about/about_execution_policies?view=powershell-5.1&viewFallbackFrom=powershell-Microsoft.PowerShell.Core \r
+# for more about execution policies.\r
+\r
+\r
+$icuDir = Split-Path -Path $MyInvocation.MyCommand.Definition -Parent\r
+$icuDir = Resolve-Path -Path '$icuDir\..'\r
+\r
+echo $icuDir\r
+\r
+# ok, create some work areas\r
+New-Item -Path "$icuDir\source\dist" -ErrorAction SilentlyContinue -ItemType "directory"\r
+$source = "$icuDir\source\dist\icu"\r
+Get-ChildItem -Path $source -ErrorAction SilentlyContinue | Remove-Item -Recurse\r
+New-Item -Path $source -ItemType "directory" -ErrorAction SilentlyContinue\r
+\r
+# copy required stuff\r
+Copy-Item -Path "$icuDir\lib64" -Destination $source -Recurse\r
+Copy-Item -Path "$icuDir\include" -Destination $source -Recurse\r
+Copy-Item -Path "$icuDir\bin64" -Destination $source -Recurse\r
+Copy-Item -Path "$icuDir\APIChangeReport.html" -Destination $source -Recurse\r
+Copy-Item -Path "$icuDir\icu4c.css" -Destination $source -Recurse\r
+Copy-Item -Path "$icuDir\LICENSE" -Destination $source -Recurse\r
+Copy-Item -Path "$icuDir\readme.html" -Destination $source -Recurse\r
+\r
+\r
+$destination = "$icuDir\source\dist\icu-windows.zip"\r
+Remove-Item -Path $destination -ErrorAction Continue\r
+Add-Type -assembly "system.io.compression.filesystem"\r
+Echo $source\r
+Echo $destination\r
+[io.compression.zipfile]::CreateFromDirectory($source, $destination)\r
+\r
+echo $destination
\ No newline at end of file