|
33 | 33 | contents: read |
34 | 34 |
|
35 | 35 | # ────────────────────────────────────────────────────────────────────────── |
36 | | - # 2. 组装 LVGLSharp.Native NuGet 包及托管代码包 |
| 36 | + # 2. 组装原生包、共享托管包、平台运行时包与 Forms 包 |
37 | 37 | # ────────────────────────────────────────────────────────────────────────── |
38 | 38 | pack: |
39 | 39 | needs: build-native |
@@ -119,21 +119,45 @@ jobs: |
119 | 119 | -p:Version=${{ steps.ver.outputs.version }} \ |
120 | 120 | --output nupkgs |
121 | 121 |
|
122 | | - # ── 注册本地 NuGet 源,供 Interop 打包时解析 LVGLSharp.Native 依赖 ──── |
| 122 | + # ── 注册本地 NuGet 源,供依赖 LVGLSharp.Native 的包在 CI 中解析本地产物 ─── |
123 | 123 | # CI 环境中 $(CI)==true 会激活 LVGLSharp.Native 包引用, |
124 | 124 | # 此时该包尚未发布到 NuGet.org,需要指向本地 nupkgs/ 目录。 |
125 | 125 | - name: 注册本地 NuGet 源 |
126 | 126 | run: dotnet nuget add source "$(pwd)/nupkgs" --name local-packages |
127 | 127 |
|
128 | | - # ── 打包 LVGLSharp.Interop ──────────────────────────────────────────── |
| 128 | + # ── 打包 LVGLSharp.Interop(依赖 LVGLSharp.Native) ─────────────────── |
129 | 129 | - name: 打包 LVGLSharp.Interop |
130 | 130 | run: | |
131 | 131 | dotnet pack src/LVGLSharp.Interop/LVGLSharp.Interop.csproj \ |
132 | 132 | -c Release \ |
133 | 133 | -p:Version=${{ steps.ver.outputs.version }} \ |
134 | 134 | --output nupkgs |
135 | 135 |
|
136 | | - # ── 打包 LVGLSharp.Forms ────────────────────────────────────────────── |
| 136 | + # ── 打包 LVGLSharp.Core(Forms 与平台运行时共享依赖) ───────────────── |
| 137 | + - name: 打包 LVGLSharp.Core |
| 138 | + run: | |
| 139 | + dotnet pack src/LVGLSharp.Core/LVGLSharp.Core.csproj \ |
| 140 | + -c Release \ |
| 141 | + -p:Version=${{ steps.ver.outputs.version }} \ |
| 142 | + --output nupkgs |
| 143 | +
|
| 144 | + # ── 打包 LVGLSharp.Runtime.Windows(Windows 平台运行时) ─────────────── |
| 145 | + - name: 打包 LVGLSharp.Runtime.Windows |
| 146 | + run: | |
| 147 | + dotnet pack src/LVGLSharp.Windows/LVGLSharp.Runtime.Windows.csproj \ |
| 148 | + -c Release \ |
| 149 | + -p:Version=${{ steps.ver.outputs.version }} \ |
| 150 | + --output nupkgs |
| 151 | +
|
| 152 | + # ── 打包 LVGLSharp.Runtime.Linux(Linux 平台运行时) ────────────────── |
| 153 | + - name: 打包 LVGLSharp.Runtime.Linux |
| 154 | + run: | |
| 155 | + dotnet pack src/LVGLSharp.Runtime.Linux/LVGLSharp.Runtime.Linux.csproj \ |
| 156 | + -c Release \ |
| 157 | + -p:Version=${{ steps.ver.outputs.version }} \ |
| 158 | + --output nupkgs |
| 159 | +
|
| 160 | + # ── 打包 LVGLSharp.Forms(平台无关;由运行时包自动注册宿主) ────────── |
137 | 161 | - name: 打包 LVGLSharp.Forms |
138 | 162 | run: | |
139 | 163 | dotnet pack src/LVGLSharp.WinForms/LVGLSharp.Forms.csproj \ |
|
0 commit comments