[msbuild] Replaced uses of $(_IpaOutputDir) with $(IpaPackageDir) (#336)
* [msbuild] Replaced uses of $(_IpaOutputDir) with $(IpaPackageDir) Fixes the unit tests * [msbuild] Define IpaPackageDir/Name based on IpaPackagePath if defined
This commit is contained in:
Родитель
b417592947
Коммит
b604792a3e
|
@ -1623,6 +1623,10 @@ Copyright (C) 2013-2016 Xamarin. All rights reserved.
|
|||
</ItemGroup>
|
||||
|
||||
<PropertyGroup>
|
||||
<!-- Calculate IpaPackageDir and IpaPackageName based on IpaPackagePath, if defined. -->
|
||||
<IpaPackageDir Condition="'$(IpaPackagePath)' != ''">$([System.Path]::GetDirectoryName('$(IpaPackagePath)'))</IpaPackageDir>
|
||||
<IpaPackageName Condition="'$(IpaPackagePath)' != ''">$([System.Path]::GetFileName('$(IpaPackagePath)'))</IpaPackageName>
|
||||
|
||||
<!-- Calculate an IPA package directory path if not already defined by the developer. -->
|
||||
<!--<IpaPackageDir Condition="'$(IpaPackageDir)' == ''">$([System.Environment]::GetEnvironmentVariable('IPA_PACKAGE_DIR'))</IpaPackageDir>-->
|
||||
<IpaPackageDir Condition="'$(IpaPackageDir)' == ''">$(DeviceSpecificOutputPath)$(_AppBundleName) $([System.DateTime]::Now.ToString('yyyy-MM-dd HH-mm-ss'))</IpaPackageDir>
|
||||
|
@ -1726,8 +1730,8 @@ Copyright (C) 2013-2016 Xamarin. All rights reserved.
|
|||
ExtraArgs="$(CodesignExtraArgs)"
|
||||
/>
|
||||
|
||||
<RemoveDir SessionId="$(BuildSessionId)" Condition="'$(IsMacEnabled)' And '$(EmbedOnDemandResources)' == 'false'" Directories="$(_IpaOutputDir)OnDemandResources\" />
|
||||
<MakeDir SessionId="$(BuildSessionId)" Condition="'$(IsMacEnabled)' And '$(EmbedOnDemandResources)' == 'false'" Directories="$(_IpaOutputDir)OnDemandResources\" />
|
||||
<RemoveDir SessionId="$(BuildSessionId)" Condition="'$(IsMacEnabled)' And '$(EmbedOnDemandResources)' == 'false'" Directories="$(IpaPackageDir)\OnDemandResources\" />
|
||||
<MakeDir SessionId="$(BuildSessionId)" Condition="'$(IsMacEnabled)' And '$(EmbedOnDemandResources)' == 'false'" Directories="$(IpaPackageDir)\OnDemandResources\" />
|
||||
|
||||
<CreateAssetPack
|
||||
SessionId="$(BuildSessionId)"
|
||||
|
@ -1735,20 +1739,20 @@ Copyright (C) 2013-2016 Xamarin. All rights reserved.
|
|||
ToolExe="$(ZipExe)"
|
||||
ToolPath="$(ZipPath)"
|
||||
Source="%(_AssetPack.Identity)"
|
||||
OutputFile="$(_IpaOutputDir)OnDemandResources\%(_AssetPack.DirectoryName)"
|
||||
OutputFile="$(IpaPackageDir)OnDemandResources\%(_AssetPack.DirectoryName)"
|
||||
/>
|
||||
|
||||
<Copy
|
||||
SessionId="$(BuildSessionId)"
|
||||
Condition="'$(IsMacEnabled)' And '$(EmbedOnDemandResources)' == 'false'"
|
||||
SourceFiles="$(_IpaAppBundleDir)AssetPackManifest.plist"
|
||||
DestinationFolder="$(_IpaOutputDir)OnDemandResources\"
|
||||
DestinationFolder="$(IpaPackageDir)\OnDemandResources\"
|
||||
/>
|
||||
</Target>
|
||||
|
||||
<Target Name="_ZipIpa" Condition="'$(BuildIpa)' == 'true'">
|
||||
<MakeDir SessionId="$(BuildSessionId)" Condition="'$(IsMacEnabled)' == 'true'" Directories="$(_IpaOutputPath)" />
|
||||
<Delete SessionId="$(BuildSessionId)" Condition="'$(IsMacEnabled)' == 'true'" Files="$(_IpaOutputDir)$(IpaPackageName)" />
|
||||
<MakeDir SessionId="$(BuildSessionId)" Condition="'$(IsMacEnabled)' == 'true'" Directories="$(IpaPackageDir)" />
|
||||
<Delete SessionId="$(BuildSessionId)" Condition="'$(IsMacEnabled)' == 'true'" Files="$(IpaPackagePath)" />
|
||||
|
||||
<Zip
|
||||
SessionId="$(BuildSessionId)"
|
||||
|
|
Загрузка…
Ссылка в новой задаче