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 +1 -1
- package/package.json +1 -1
- package/plugin.json +1 -1
- package/scripts/ipa.ps1 +7 -0
package/SKILL.md
CHANGED
package/package.json
CHANGED
package/plugin.json
CHANGED
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
|
}
|