This commit is contained in:
Jérôme Laban 2019-05-21 10:55:25 -04:00
Родитель c701d3a081
Коммит 2a268d6d4f
5 изменённых файлов: 90 добавлений и 5 удалений

Просмотреть файл

@ -32,4 +32,4 @@ jobs:
inputs:
pathToPublish: $(build.artifactstagingdirectory)
artifactType: container
artifactName: UnoBanner
artifactName: Calculator

68
.vsts-ci.iOS.yml Normal file
Просмотреть файл

@ -0,0 +1,68 @@
jobs:
- job: iOS
pool:
vmImage: 'macOS-10.14'
variables:
NUGET_PACKAGES: $(build.sourcesdirectory)/.nuget
steps:
- checkout: self
clean: true
- bash: /bin/bash -c "sudo $AGENT_HOMEDIRECTORY/scripts/select-xamarin-sdk.sh 5_18_1"
displayName: Select Xamarin Version
- bash: |
shopt -s nullglob
function join_by { local IFS="$1"; shift; echo "$*"; }
lib_path=$(join_by ';' $(Agent.WorkFolder)/_tasks/GitVersion*/4.0.*/lib/osx)
echo LD_LIBRARY_PATH: $lib_path
echo "##vso[task.setvariable variable=LD_LIBRARY_PATH]$lib_path"
displayName: Update LD_LIBRARY_PATH for GitVersion
- task: GitVersion@4
inputs:
updateAssemblyInfo: false
- task: InstallAppleCertificate@2
displayName: 'Install an Apple certificate'
inputs:
certSecureFile: 'nventive-appstore-prod-20190521.p12'
certPwd: '$(iOSSigning.CertificatePwd)'
signingIdentity: '$(iOSSigning.CertificateIdentity)'
- task: InstallAppleProvisioningProfile@1
displayName: 'Install an Apple provisioning profile'
inputs:
provProfileSecureFile: 'Uno_Calculator.mobileprovision'
- task: MSBuild@1
inputs:
solution: '$(build.sourcesdirectory)/src/Calculator.iOS/Calculator.iOS.csproj'
msbuildLocationMethod: version
msbuildVersion: latest
msbuildArchitecture: x86
msbuildArguments: /r /p:Configuration=Release /p:Platform=iPhone /detailedsummary /m:16 /nr:false "/p:InformationalVersion=%GITVERSION_InformationalVersion%"
clean: false
maximumCpuCount: true
restoreNugetPackages: false
logProjectEvents: true
createLogFile: true
- task: CopyFiles@2
displayName: 'Publish iOS Binaries'
inputs:
SourceFolder: $(build.sourcesdirectory)/src/Calculator.iOS/bin/iPhone/Release
Contents: '*.ipa'
TargetFolder: $(build.artifactstagingdirectory)
CleanTargetFolder: false
OverWrite: false
flattenFolders: false
- task: PublishBuildArtifacts@1
inputs:
PathtoPublish: $(build.artifactstagingdirectory)
ArtifactName: Uno-Calculator-iOS
ArtifactType: Container

Просмотреть файл

@ -6,3 +6,4 @@ resources:
jobs:
- template: .vsts-ci.Windows.yml
- template: .vsts-ci.Linux.yml
- template: .vsts-ci.iOS.yml

Просмотреть файл

@ -26,6 +26,13 @@
<MtouchLink>None</MtouchLink>
<MtouchDebug>true</MtouchDebug>
<MtouchExtraArgs>-gcc_flags "-lc++ -lstdc++"</MtouchExtraArgs>
<MtouchSdkVersion>
</MtouchSdkVersion>
<CodesignKey>iPhone Developer</CodesignKey>
<CodesignProvision />
<CodesignExtraArgs />
<CodesignResourceRules />
<CodesignEntitlements />
</PropertyGroup>
<PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Release|iPhoneSimulator' ">
<DebugType>portable</DebugType>
@ -37,6 +44,11 @@
<MtouchArch>x86_64</MtouchArch>
<ConsolePause>false</ConsolePause>
<MtouchExtraArgs>-gcc_flags "-lc++ -lstdc++"</MtouchExtraArgs>
<CodesignKey>iPhone Distribution</CodesignKey>
<CodesignProvision />
<CodesignExtraArgs />
<CodesignResourceRules />
<CodesignEntitlements />
</PropertyGroup>
<PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Debug|iPhone' ">
<DebugSymbols>true</DebugSymbols>
@ -59,11 +71,15 @@
<OutputPath>bin\iPhone\Release</OutputPath>
<ErrorReport>prompt</ErrorReport>
<WarningLevel>4</WarningLevel>
<CodesignEntitlements>Entitlements.plist</CodesignEntitlements>
<CodesignEntitlements>
</CodesignEntitlements>
<MtouchArch>ARM64</MtouchArch>
<ConsolePause>false</ConsolePause>
<CodesignKey>iPhone Developer</CodesignKey>
<MtouchExtraArgs>-gcc_flags "-lc++ -lstdc++"</MtouchExtraArgs>
<CodesignProvision>Uno Calculator</CodesignProvision>
<CodesignKey>iPhone Distribution</CodesignKey>
<CodesignExtraArgs />
<CodesignResourceRules />
</PropertyGroup>
<PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Ad-Hoc|iPhone' ">
<DebugType>none</DebugType>

Просмотреть файл

@ -3,9 +3,9 @@
<plist version="1.0">
<dict>
<key>CFBundleDisplayName</key>
<string>UnoQuickStart.iOS</string>
<string>Calculator</string>
<key>CFBundleIdentifier</key>
<string>com.companyname.WindowsCalculator</string>
<string>uno.platform.calculator</string>
<key>CFBundleShortVersionString</key>
<string>1.0</string>
<key>CFBundleVersion</key>