dsh-ipa-build 1.3.2 → 1.3.3

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/SKILL.md CHANGED
@@ -1,6 +1,6 @@
1
1
  ---
2
2
  name: dsh-ipa-build
3
- version: 1.3.2
3
+ version: 1.3.3
4
4
  description: 把 iOS 程序做成 .ipa。源码能直接交叉编译成 arm64 包,现成的 .app 能打包,已有 ipa 能重签、改 bundle id 做多开,dylib 也跟着签。SDK、ldid、zsign 随插件带,环境由 AI 自己铺好,用户不用装东西。
5
5
  ---
6
6
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "dsh-ipa-build",
3
- "version": "1.3.2",
3
+ "version": "1.3.3",
4
4
  "description": "把 iOS 源码打成 .ipa 的 DSH 插件。包内自带 iPhoneOS 16.5 SDK 和 zsign,Windows / Linux / macOS 都能编能签,用户装完不用再配环境。",
5
5
  "license": "MIT",
6
6
  "repository": {
package/plugin.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "产出 IPA",
3
3
  "id": "dsh-ipa-build",
4
- "version": "1.3.2",
4
+ "version": "1.3.3",
5
5
  "type": "skill",
6
6
  "skill": "SKILL.md",
7
7
  "setup": {
package/scripts/ipa.ps1 CHANGED
@@ -199,6 +199,12 @@ function Find-App($dir) {
199
199
  Sort-Object { $_.FullName.Length } | Select-Object -First 1
200
200
  }
201
201
 
202
+ # 输出目录不存在的先建出来,不然没有 zsign 时直接 Copy 会失败
203
+ function Ensure-Parent($out) {
204
+ $parent = Split-Path -Parent $out
205
+ if ($parent -and -not (Test-Path $parent)) { New-Item -ItemType Directory -Path $parent -Force | Out-Null }
206
+ }
207
+
202
208
  function Zip-Dir($src, $out) {
203
209
  # .NET 的 CreateFromDirectory 不认符号链接,会把链接展开成整份文件副本。
204
210
  # .app 里带 framework 符号链接时包里会多出一堆重复文件,这里先说清楚
@@ -400,6 +406,7 @@ function Cmd-Pack($argv) {
400
406
  if (Test-Path $zsign) {
401
407
  Sign-Ipa $tmp $out (Opt $opt @('--p12') $null) (Opt $opt @('--prov') $null) (Get-Pass $opt) (Opt $opt @('--entitlements') $null)
402
408
  } else {
409
+ Ensure-Parent $out
403
410
  Copy-Item $tmp $out -Force
404
411
  Write-Host "没有 zsign,包出来了但没签名"
405
412
  }