Skip to content
This repository has been archived by the owner on Jun 19, 2023. It is now read-only.

Commit

Permalink
Build for iOS.
Browse files Browse the repository at this point in the history
  • Loading branch information
Berrysoft committed Nov 12, 2021
1 parent fcb86f5 commit 7ead2d8
Show file tree
Hide file tree
Showing 5 changed files with 70 additions and 17 deletions.
24 changes: 7 additions & 17 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,31 +4,21 @@
[![Azure DevOps builds](https://strawberry-vs.visualstudio.com/TsinghuaNet/_apis/build/status/Berrysoft.TsinghuaNet?branch=master)](https://strawberry-vs.visualstudio.com/TsinghuaNet/_build?definitionId=2)

这个项目已经完成,进入维护阶段。

注意:命令行工具与桌面端已经不维护,如有需要可以去尝试 Rust 版本,链接见下面。
## Rust库,命令行工具与桌面端
[tunet-rust](https://github.com/Berrysoft/tunet-rust)

## 官方资源
* [Releases](https://github.com/Berrysoft/TsinghuaNet/releases)
* [Wiki](https://github.com/Berrysoft/TsinghuaNet/wiki)

## Rust库
[tunet-rust](https://github.com/Berrysoft/tunet-rust)

## 项目介绍
### TsinghuaNet
联网库,和一些其他项目需要的辅助类。支持 .NET Standard 2.0、 .NET Standard 2.1和 .NET 5.0。

### TsinghuaNet.CLI
命令行版本,支持 .NET Core 5.0。

### TsinghuaNet.Eto
Eto.Forms版本。支持Windows、Linux与Mac OS桌面平台。

|平台|Windows|Linux|Mac OS|
|-|:-:|:-:|:-:|
|实现|[WPF](https://github.com/dotnet/wpf)|[GTK#](https://github.com/GtkSharp/GtkSharp)|[MonoMac](https://github.com/cwensley/monomac)|
|框架|.NET Core/.NET Framework|.NET Core|.NET Core|
|屏幕截图|![Windows](./Screenshots/Eto.Windows.png)|![Linux](./Screenshots/Eto.Linux.png)|![Mac](./Screenshots/Eto.Mac.png)|
联网库,和一些其他项目需要的辅助类。支持 .NET Standard 2.0 和 .NET Standard 2.1。

### TsinghuaNet.XF
Xamarin.Forms版本。支持UWP、Android与iOS平台。
移动端版本。支持UWP、Android与iOS平台。

|平台|UWP|Android|iOS|
|-|:-:|:-:|:-:|
Expand Down
Binary file removed Screenshots/Eto.Linux.png
Binary file not shown.
Binary file removed Screenshots/Eto.Mac.png
Binary file not shown.
Binary file removed Screenshots/Eto.Windows.png
Binary file not shown.
63 changes: 63 additions & 0 deletions azure-pipelines.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@ variables:
solution: 'TsinghuaNet.sln'
uwpProject: 'TsinghuaNet.XF/TsinghuaNet.XF.UWP/TsinghuaNet.XF.UWP.csproj'
droidProject: 'TsinghuaNet.XF/TsinghuaNet.XF.Android/TsinghuaNet.XF.Android.csproj'
iosProject: 'TsinghuaNet.XF/TsinghuaNet.XF.iOS/TsinghuaNet.XF.iOS.csproj'

jobs:
- job: Windows_XF_UWP
Expand Down Expand Up @@ -115,3 +116,65 @@ jobs:
displayName: 'Publish'
inputs:
artifactName: 'publish'

- job: Windows_XF_iOS
pool:
vmImage: 'macos-latest'
steps:
- task: NuGetToolInstaller@0
displayName: 'Install NuGet 5'
inputs:
versionSpec: '6.0.0'

- task: UseDotNet@2
displayName: 'Install .NET Core SDK'
inputs:
packageType: sdk
version: '$(sdkVersion)'
includePreviewVersions: true

- task: NuGetCommand@2
displayName: 'Restore solution'
inputs:
restoreSolution: '$(solution)'
feedsToUse: config
nugetConfigPath: 'NuGet.Config'
env:
MSBuildSDKsPath: $(Agent.ToolsDirectory)/dotnet/sdk/$(sdkVersion)/Sdks

- task: NuGetToolInstaller@0
displayName: 'Install NuGet 5'
inputs:
versionSpec: '6.0.0'

- task: UseDotNet@2
displayName: 'Install .NET Core SDK'
inputs:
packageType: sdk
version: '$(sdkVersion)'
includePreviewVersions: true

- task: NuGetCommand@2
displayName: 'Restore solution'
inputs:
restoreSolution: '$(solution)'
feedsToUse: config
nugetConfigPath: 'NuGet.Config'
env:
MSBuildSDKsPath: $(Agent.ToolsDirectory)/dotnet/sdk/$(sdkVersion)/Sdks

- task: XamariniOS@2
displayName: 'Build ipa'
inputs:
solutionFile: '$(iosProject)'
configuration: 'Release'
packageApp: true
runNugetRestore: false
args: /p:IpaPackageDir=$(build.artifactstagingdirectory)
env:
MSBuildSDKsPath: $(Agent.ToolsDirectory)/dotnet/sdk/$(sdkVersion)/Sdks

- task: PublishBuildArtifacts@1
displayName: 'Publish'
inputs:
artifactName: 'publish'

0 comments on commit 7ead2d8

Please sign in to comment.