Skip to content

Commit

Permalink
update postbuild & wxi
Browse files Browse the repository at this point in the history
  • Loading branch information
huangpf committed Apr 14, 2015
1 parent 315c876 commit 681fb93
Show file tree
Hide file tree
Showing 3 changed files with 43 additions and 5 deletions.
12 changes: 12 additions & 0 deletions setup/azurecmdfiles.wxi
Original file line number Diff line number Diff line change
Expand Up @@ -1118,6 +1118,9 @@
<Component Id="cmp93A93C29B2093AFCB0348F2C5B999E64" Guid="*">
<File Id="fil3D666DBAA021AB26520C7A0308E583D4" KeyPath="yes" Source="$(var.sourceDir)\ResourceManager\AzureResourceManager\Storage\Newtonsoft.Json.dll" />
</Component>
<Component Id="cmp61DDE2E3D2FBB80AA9CED6F33128035D" Guid="*">
<File Id="fil7149B5FE830ECDCE2EACA3B4E8289AAF" KeyPath="yes" Source="$(var.sourceDir)\ResourceManager\AzureResourceManager\Storage\PostBuild.ps1" />
</Component>
<Component Id="cmp7985D9505A461C04CC38A8D7F341EBC2" Guid="*">
<File Id="fil12F263F6FC0E5DBC1B0BCA1887AFD846" KeyPath="yes" Source="$(var.sourceDir)\ResourceManager\AzureResourceManager\Storage\System.Net.Http.Extensions.dll" />
</Component>
Expand Down Expand Up @@ -2764,6 +2767,9 @@
<Component Id="cmpA10291DA4F33CEBFB790A935E68C763C" Guid="*">
<File Id="filF5A4A20E3A90049515A936CA24C18514" KeyPath="yes" Source="$(var.sourceDir)\ServiceManagement\Azure\Sql\Newtonsoft.Json.dll" />
</Component>
<Component Id="cmp8839023EABF68726F33F2E22907EE5CA" Guid="*">
<File Id="fil7E09EF4FC96DB53F9DCD865B90E854B6" KeyPath="yes" Source="$(var.sourceDir)\ServiceManagement\Azure\Sql\PostBuild.ps1" />
</Component>
<Component Id="cmp0B5A5E6BA5861771073ED88DCAB35DCC" Guid="*">
<File Id="fil7399EB9870646ED4FE533B1842E6CE84" KeyPath="yes" Source="$(var.sourceDir)\ServiceManagement\Azure\Sql\ServiceManagementStartup.ps1" />
</Component>
Expand Down Expand Up @@ -2859,6 +2865,9 @@
<Component Id="cmp6ECD97BC8B820C8F075B08C926EE8E18" Guid="*">
<File Id="fil327F23A245CA0317EFF25FB727CC237C" KeyPath="yes" Source="$(var.sourceDir)\ServiceManagement\Azure\Storage\Newtonsoft.Json.dll" />
</Component>
<Component Id="cmp2788656715EE90B002A2DF2A355A4B7C" Guid="*">
<File Id="fil255776871423D5F544B74A1AA9926B3C" KeyPath="yes" Source="$(var.sourceDir)\ServiceManagement\Azure\Storage\PostBuild.ps1" />
</Component>
<Component Id="cmpDE403EAE6FDC0C14D1EC077F2D9DCDF6" Guid="*">
<File Id="fil63C9BDB6186929AAA2E72F85AA3A4558" KeyPath="yes" Source="$(var.sourceDir)\ServiceManagement\Azure\Storage\System.Net.Http.Extensions.dll" />
</Component>
Expand Down Expand Up @@ -3366,6 +3375,7 @@
<ComponentRef Id="cmp8CC873DBE9230381C5CDCADC4920348E" />
<ComponentRef Id="cmp1E206A516CD1793516989E02475DED35" />
<ComponentRef Id="cmp93A93C29B2093AFCB0348F2C5B999E64" />
<ComponentRef Id="cmp61DDE2E3D2FBB80AA9CED6F33128035D" />
<ComponentRef Id="cmp7985D9505A461C04CC38A8D7F341EBC2" />
<ComponentRef Id="cmp02ACACBB96C5AF339C3EF0B3D748D59D" />
<ComponentRef Id="cmpADC075B4FA9AC22F9AA7C27E98D28FBE" />
Expand Down Expand Up @@ -3894,6 +3904,7 @@
<ComponentRef Id="cmpB559FF7BECE247BF0FB2DEE533E5A820" />
<ComponentRef Id="cmp2DA9A48FC4B479D897435D7DCFA6DDE3" />
<ComponentRef Id="cmpA10291DA4F33CEBFB790A935E68C763C" />
<ComponentRef Id="cmp8839023EABF68726F33F2E22907EE5CA" />
<ComponentRef Id="cmp0B5A5E6BA5861771073ED88DCAB35DCC" />
<ComponentRef Id="cmp8FDC59E62622D98C6BE19E68ABC2666F" />
<ComponentRef Id="cmpE8892E4AE524E10FC9808A04A8A7D4BE" />
Expand Down Expand Up @@ -3925,6 +3936,7 @@
<ComponentRef Id="cmp294C3C7148D92CE8D41B74464DF7DEBD" />
<ComponentRef Id="cmpD77395F69A94BA2E235B63510FA5ACE2" />
<ComponentRef Id="cmp6ECD97BC8B820C8F075B08C926EE8E18" />
<ComponentRef Id="cmp2788656715EE90B002A2DF2A355A4B7C" />
<ComponentRef Id="cmpDE403EAE6FDC0C14D1EC077F2D9DCDF6" />
<ComponentRef Id="cmp558B809B6B758A29CA1CD1B340943369" />
<ComponentRef Id="cmp2D8EAF351C80F628AB412FA578D5DA1F" />
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -264,6 +264,9 @@
</None>
<None Include="MSSharedLibKey.snk" />
<None Include="packages.config" />
<None Include="PostBuild.ps1">
<CopyToOutputDirectory>Always</CopyToOutputDirectory>
</None>
</ItemGroup>
<ItemGroup>
<EmbeddedResource Include="Resources.resx">
Expand All @@ -281,10 +284,6 @@
<Error Condition="Exists('..\..\..\packages\Microsoft.Bcl.Build.1.0.14\tools\Microsoft.Bcl.Build.targets')" Text="The build restored NuGet packages. Build the project again to include these packages in the build. For more information, see http://go.microsoft.com/fwlink/?LinkID=317568." HelpKeyword="BCLBUILD2002" />
</Target>
<PropertyGroup>
<PostBuildEvent>
cd $(ProjectDir)
set ResourceOutDir="..\..\..\Package\Debug\ResourceManager\AzureResourceManager\Storage\"
IF NOT EXIST "%25ResourceOutDir%25" mkdir "%25ResourceOutDir%25"
copy $(OutDir) "%25ResourceOutDir%25" /y</PostBuildEvent>
<PostBuildEvent>powershell.exe -ExecutionPolicy Unrestricted -File "$(ProjectDir)\PostBuild.ps1" "..\..\..\ResourceManager\AzureResourceManager\Storage"</PostBuildEvent>
</PropertyGroup>
</Project>
27 changes: 27 additions & 0 deletions src/ServiceManagement/Storage/Commands.Storage/PostBuild.ps1
Original file line number Diff line number Diff line change
@@ -0,0 +1,27 @@
# ----------------------------------------------------------------------------------
#
# Copyright Microsoft Corporation
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
# http://www.apache.org/licenses/LICENSE-2.0
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS,
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and
# limitations under the License.
# ----------------------------------------------------------------------------------

Write-Output -InputObject 'Starting post-build script';

$destDir = $args[0];
Write-Output -InputObject $destDir;

$sourcePath = "."

if (Test-Path -Path $sourcePath) {
Write-Output -InputObject "Copying '$sourcePath' to directory '$destDir'";
Copy-Item -Path $sourcePath -Destination $destDir -Recurse;
}

Write-Output -InputObject 'Finished post-build script';

0 comments on commit 681fb93

Please sign in to comment.