Fix build script
This commit is contained in:
parent
16eae43d38
commit
7ee08665c1
|
|
@ -41,23 +41,32 @@
|
||||||
</PropertyGroup>
|
</PropertyGroup>
|
||||||
|
|
||||||
<ItemGroup>
|
<ItemGroup>
|
||||||
<RIDs Include="win7-x64;win7-x86" Condition="'$(OSPlatform)'=='Windows'" />
|
<RIDs Include="win7-x64" Condition="'$(OSPlatform)'=='Windows'" >
|
||||||
<RIDs Include="linux-x64" Condition="'$(OSPlatform)'=='Linux'" />
|
<PlatformDir>x64</PlatformDir>
|
||||||
<RIDs Include="osx.10.12-x64" Condition="'$(OSPlatform)'=='macOS'" />
|
</RIDs>
|
||||||
|
<RIDs Include="win7-x86" Condition="'$(OSPlatform)'=='Windows'" >
|
||||||
|
<PlatformDir>x86</PlatformDir>
|
||||||
|
</RIDs>
|
||||||
|
<RIDs Include="linux-x64" Condition="'$(OSPlatform)'=='Linux'" >
|
||||||
|
<PlatformDir>x64</PlatformDir>
|
||||||
|
</RIDs>
|
||||||
|
<RIDs Include="osx.10.12-x64" Condition="'$(OSPlatform)'=='macOS'" >
|
||||||
|
<PlatformDir>x64</PlatformDir>
|
||||||
|
</RIDs>
|
||||||
</ItemGroup>
|
</ItemGroup>
|
||||||
|
|
||||||
<RemoveDir Directories="$(OutputPath)%(RIDs.Identity)\" />
|
<RemoveDir Directories="$(OutputPath)" />
|
||||||
<RemoveDir Directories="$(WorkingDirectory)%(RIDs.Identity)\" />
|
<RemoveDir Directories="$(WorkingDirectory)%(RIDs.Identity)\" />
|
||||||
<Exec Command="dotnet store --manifest $(MetaPackageFile) --configuration Release --framework netcoreapp2.0 --runtime %(RIDs.Identity) --output $(OutputPath)%(RIDs.Identity)/ --framework-version 2.0.0-* --working-dir $(WorkingDirectory)%(RIDs.Identity)/" />
|
<Exec Command="dotnet store --manifest $(MetaPackageFile) --configuration Release --framework netcoreapp2.0 --runtime %(RIDs.Identity) --output $(OutputPath) --framework-version 2.0.0-* --working-dir $(WorkingDirectory)%(RIDs.Identity)/" />
|
||||||
|
|
||||||
<ItemGroup>
|
<ItemGroup>
|
||||||
<PackageCacheFiles Include="$(OutputPath)%(RIDs.Identity)\**\*" />
|
<PackageCacheFiles Include="$(OutputPath)**\*" />
|
||||||
<PackageStoreManifestFiles Include="$(OutputPath)%(RIDs.Identity)\**\artifact.xml">
|
<PackageStoreManifestFiles Include="$(OutputPath)%(RIDs.PlatformDir)\**\artifact.xml">
|
||||||
<DestinationFile>manifest.%(RIDs.Identity).xml</DestinationFile>
|
<DestinationFile>manifest.%(RIDs.Identity).xml</DestinationFile>
|
||||||
</PackageStoreManifestFiles>
|
</PackageStoreManifestFiles>
|
||||||
</ItemGroup>
|
</ItemGroup>
|
||||||
|
|
||||||
<ZipArchive File="$(OutputZip)" SourceFiles="@(PackageCacheFiles)" WorkingDirectory="$(OutputPath)%(RIDs.Identity)\" />
|
<ZipArchive File="$(OutputZip)" SourceFiles="@(PackageCacheFiles)" WorkingDirectory="$(OutputPath)" />
|
||||||
|
|
||||||
<Copy SourceFiles="%(PackageStoreManifestFiles.FullPath)" DestinationFiles="$(ArtifactsDir)%(PackageStoreManifestFiles.DestinationFile)" />
|
<Copy SourceFiles="%(PackageStoreManifestFiles.FullPath)" DestinationFiles="$(ArtifactsDir)%(PackageStoreManifestFiles.DestinationFile)" />
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue