mirror of
https://github.com/Microsoft/calculator.git
synced 2025-08-23 06:25:19 -07:00
build for iOS
This commit is contained in:
parent
c701d3a081
commit
2a268d6d4f
5 changed files with 90 additions and 5 deletions
|
@ -32,4 +32,4 @@ jobs:
|
||||||
inputs:
|
inputs:
|
||||||
pathToPublish: $(build.artifactstagingdirectory)
|
pathToPublish: $(build.artifactstagingdirectory)
|
||||||
artifactType: container
|
artifactType: container
|
||||||
artifactName: UnoBanner
|
artifactName: Calculator
|
||||||
|
|
68
.vsts-ci.iOS.yml
Normal file
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:
|
jobs:
|
||||||
- template: .vsts-ci.Windows.yml
|
- template: .vsts-ci.Windows.yml
|
||||||
- template: .vsts-ci.Linux.yml
|
- template: .vsts-ci.Linux.yml
|
||||||
|
- template: .vsts-ci.iOS.yml
|
||||||
|
|
|
@ -26,6 +26,13 @@
|
||||||
<MtouchLink>None</MtouchLink>
|
<MtouchLink>None</MtouchLink>
|
||||||
<MtouchDebug>true</MtouchDebug>
|
<MtouchDebug>true</MtouchDebug>
|
||||||
<MtouchExtraArgs>-gcc_flags "-lc++ -lstdc++"</MtouchExtraArgs>
|
<MtouchExtraArgs>-gcc_flags "-lc++ -lstdc++"</MtouchExtraArgs>
|
||||||
|
<MtouchSdkVersion>
|
||||||
|
</MtouchSdkVersion>
|
||||||
|
<CodesignKey>iPhone Developer</CodesignKey>
|
||||||
|
<CodesignProvision />
|
||||||
|
<CodesignExtraArgs />
|
||||||
|
<CodesignResourceRules />
|
||||||
|
<CodesignEntitlements />
|
||||||
</PropertyGroup>
|
</PropertyGroup>
|
||||||
<PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Release|iPhoneSimulator' ">
|
<PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Release|iPhoneSimulator' ">
|
||||||
<DebugType>portable</DebugType>
|
<DebugType>portable</DebugType>
|
||||||
|
@ -37,6 +44,11 @@
|
||||||
<MtouchArch>x86_64</MtouchArch>
|
<MtouchArch>x86_64</MtouchArch>
|
||||||
<ConsolePause>false</ConsolePause>
|
<ConsolePause>false</ConsolePause>
|
||||||
<MtouchExtraArgs>-gcc_flags "-lc++ -lstdc++"</MtouchExtraArgs>
|
<MtouchExtraArgs>-gcc_flags "-lc++ -lstdc++"</MtouchExtraArgs>
|
||||||
|
<CodesignKey>iPhone Distribution</CodesignKey>
|
||||||
|
<CodesignProvision />
|
||||||
|
<CodesignExtraArgs />
|
||||||
|
<CodesignResourceRules />
|
||||||
|
<CodesignEntitlements />
|
||||||
</PropertyGroup>
|
</PropertyGroup>
|
||||||
<PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Debug|iPhone' ">
|
<PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Debug|iPhone' ">
|
||||||
<DebugSymbols>true</DebugSymbols>
|
<DebugSymbols>true</DebugSymbols>
|
||||||
|
@ -59,11 +71,15 @@
|
||||||
<OutputPath>bin\iPhone\Release</OutputPath>
|
<OutputPath>bin\iPhone\Release</OutputPath>
|
||||||
<ErrorReport>prompt</ErrorReport>
|
<ErrorReport>prompt</ErrorReport>
|
||||||
<WarningLevel>4</WarningLevel>
|
<WarningLevel>4</WarningLevel>
|
||||||
<CodesignEntitlements>Entitlements.plist</CodesignEntitlements>
|
<CodesignEntitlements>
|
||||||
|
</CodesignEntitlements>
|
||||||
<MtouchArch>ARM64</MtouchArch>
|
<MtouchArch>ARM64</MtouchArch>
|
||||||
<ConsolePause>false</ConsolePause>
|
<ConsolePause>false</ConsolePause>
|
||||||
<CodesignKey>iPhone Developer</CodesignKey>
|
|
||||||
<MtouchExtraArgs>-gcc_flags "-lc++ -lstdc++"</MtouchExtraArgs>
|
<MtouchExtraArgs>-gcc_flags "-lc++ -lstdc++"</MtouchExtraArgs>
|
||||||
|
<CodesignProvision>Uno Calculator</CodesignProvision>
|
||||||
|
<CodesignKey>iPhone Distribution</CodesignKey>
|
||||||
|
<CodesignExtraArgs />
|
||||||
|
<CodesignResourceRules />
|
||||||
</PropertyGroup>
|
</PropertyGroup>
|
||||||
<PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Ad-Hoc|iPhone' ">
|
<PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Ad-Hoc|iPhone' ">
|
||||||
<DebugType>none</DebugType>
|
<DebugType>none</DebugType>
|
||||||
|
|
|
@ -3,9 +3,9 @@
|
||||||
<plist version="1.0">
|
<plist version="1.0">
|
||||||
<dict>
|
<dict>
|
||||||
<key>CFBundleDisplayName</key>
|
<key>CFBundleDisplayName</key>
|
||||||
<string>UnoQuickStart.iOS</string>
|
<string>Calculator</string>
|
||||||
<key>CFBundleIdentifier</key>
|
<key>CFBundleIdentifier</key>
|
||||||
<string>com.companyname.WindowsCalculator</string>
|
<string>uno.platform.calculator</string>
|
||||||
<key>CFBundleShortVersionString</key>
|
<key>CFBundleShortVersionString</key>
|
||||||
<string>1.0</string>
|
<string>1.0</string>
|
||||||
<key>CFBundleVersion</key>
|
<key>CFBundleVersion</key>
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue