dsh-ipa-build 1.2.2 → 1.3.0

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.2.2
3
+ version: 1.2.4
4
4
  description: 把 iOS 程序打包成 .ipa。机器上有编译器时可以直接把 Objective-C/C/C++ 源码编成 arm64 安装包;没有编译器时也能把现成的 .app 打成 ipa、给已有的 ipa 重做伪签名、改 bundle id 做多开。SDK、ldid、zsign 都在插件里,跑一次自带的 bootstrap 就把编译器也装好,用户不用手动装任何东西。不碰 Swift,也不做 App Store 上架。
5
5
  ---
6
6
 
@@ -0,0 +1,4 @@
1
+ - insert:
2
+ - id: dsh-ipa-build
3
+ name: dsh-ipa-build
4
+ config: {}
package/index.js ADDED
@@ -0,0 +1,43 @@
1
+ import { readFile } from "node:fs/promises";
2
+ import { fileURLToPath } from "node:url";
3
+
4
+ const PROVIDER_NAME = "dsh-ipa-build";
5
+ const SKILL_BODY_URL = new URL("./SKILL.md", import.meta.url);
6
+ const RESOURCE_BASE = {
7
+ kind: "directory",
8
+ path: fileURLToPath(new URL("./", import.meta.url)),
9
+ };
10
+
11
+ const CANDIDATE = {
12
+ name: "dsh-ipa-build",
13
+ description:
14
+ "把 iOS 程序打包成 .ipa:有源码可用内置 SDK 交叉编译,有现成 .app 可打包,已有 ipa 可重签、改 bundle id 做多开。不碰 Swift,不做上架。",
15
+ invocation: { modelInvocable: true, userInvocable: true },
16
+ provider: PROVIDER_NAME,
17
+ source: "bundled",
18
+ resourceBase: RESOURCE_BASE,
19
+ locator: SKILL_BODY_URL,
20
+ };
21
+
22
+ const provider = {
23
+ name: PROVIDER_NAME,
24
+ list: () => Promise.resolve([CANDIDATE]),
25
+ async get() {
26
+ return {
27
+ name: CANDIDATE.name,
28
+ description: CANDIDATE.description,
29
+ invocation: CANDIDATE.invocation,
30
+ provider: CANDIDATE.provider,
31
+ source: CANDIDATE.source,
32
+ resourceBase: RESOURCE_BASE,
33
+ content: await readFile(SKILL_BODY_URL, "utf8"),
34
+ };
35
+ },
36
+ };
37
+
38
+ const name = "skill-ipa-build";
39
+ const inject = ["skills"];
40
+ function apply(ctx) {
41
+ ctx.skills.registerProvider(() => provider);
42
+ }
43
+ export { apply, inject, name };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "dsh-ipa-build",
3
- "version": "1.2.2",
3
+ "version": "1.3.0",
4
4
  "description": "把 iOS 源码打成 .ipa 的 DSH 插件。内置 iPhoneOS 16.5 SDK 和 zsign,Linux / macOS / Windows 都能用,装完能编能签。",
5
5
  "license": "MIT",
6
6
  "repository": {
@@ -16,6 +16,8 @@
16
16
  "ldid"
17
17
  ],
18
18
  "files": [
19
+ "index.js",
20
+ "cordis.patch.yml",
19
21
  "SKILL.md",
20
22
  "plugin.json",
21
23
  "README.md",
@@ -23,10 +25,18 @@
23
25
  "scripts",
24
26
  "vendor"
25
27
  ],
26
- "engines": {
27
- "node": ">=16"
28
- },
29
28
  "publishConfig": {
30
29
  "access": "public"
30
+ },
31
+ "type": "module",
32
+ "main": "index.js",
33
+ "exports": {
34
+ ".": "./index.js",
35
+ "./package.json": "./package.json"
36
+ },
37
+ "dsh": {
38
+ "bundle": {
39
+ "patch": "./cordis.patch.yml"
40
+ }
31
41
  }
32
42
  }
package/plugin.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "产出 IPA",
3
3
  "id": "dsh-ipa-build",
4
- "version": "1.2.2",
4
+ "version": "1.2.4",
5
5
  "type": "skill",
6
6
  "skill": "SKILL.md",
7
7
  "setup": {