@pylair/cli 0.1.0-rc.22 → 0.1.0-rc.24
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/README.md +1 -1
- package/dist/build/artifacts.d.ts +14 -0
- package/dist/build/artifacts.d.ts.map +1 -0
- package/dist/build/artifacts.js +61 -0
- package/dist/build/artifacts.js.map +1 -0
- package/dist/build/bytecode.d.ts.map +1 -1
- package/dist/build/bytecode.js +4 -3
- package/dist/build/bytecode.js.map +1 -1
- package/dist/build/download.d.ts.map +1 -1
- package/dist/build/download.js +9 -8
- package/dist/build/download.js.map +1 -1
- package/dist/build/notices.d.ts.map +1 -1
- package/dist/build/notices.js +4 -3
- package/dist/build/notices.js.map +1 -1
- package/dist/build/python.d.ts +6 -1
- package/dist/build/python.d.ts.map +1 -1
- package/dist/build/python.js +8 -11
- package/dist/build/python.js.map +1 -1
- package/dist/build/sign.d.ts +14 -0
- package/dist/build/sign.d.ts.map +1 -1
- package/dist/build/sign.js +78 -4
- package/dist/build/sign.js.map +1 -1
- package/dist/build/source.d.ts.map +1 -1
- package/dist/build/source.js +3 -2
- package/dist/build/source.js.map +1 -1
- package/dist/build/util.d.ts +16 -0
- package/dist/build/util.d.ts.map +1 -1
- package/dist/build/util.js +51 -1
- package/dist/build/util.js.map +1 -1
- package/dist/build.d.ts +11 -4
- package/dist/build.d.ts.map +1 -1
- package/dist/build.js +145 -94
- package/dist/build.js.map +1 -1
- package/dist/cli.d.ts +9 -1
- package/dist/cli.d.ts.map +1 -1
- package/dist/cli.js +50 -26
- package/dist/cli.js.map +1 -1
- package/dist/config.js +2 -2
- package/dist/config.js.map +1 -1
- package/dist/dev.d.ts +3 -3
- package/dist/dev.d.ts.map +1 -1
- package/dist/dev.js +50 -14
- package/dist/dev.js.map +1 -1
- package/dist/doctor.d.ts +29 -2
- package/dist/doctor.d.ts.map +1 -1
- package/dist/doctor.js +183 -28
- package/dist/doctor.js.map +1 -1
- package/dist/ui/caps.d.ts +45 -0
- package/dist/ui/caps.d.ts.map +1 -0
- package/dist/ui/caps.js +81 -0
- package/dist/ui/caps.js.map +1 -0
- package/dist/ui/index.d.ts +106 -0
- package/dist/ui/index.d.ts.map +1 -0
- package/dist/ui/index.js +264 -0
- package/dist/ui/index.js.map +1 -0
- package/dist/ui/prompts.d.ts +39 -0
- package/dist/ui/prompts.d.ts.map +1 -0
- package/dist/ui/prompts.js +209 -0
- package/dist/ui/prompts.js.map +1 -0
- package/dist/ui/style.d.ts +27 -0
- package/dist/ui/style.d.ts.map +1 -0
- package/dist/ui/style.js +71 -0
- package/dist/ui/style.js.map +1 -0
- package/dist/wrap.d.ts +12 -0
- package/dist/wrap.d.ts.map +1 -1
- package/dist/wrap.js +78 -4
- package/dist/wrap.js.map +1 -1
- package/package.json +1 -1
package/dist/build/source.js
CHANGED
|
@@ -3,6 +3,7 @@
|
|
|
3
3
|
import { cpSync } from "node:fs";
|
|
4
4
|
import { relative } from "node:path";
|
|
5
5
|
import { matchGlob } from "../glob.js";
|
|
6
|
+
import { ui } from "../ui/index.js";
|
|
6
7
|
/** Basename globs for files that look like secrets or credentials —
|
|
7
8
|
* staged source must never carry them into an installer. */
|
|
8
9
|
const SECRET_PATTERNS = [
|
|
@@ -55,7 +56,7 @@ function couldMatchUnder(pattern, dir) {
|
|
|
55
56
|
*
|
|
56
57
|
* Returns the `/`-separated relative paths that were refused.
|
|
57
58
|
*/
|
|
58
|
-
export function stageSource(srcDir, dest, include = [], warn =
|
|
59
|
+
export function stageSource(srcDir, dest, include = [], warn = (m) => /^\s/.test(m) ? ui.dump(`${m}\n`) : ui.warn(m, { bare: !m.startsWith("warning:") }),
|
|
59
60
|
/** Top-level names to leave out entirely (a root source dir holding the
|
|
60
61
|
* project's own `src-tauri`, `node_modules`...). Not reported as skipped. */
|
|
61
62
|
exclude = []) {
|
|
@@ -82,7 +83,7 @@ exclude = []) {
|
|
|
82
83
|
if (skipped.length) {
|
|
83
84
|
warn(`warning: skipped ${skipped.length} secret-looking path(s) under ${srcDir}: ` +
|
|
84
85
|
skipped.slice(0, 10).join(", ") +
|
|
85
|
-
(skipped.length > 10 ? ",
|
|
86
|
+
(skipped.length > 10 ? ", and more" : ""));
|
|
86
87
|
warn(` to ship one deliberately, list it in [tool.pylair] include = ["path/under/source"]`);
|
|
87
88
|
}
|
|
88
89
|
return skipped;
|
package/dist/build/source.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"source.js","sourceRoot":"","sources":["../../src/build/source.ts"],"names":[],"mappings":"AAAA;4DAC4D;AAE5D,OAAO,EAAE,MAAM,EAAE,MAAM,SAAS,CAAC;AACjC,OAAO,EAAE,QAAQ,EAAE,MAAM,WAAW,CAAC;AACrC,OAAO,EAAE,SAAS,EAAE,MAAM,YAAY,CAAC;
|
|
1
|
+
{"version":3,"file":"source.js","sourceRoot":"","sources":["../../src/build/source.ts"],"names":[],"mappings":"AAAA;4DAC4D;AAE5D,OAAO,EAAE,MAAM,EAAE,MAAM,SAAS,CAAC;AACjC,OAAO,EAAE,QAAQ,EAAE,MAAM,WAAW,CAAC;AACrC,OAAO,EAAE,SAAS,EAAE,MAAM,YAAY,CAAC;AACvC,OAAO,EAAE,EAAE,EAAE,MAAM,gBAAgB,CAAC;AAEpC;4DAC4D;AAC5D,MAAM,eAAe,GAAG;IACtB,OAAO;IACP,OAAO;IACP,OAAO;IACP,OAAO;IACP,SAAS;IACT,aAAa;IACb,mBAAmB;IACnB,uBAAuB;CACxB,CAAC;AAEF;;8BAE8B;AAC9B,SAAS,SAAS,CAAC,GAAW;IAC5B,MAAM,IAAI,GAAG,GAAG,CAAC,KAAK,CAAC,GAAG,CAAC,CAAC;IAC5B,IAAI,IAAI,CAAC,IAAI,CAAC,CAAC,CAAC,EAAE,EAAE,CAAC,CAAC,CAAC,UAAU,CAAC,GAAG,CAAC,CAAC;QAAE,OAAO,IAAI,CAAC;IACrD,OAAO,eAAe,CAAC,IAAI,CAAC,CAAC,CAAC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C,MAAM,iCAAiC,MAAM,IAAI;YAC3E,OAAO,CAAC,KAAK,CAAC,CAAC,EAAE,EAAE,CAAC,CAAC,IAAI,CAAC,IAAI,CAAC;YAC/B,CAAC,OAAO,CAAC,MAAM,GAAG,EAAE,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,CAAC,EAAE,CAAC,CAC5C,CAAC;QACF,IAAI,CAAC,sFAAsF,CAAC,CAAC;IAC/F,CAAC;IACD,OAAO,OAAO,CAAC;AACjB,CAAC"}
|
package/dist/build/util.d.ts
CHANGED
|
@@ -1,4 +1,20 @@
|
|
|
1
1
|
/** Small helpers shared by build.ts and the build/ modules. */
|
|
2
|
+
import { type StepHandle, type Ui } from "../ui/index.js";
|
|
2
3
|
export declare const isWin: boolean;
|
|
3
4
|
export declare function run(cmd: string, args: string[], cwd: string): void;
|
|
5
|
+
export interface RunToolOptions {
|
|
6
|
+
env?: NodeJS.ProcessEnv;
|
|
7
|
+
/** The step the tool runs under: its last output line becomes the live
|
|
8
|
+
* progress line. */
|
|
9
|
+
step?: StepHandle;
|
|
10
|
+
/** `--verbose`: stream everything, fold nothing. */
|
|
11
|
+
verbose?: boolean;
|
|
12
|
+
}
|
|
13
|
+
/** Run a tool and wait for it.
|
|
14
|
+
*
|
|
15
|
+
* Plain output or `--verbose`: the tool inherits our stdio and streams
|
|
16
|
+
* exactly as before. Fancy output: the tool's output is captured and shown as
|
|
17
|
+
* the running step's single progress line (on a live terminal), and the whole
|
|
18
|
+
* captured log is printed only if the tool fails. */
|
|
19
|
+
export declare function runTool(ui: Ui, cmd: string, args: string[], cwd: string, o?: RunToolOptions): Promise<void>;
|
|
4
20
|
//# sourceMappingURL=util.d.ts.map
|
package/dist/build/util.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"util.d.ts","sourceRoot":"","sources":["../../src/build/util.ts"],"names":[],"mappings":"AAAA,+DAA+D;
|
|
1
|
+
{"version":3,"file":"util.d.ts","sourceRoot":"","sources":["../../src/build/util.ts"],"names":[],"mappings":"AAAA,+DAA+D;AAI/D,OAAO,EAAa,KAAK,UAAU,EAAE,KAAK,EAAE,EAAE,MAAM,gBAAgB,CAAC;AAErE,eAAO,MAAM,KAAK,SAAyB,CAAC;AAE5C,wBAAgB,GAAG,CAAC,GAAG,EAAE,MAAM,EAAE,IAAI,EAAE,MAAM,EAAE,EAAE,GAAG,EAAE,MAAM,QAI3D;AAMD,MAAM,WAAW,cAAc;IAC7B,GAAG,CAAC,EAAE,MAAM,CAAC,UAAU,CAAC;IACxB;wBACoB;IACpB,IAAI,CAAC,EAAE,UAAU,CAAC;IAClB,oDAAoD;IACpD,OAAO,CAAC,EAAE,OAAO,CAAC;CACnB;AAED;;;;;qDAKqD;AACrD,wBAAsB,OAAO,CAC3B,EAAE,EAAE,EAAE,EACN,GAAG,EAAE,MAAM,EACX,IAAI,EAAE,MAAM,EAAE,EACd,GAAG,EAAE,MAAM,EACX,CAAC,GAAE,cAAmB,GACrB,OAAO,CAAC,IAAI,CAAC,CAuCf"}
|
package/dist/build/util.js
CHANGED
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
/** Small helpers shared by build.ts and the build/ modules. */
|
|
2
|
-
import { spawnSync } from "node:child_process";
|
|
2
|
+
import { spawn, spawnSync } from "node:child_process";
|
|
3
3
|
import { platform } from "node:os";
|
|
4
|
+
import { stripAnsi } from "../ui/index.js";
|
|
4
5
|
export const isWin = platform() === "win32";
|
|
5
6
|
export function run(cmd, args, cwd) {
|
|
6
7
|
const r = spawnSync(cmd, args, { cwd, stdio: "inherit" });
|
|
@@ -9,4 +10,53 @@ export function run(cmd, args, cwd) {
|
|
|
9
10
|
if (r.status !== 0)
|
|
10
11
|
throw new Error(`${cmd} ${args.join(" ")} exited ${r.status}`);
|
|
11
12
|
}
|
|
13
|
+
/** Most of a tool's output kept for the failure dump (the tail wins: that is
|
|
14
|
+
* where the error is). */
|
|
15
|
+
const MAX_LOG_BYTES = 16 * 2 ** 20;
|
|
16
|
+
/** Run a tool and wait for it.
|
|
17
|
+
*
|
|
18
|
+
* Plain output or `--verbose`: the tool inherits our stdio and streams
|
|
19
|
+
* exactly as before. Fancy output: the tool's output is captured and shown as
|
|
20
|
+
* the running step's single progress line (on a live terminal), and the whole
|
|
21
|
+
* captured log is printed only if the tool fails. */
|
|
22
|
+
export async function runTool(ui, cmd, args, cwd, o = {}) {
|
|
23
|
+
const label = `${cmd} ${args.join(" ")}`;
|
|
24
|
+
const fold = ui.caps.fancy && !o.verbose && o.step !== undefined;
|
|
25
|
+
const child = spawn(cmd, args, {
|
|
26
|
+
cwd,
|
|
27
|
+
env: o.env ?? process.env,
|
|
28
|
+
stdio: fold ? ["ignore", "pipe", "pipe"] : "inherit",
|
|
29
|
+
});
|
|
30
|
+
let log = "";
|
|
31
|
+
if (fold) {
|
|
32
|
+
let pending = "";
|
|
33
|
+
const feed = (b) => {
|
|
34
|
+
const text = b.toString("utf-8");
|
|
35
|
+
log += text;
|
|
36
|
+
if (log.length > MAX_LOG_BYTES)
|
|
37
|
+
log = log.slice(log.length - MAX_LOG_BYTES);
|
|
38
|
+
pending += text;
|
|
39
|
+
const lines = pending.split(/\r\n|\n|\r/);
|
|
40
|
+
pending = lines.pop() ?? "";
|
|
41
|
+
for (const l of lines) {
|
|
42
|
+
const clean = stripAnsi(l).trim();
|
|
43
|
+
if (clean)
|
|
44
|
+
o.step.progress(clean);
|
|
45
|
+
}
|
|
46
|
+
};
|
|
47
|
+
child.stdout.on("data", feed);
|
|
48
|
+
child.stderr.on("data", feed);
|
|
49
|
+
}
|
|
50
|
+
const code = await new Promise((resolve, reject) => {
|
|
51
|
+
child.once("error", reject);
|
|
52
|
+
child.once("close", (c) => resolve(c));
|
|
53
|
+
}).catch((e) => {
|
|
54
|
+
throw new Error(`${label} failed to start: ${e.message}`);
|
|
55
|
+
});
|
|
56
|
+
if (code !== 0) {
|
|
57
|
+
if (fold && log)
|
|
58
|
+
ui.dump(log.endsWith("\n") ? log : log + "\n");
|
|
59
|
+
throw new Error(`${label} exited ${code}`);
|
|
60
|
+
}
|
|
61
|
+
}
|
|
12
62
|
//# sourceMappingURL=util.js.map
|
package/dist/build/util.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"util.js","sourceRoot":"","sources":["../../src/build/util.ts"],"names":[],"mappings":"AAAA,+DAA+D;AAE/D,OAAO,EAAE,SAAS,EAAE,MAAM,oBAAoB,CAAC;
|
|
1
|
+
{"version":3,"file":"util.js","sourceRoot":"","sources":["../../src/build/util.ts"],"names":[],"mappings":"AAAA,+DAA+D;AAE/D,OAAO,EAAE,KAAK,EAAE,SAAS,EAAE,MAAM,oBAAoB,CAAC;AACtD,OAAO,EAAE,QAAQ,EAAE,MAAM,SAAS,CAAC;AACnC,OAAO,EAAE,SAAS,EAA4B,MAAM,gBAAgB,CAAC;AAErE,MAAM,CAAC,MAAM,KAAK,GAAG,QAAQ,EAAE,KAAK,OAAO,CAAC;AAE5C,MAAM,UAAU,GAAG,CAAC,GAAW,EAAE,IAAc,EAAE,GAAW;IAC1D,MAAM,CAAC,GAAG,SAAS,CAAC,GAAG,EAAE,IAAI,EAAE,EAAE,GAAG,EAAE,KAAK,EAAE,SAAS,EAAE,CAAC,CAAC;IAC1D,IAAI,CAAC,CAAC,KAAK;QAAE,MAAM,IAAI,KAAK,CAAC,GAAG,GAAG,IAAI,IAAI,CAAC,IAAI,CAAC,GAAG,CAAC,qBAAqB,CAAC,CAAC,KAAK,CAAC,OAAO,EAAE,CAAC,CAAC;IAC7F,IAAI,CAAC,CAAC,MAAM,KAAK,CAAC;QAAE,MAAM,IAAI,KAAK,CAAC,GAAG,GAAG,IAAI,IAAI,CAAC,IAAI,CAAC,GAAG,CAAC,WAAW,CAAC,CAAC,MAAM,EAAE,CAAC,CAAC;AACrF,CAAC;AAED;0BAC0B;AAC1B,MAAM,aAAa,GAAG,EAAE,GAAG,CAAC,IAAI,EAAE,CAAC;AAWnC;;;;;qDAKqD;AACrD,M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IAAI,KAAK;oBAAE,CAAC,CAAC,IAAK,CAAC,QAAQ,CAAC,KAAK,CAAC,CAAC;YACrC,CAAC;QACH,CAAC,CAAC;QACF,KAAK,CAAC,MAAO,CAAC,EAAE,CAAC,MAAM,EAAE,IAAI,CAAC,CAAC;QAC/B,KAAK,CAAC,MAAO,CAAC,EAAE,CAAC,MAAM,EAAE,IAAI,CAAC,CAAC;IACjC,CAAC;IAED,MAAM,IAAI,GAAG,MAAM,IAAI,OAAO,CAAgB,CAAC,OAAO,EAAE,MAAM,EAAE,EAAE;QAChE,KAAK,CAAC,IAAI,CAAC,OAAO,EAAE,MAAM,CAAC,CAAC;QAC5B,KAAK,CAAC,IAAI,CAAC,OAAO,EAAE,CAAC,CAAC,EAAE,EAAE,CAAC,OAAO,CAAC,CAAC,CAAC,CAAC,CAAC;IACzC,CAAC,CAAC,CAAC,KAAK,CAAC,CAAC,CAAQ,EAAE,EAAE;QACpB,MAAM,IAAI,KAAK,CAAC,GAAG,KAAK,qBAAqB,CAAC,CAAC,OAAO,EAAE,CAAC,CAAC;IAC5D,CAAC,CAAC,CAAC;IAEH,IAAI,IAAI,KAAK,CAAC,EAAE,CAAC;QACf,IAAI,IAAI,IAAI,GAAG;YAAE,EAAE,CAAC,IAAI,CAAC,GAAG,CAAC,QAAQ,CAAC,IAAI,CAAC,CAAC,CAAC,CAAC,GAAG,CAAC,CAAC,CAAC,GAAG,GAAG,IAAI,CAAC,CAAC;QAChE,MAAM,IAAI,KAAK,CAAC,GAAG,KAAK,WAAW,IAAI,EAAE,CAAC,CAAC;IAC7C,CAAC;AACH,CAAC"}
|
package/dist/build.d.ts
CHANGED
|
@@ -1,7 +1,11 @@
|
|
|
1
|
-
/** `pylair build
|
|
2
|
-
* fetch standalone CPython
|
|
3
|
-
* interpreter (native wheels only
|
|
4
|
-
* source
|
|
1
|
+
/** `pylair build`, the M0 recipe, generalized:
|
|
2
|
+
* fetch standalone CPython, stage site-packages via the bundled
|
|
3
|
+
* interpreter (native wheels only, no cross-compile), stage app
|
|
4
|
+
* source, prune, tauri build, unsigned warning.
|
|
5
|
+
*
|
|
6
|
+
* Output goes through ui/ (one step line per stage with its time; the tauri
|
|
7
|
+
* build folded into one progress line on a live terminal; plain, stable text
|
|
8
|
+
* everywhere else).
|
|
5
9
|
*/
|
|
6
10
|
export { compileBytecode, PYC_INVALIDATION_MODE } from "./build/bytecode.js";
|
|
7
11
|
export { DownloadError, backoffMs, download, downloadTimeoutMs, downloadWithRetry, ensureTarball, } from "./build/download.js";
|
|
@@ -20,6 +24,9 @@ export interface BuildOptions {
|
|
|
20
24
|
* no signing. What CI and `pylair build --stage-only` use to prove a
|
|
21
25
|
* project builds without paying for a native bundle. */
|
|
22
26
|
stageOnly?: boolean;
|
|
27
|
+
/** Stream the uv and tauri output as it comes instead of folding it into
|
|
28
|
+
* the live progress line (`pylair build --verbose`). */
|
|
29
|
+
verbose?: boolean;
|
|
23
30
|
}
|
|
24
31
|
export declare function build(opts: BuildOptions): Promise<void>;
|
|
25
32
|
//# sourceMappingURL=build.d.ts.map
|
package/dist/build.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"build.d.ts","sourceRoot":"","sources":["../src/build.ts"],"names":[],"mappings":"AAAA
|
|
1
|
+
{"version":3,"file":"build.d.ts","sourceRoot":"","sources":["../src/build.ts"],"names":[],"mappings":"AAAA;;;;;;;;GAQG;AAwDH,OAAO,EAAE,eAAe,EAAE,qBAAqB,EAAE,MAAM,qBAAqB,CAAC;AAC7E,OAAO,EACL,aAAa,EACb,SAAS,EACT,QAAQ,EACR,iBAAiB,EACjB,iBAAiB,EACjB,aAAa,GACd,MAAM,qBAAqB,CAAC;AAC7B,OAAO,EAAE,YAAY,EAAE,MAAM,oBAAoB,CAAC;AAClD,OAAO,EAAE,UAAU,EAAE,MAAM,gBAAgB,CAAC;AAC5C,OAAO,EAAE,WAAW,EAAE,MAAM,mBAAmB,CAAC;AAChD,OAAO,EAAE,sBAAsB,EAAE,YAAY,EAAE,gBAAgB,EAAE,MAAM,mBAAmB,CAAC;AAE3F,MAAM,WAAW,YAAY;IAC3B,MAAM,EAAE,MAAM,CAAC;IACf,6CAA6C;IAC7C,SAAS,CAAC,EAAE,MAAM,EAAE,CAAC;IACrB,kEAAkE;IAClE,SAAS,CAAC,EAAE,OAAO,CAAC;IACpB;;;4DAGwD;IACxD,SAAS,CAAC,EAAE,OAAO,CAAC;IACpB;4DACwD;IACxD,OAAO,CAAC,EAAE,OAAO,CAAC;CACnB;AAKD,wBAAsB,KAAK,CAAC,IAAI,EAAE,YAAY,GAAG,OAAO,CAAC,IAAI,CAAC,CA6N7D"}
|
package/dist/build.js
CHANGED
|
@@ -1,7 +1,11 @@
|
|
|
1
|
-
/** `pylair build
|
|
2
|
-
* fetch standalone CPython
|
|
3
|
-
* interpreter (native wheels only
|
|
4
|
-
* source
|
|
1
|
+
/** `pylair build`, the M0 recipe, generalized:
|
|
2
|
+
* fetch standalone CPython, stage site-packages via the bundled
|
|
3
|
+
* interpreter (native wheels only, no cross-compile), stage app
|
|
4
|
+
* source, prune, tauri build, unsigned warning.
|
|
5
|
+
*
|
|
6
|
+
* Output goes through ui/ (one step line per stage with its time; the tauri
|
|
7
|
+
* build folded into one progress line on a live terminal; plain, stable text
|
|
8
|
+
* everywhere else).
|
|
5
9
|
*/
|
|
6
10
|
/*
|
|
7
11
|
* Where each step lives. build() below calls into them; this file also
|
|
@@ -17,7 +21,8 @@
|
|
|
17
21
|
* build/notices.ts stageNotices: THIRD-PARTY-NOTICES for the bundle
|
|
18
22
|
* build/bytecode.ts compileBytecode: checked-hash pycs for the bundle
|
|
19
23
|
* build/sign.ts macOS ad-hoc signing of the built .app (adHocSign)
|
|
20
|
-
* build/
|
|
24
|
+
* build/artifacts.ts the installers a build produced, for the summary
|
|
25
|
+
* build/util.ts isWin, run() and runTool(), shared by build() and the modules
|
|
21
26
|
* ./prune.ts pruning the staged tree (DEFAULT_PRUNE, prune)
|
|
22
27
|
* ./config.ts [tool.pylair] and tauri.conf.json loading
|
|
23
28
|
*/
|
|
@@ -30,13 +35,15 @@ import { importRoot, loadConfig, loadTauriConfig, tauriCliEntry, windowsSigningC
|
|
|
30
35
|
import { assertCapabilities, checkPatterns, formatFinding, loadCapabilities } from "./capabilities.js";
|
|
31
36
|
import { loadManifest } from "./manifest.js";
|
|
32
37
|
import { DEFAULT_PRUNE, prune } from "./prune.js";
|
|
38
|
+
import { findArtifacts } from "./build/artifacts.js";
|
|
33
39
|
import { compileBytecode } from "./build/bytecode.js";
|
|
34
40
|
import { stageNotices } from "./build/notices.js";
|
|
35
41
|
import { hostTriple } from "./build/pbs.js";
|
|
36
42
|
import { fetchPython, stageEnv } from "./build/python.js";
|
|
37
43
|
import { adHocSign } from "./build/sign.js";
|
|
38
44
|
import { stageSource } from "./build/source.js";
|
|
39
|
-
import { isWin,
|
|
45
|
+
import { isWin, runTool } from "./build/util.js";
|
|
46
|
+
import { formatDuration, formatSize, ui } from "./ui/index.js";
|
|
40
47
|
import { wrapWarnings } from "./wrapconfig.js";
|
|
41
48
|
import { ROOT_SOURCE_EXCLUDES, STAGED_APP, runSmokeImports, smokeImports, sourceIsRoot, writeRuntimeFile, } from "./wrapbuild.js";
|
|
42
49
|
export { compileBytecode, PYC_INVALIDATION_MODE } from "./build/bytecode.js";
|
|
@@ -45,8 +52,11 @@ export { stageNotices } from "./build/notices.js";
|
|
|
45
52
|
export { hostTriple } from "./build/pbs.js";
|
|
46
53
|
export { stageSource } from "./build/source.js";
|
|
47
54
|
export { requirementsHaveHashes, uvExportArgs, uvPipInstallArgs } from "./build/python.js";
|
|
55
|
+
const UNSIGNED_WARNING = "UNSIGNED BUILD: Gatekeeper and SmartScreen will warn users (see docs/build.md#signing)";
|
|
48
56
|
export async function build(opts) {
|
|
49
57
|
const { appDir } = opts;
|
|
58
|
+
const verbose = opts.verbose ?? false;
|
|
59
|
+
const started = Date.now();
|
|
50
60
|
const tauriDir = join(appDir, "src-tauri");
|
|
51
61
|
const resources = join(tauriDir, "resources");
|
|
52
62
|
const tconf = loadTauriConfig(appDir);
|
|
@@ -54,112 +64,148 @@ export async function build(opts) {
|
|
|
54
64
|
const wrap = cfg.mode === "wrap" ? cfg.wrap : undefined;
|
|
55
65
|
if (wrap)
|
|
56
66
|
for (const w of wrapWarnings(wrap))
|
|
57
|
-
|
|
67
|
+
ui.warn(`warning: ${w}`);
|
|
58
68
|
// Capability scopes are checked first: a bad `allow: []` or a half-scoped
|
|
59
69
|
// window is a configuration error, not worth a Python download to find out.
|
|
60
70
|
for (const w of assertCapabilities(appDir))
|
|
61
|
-
|
|
71
|
+
ui.warn(formatFinding(w), { bare: true });
|
|
62
72
|
const targetTriple = hostTriple(); // cross-compile refused by construction
|
|
63
|
-
|
|
64
|
-
|
|
73
|
+
ui.header("pylair build", [
|
|
74
|
+
["app", tconf.productName],
|
|
75
|
+
["version", tconf.version],
|
|
76
|
+
["platform", `${platform()}/${arch()} (${targetTriple}), native build only`],
|
|
77
|
+
["mode", wrap ? `wrap (${wrap.framework})` : "bridge"],
|
|
78
|
+
], [
|
|
79
|
+
`building ${tconf.productName} ${tconf.version} for ${platform()}/${arch()} (${targetTriple})`,
|
|
80
|
+
"note: pylair builds native bundles only; run this on each target OS",
|
|
81
|
+
]);
|
|
82
|
+
const stages = [
|
|
83
|
+
"bundle python",
|
|
84
|
+
"install deps",
|
|
85
|
+
"stage app",
|
|
86
|
+
"prune",
|
|
87
|
+
"compile bytecode",
|
|
88
|
+
"smoke test",
|
|
89
|
+
...(opts.stageOnly ? [] : ["build installer"]),
|
|
90
|
+
];
|
|
91
|
+
ui.setStepWidth(Math.max(...stages.map((s) => s.length)));
|
|
65
92
|
const cacheDir = join(appDir, ".pylair", "cache");
|
|
66
|
-
const bundled =
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
93
|
+
const bundled = await ui.step("bundle python", async (s) => {
|
|
94
|
+
if (opts.skipFetch) {
|
|
95
|
+
s.detail("reusing staged python");
|
|
96
|
+
return join(resources, "python", isWin ? "python.exe" : "bin/python3");
|
|
97
|
+
}
|
|
98
|
+
return fetchPython(resources, cacheDir, cfg.pythonVersion);
|
|
99
|
+
});
|
|
100
|
+
await ui.step("install deps", (s) => stageEnv(resources, bundled, appDir, join(appDir, cfg.requirements), cacheDir, { step: s, verbose }));
|
|
72
101
|
// Stage app source so resources/ mirrors the installed layout.
|
|
73
102
|
// Wrap mode stages the app as `app/` whatever the source dir is called, so
|
|
74
103
|
// tauri.conf.json's resource mapping never changes with `source`.
|
|
75
104
|
const staged = wrap ? STAGED_APP : cfg.source;
|
|
76
105
|
const srcDir = join(appDir, cfg.source);
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
|
|
106
|
+
await ui.step("stage app", () => {
|
|
107
|
+
// Licenses ship with the bundle: collect before prune can remove sources.
|
|
108
|
+
stageNotices(resources, fileURLToPath(new URL("..", import.meta.url)));
|
|
109
|
+
if (!existsSync(srcDir))
|
|
110
|
+
throw new Error(`source dir ${srcDir} missing`);
|
|
111
|
+
if (wrap?.entry && !existsSync(join(srcDir, wrap.entry)))
|
|
112
|
+
throw new Error(`[tool.pylair.wrap] entry ${wrap.entry} not found under ${srcDir}`);
|
|
113
|
+
rmSync(join(resources, staged), { recursive: true, force: true });
|
|
114
|
+
stageSource(srcDir, join(resources, staged), cfg.include, undefined, wrap && sourceIsRoot(appDir, cfg.source) ? ROOT_SOURCE_EXCLUDES : []);
|
|
115
|
+
// What the plugin reads at startup: the launcher command and the window options.
|
|
116
|
+
if (wrap)
|
|
117
|
+
writeRuntimeFile(join(resources, "pylair-wrap.json"), cfg, STAGED_APP);
|
|
118
|
+
});
|
|
119
|
+
await ui.step("prune", (s) => {
|
|
120
|
+
const res = prune(resources, [...DEFAULT_PRUNE, ...cfg.prune]);
|
|
121
|
+
const mib = (res.bytesFreed / 2 ** 20).toFixed(1);
|
|
122
|
+
if (ui.caps.fancy)
|
|
123
|
+
s.detail(`${res.removed} paths, ${mib} MiB freed`);
|
|
124
|
+
else
|
|
125
|
+
ui.line(`pruned ${res.removed} paths (${mib} MiB) from staged resources`);
|
|
126
|
+
});
|
|
127
|
+
// Precompile what survives the prune: read-only installs cannot
|
|
90
128
|
// write pycs at launch, so the bundle ships them ready-made.
|
|
91
|
-
|
|
129
|
+
await ui.step("compile bytecode", (s) => {
|
|
130
|
+
const failed = compileBytecode(resources, bundled, ["site-packages", staged]);
|
|
131
|
+
if (failed.length)
|
|
132
|
+
s.detail(`${failed.length} file(s) left uncompiled`);
|
|
133
|
+
});
|
|
92
134
|
// Over-pruning must fail at build time, not on the user's machine:
|
|
93
135
|
// import the app (bridge) or the framework (wrap) with the staged tree
|
|
94
136
|
// exactly as the bundle sees it.
|
|
95
137
|
const sep = isWin ? ";" : ":";
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
|
|
100
|
-
|
|
101
|
-
|
|
102
|
-
|
|
103
|
-
PYTHONDONTWRITEBYTECODE: "1",
|
|
104
|
-
}, tmpdir());
|
|
105
|
-
if (failure)
|
|
106
|
-
throw new Error(`staged bundle failed the framework import check (${smokeImports(wrap).join(", ")}): ` +
|
|
107
|
-
`pruning or missing deps? ${failure}`);
|
|
108
|
-
}
|
|
109
|
-
else {
|
|
110
|
-
// The import root is the PARENT of the staged source dir ("backend.app"
|
|
111
|
-
// resolves from resources/, not resources/backend/). Run from an unrelated
|
|
112
|
-
// cwd so the project checkout can't satisfy the import by accident.
|
|
113
|
-
// PYTHONDONTWRITEBYTECODE: the check exercises the compiled pycs rather
|
|
114
|
-
// than writing a second, non-deterministic set into the staged tree.
|
|
115
|
-
const check = spawnSync(bundled, ["-c", `import ${cfg.appModule}; print("staged import ok")`], {
|
|
116
|
-
encoding: "utf-8",
|
|
117
|
-
cwd: tmpdir(),
|
|
118
|
-
env: {
|
|
119
|
-
...process.env,
|
|
120
|
-
PYTHONPATH: `${importRoot(resources, cfg.source)}${sep}${join(resources, "site-packages")}`,
|
|
138
|
+
await ui.step("smoke test", (s) => {
|
|
139
|
+
if (wrap) {
|
|
140
|
+
// The server runs in the staged app dir; the framework (gradio,
|
|
141
|
+
// streamlit, or the `-m` module of a command) must import with the
|
|
142
|
+
// bundled interpreter after the prune.
|
|
143
|
+
const failure = runSmokeImports(bundled, smokeImports(wrap), {
|
|
144
|
+
PYTHONPATH: `${join(resources, STAGED_APP)}${sep}${join(resources, "site-packages")}`,
|
|
121
145
|
PYTHONNOUSERSITE: "1",
|
|
122
146
|
PYTHONDONTWRITEBYTECODE: "1",
|
|
123
|
-
},
|
|
124
|
-
|
|
125
|
-
|
|
126
|
-
|
|
127
|
-
|
|
128
|
-
|
|
129
|
-
|
|
130
|
-
|
|
131
|
-
|
|
132
|
-
|
|
133
|
-
|
|
134
|
-
|
|
135
|
-
const
|
|
136
|
-
|
|
137
|
-
module: cfg.appModule,
|
|
147
|
+
}, tmpdir());
|
|
148
|
+
if (failure)
|
|
149
|
+
throw new Error(`staged bundle failed the framework import check (${smokeImports(wrap).join(", ")}): ` +
|
|
150
|
+
`pruning or missing deps? ${failure}`);
|
|
151
|
+
s.detail(`imports ${smokeImports(wrap).join(", ")}`);
|
|
152
|
+
}
|
|
153
|
+
else {
|
|
154
|
+
// The import root is the PARENT of the staged source dir ("backend.app"
|
|
155
|
+
// resolves from resources/, not resources/backend/). Run from an unrelated
|
|
156
|
+
// cwd so the project checkout can't satisfy the import by accident.
|
|
157
|
+
// PYTHONDONTWRITEBYTECODE: the check exercises the compiled pycs rather
|
|
158
|
+
// than writing a second, non-deterministic set into the staged tree.
|
|
159
|
+
const check = spawnSync(bundled, ["-c", `import ${cfg.appModule}; print("staged import ok")`], {
|
|
160
|
+
encoding: "utf-8",
|
|
138
161
|
cwd: tmpdir(),
|
|
139
162
|
env: {
|
|
163
|
+
...process.env,
|
|
140
164
|
PYTHONPATH: `${importRoot(resources, cfg.source)}${sep}${join(resources, "site-packages")}`,
|
|
141
165
|
PYTHONNOUSERSITE: "1",
|
|
142
166
|
PYTHONDONTWRITEBYTECODE: "1",
|
|
143
167
|
},
|
|
144
168
|
});
|
|
145
|
-
|
|
146
|
-
|
|
147
|
-
|
|
169
|
+
if (check.status !== 0)
|
|
170
|
+
throw new Error(`staged bundle failed the import check (${cfg.appModule}): ` +
|
|
171
|
+
`pruning or missing deps? ${check.stderr?.trim()}`);
|
|
172
|
+
s.detail(`imports ${cfg.appModule}`);
|
|
148
173
|
}
|
|
149
|
-
|
|
150
|
-
|
|
174
|
+
// With the app importable, ask it which functions it exposes and warn
|
|
175
|
+
// about scope patterns that match none. Best effort: a failure here only
|
|
176
|
+
// skips the warning, it never fails the build.
|
|
177
|
+
const caps = wrap ? [] : loadCapabilities(appDir).capabilities;
|
|
178
|
+
if (caps.length) {
|
|
179
|
+
try {
|
|
180
|
+
const m = loadManifest({
|
|
181
|
+
python: bundled,
|
|
182
|
+
module: cfg.appModule,
|
|
183
|
+
cwd: tmpdir(),
|
|
184
|
+
env: {
|
|
185
|
+
PYTHONPATH: `${importRoot(resources, cfg.source)}${sep}${join(resources, "site-packages")}`,
|
|
186
|
+
PYTHONNOUSERSITE: "1",
|
|
187
|
+
PYTHONDONTWRITEBYTECODE: "1",
|
|
188
|
+
},
|
|
189
|
+
});
|
|
190
|
+
const names = (m.functions ?? []).map((f) => f.name);
|
|
191
|
+
for (const w of checkPatterns(caps, names))
|
|
192
|
+
ui.warn(formatFinding(w), { bare: true });
|
|
193
|
+
}
|
|
194
|
+
catch (e) {
|
|
195
|
+
ui.note(`note: skipped the capability pattern check (could not list exposed functions: ${e.message.split("\n")[0]})`);
|
|
196
|
+
}
|
|
151
197
|
}
|
|
152
|
-
}
|
|
198
|
+
});
|
|
153
199
|
if (opts.stageOnly) {
|
|
154
|
-
|
|
200
|
+
ui.line();
|
|
201
|
+
ui.summary("ok", `stage-only: resources staged and verified; tauri build skipped (${formatDuration(Date.now() - started)})`);
|
|
155
202
|
return;
|
|
156
203
|
}
|
|
157
|
-
// ── tauri build ────────────────────────────────────────────────────
|
|
158
204
|
// Signing is per-platform: only macOS creds (env OR tauri.conf
|
|
159
|
-
// signingIdentity) mean this Mac build gets a real signature
|
|
205
|
+
// signingIdentity) mean this Mac build gets a real signature; a Windows
|
|
160
206
|
// thumbprint on its own must not suppress the ad-hoc pass.
|
|
161
|
-
// NOTE: TAURI_SIGNING_PRIVATE_KEY signs *updater* artifacts, not the app
|
|
162
|
-
// it must NOT silence the unsigned warning.
|
|
207
|
+
// NOTE: TAURI_SIGNING_PRIVATE_KEY signs *updater* artifacts, not the app,
|
|
208
|
+
// so it must NOT silence the unsigned warning.
|
|
163
209
|
const appleSigned = !!(process.env.APPLE_SIGNING_IDENTITY ||
|
|
164
210
|
process.env.APPLE_CERTIFICATE ||
|
|
165
211
|
tconf.macSigningIdentity);
|
|
@@ -167,22 +213,27 @@ export async function build(opts) {
|
|
|
167
213
|
? appleSigned
|
|
168
214
|
: platform() === "win32"
|
|
169
215
|
? windowsSigningConfigured(appDir)
|
|
170
|
-
: true; // no signing concept on Linux
|
|
171
|
-
|
|
172
|
-
|
|
216
|
+
: true; // no signing concept on Linux: don't warn
|
|
217
|
+
const tauriArgs = opts.tauriArgs ?? [];
|
|
218
|
+
const tauriStarted = Date.now();
|
|
219
|
+
await ui.step("build installer", (s) => runTool(ui, process.execPath, [tauriCliEntry(appDir), "build", ...tauriArgs], appDir, {
|
|
220
|
+
step: s,
|
|
221
|
+
verbose: verbose || tauriArgs.includes("--verbose"),
|
|
222
|
+
}));
|
|
223
|
+
// Unsigned macOS builds get a full-bundle ad-hoc signature, better
|
|
173
224
|
// than the linker stub Tauri leaves on just the main binary. Skipped
|
|
174
225
|
// entirely when a real identity is configured: ad-hoc must never run
|
|
175
226
|
// over a proper signature.
|
|
176
227
|
if (platform() === "darwin" && !appleSigned)
|
|
177
|
-
adHocSign(tauriDir, tconf.productName);
|
|
178
|
-
|
|
179
|
-
|
|
180
|
-
|
|
181
|
-
|
|
182
|
-
|
|
183
|
-
|
|
184
|
-
|
|
185
|
-
|
|
186
|
-
|
|
228
|
+
await ui.step("ad-hoc sign", () => adHocSign(tauriDir, tconf.productName));
|
|
229
|
+
const artifacts = findArtifacts(tauriDir, tauriStarted, { debug: tauriArgs.includes("--debug") });
|
|
230
|
+
ui.line();
|
|
231
|
+
ui.summary("ok", `built ${tconf.productName} ${tconf.version} in ${formatDuration(Date.now() - started)}`);
|
|
232
|
+
if (artifacts.length)
|
|
233
|
+
ui.rows(artifacts.map((a) => [formatSize(a.bytes).padStart(9), a.path]), 2);
|
|
234
|
+
else
|
|
235
|
+
ui.note(" no installer found under the bundle directory (built with --no-bundle?)");
|
|
236
|
+
if (!hasSigning)
|
|
237
|
+
ui.warn(UNSIGNED_WARNING, { bare: true });
|
|
187
238
|
}
|
|
188
239
|
//# sourceMappingURL=build.js.map
|
package/dist/build.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"build.js","sourceRoot":"","sources":["../src/build.ts"],"names":[],"mappings":"AAAA
|
|
1
|
+
{"version":3,"file":"build.js","sourceRoot":"","sources":["../src/build.ts"],"names":[],"mappings":"AAAA;;;;;;;;GAQG;AAEH;;;;;;;;;;;;;;;;;;GAkBG;AAEH,OAAO,EAAE,SAAS,EAAE,MAAM,oBAAoB,CAAC;AAC/C,OAAO,EAAE,UAAU,EAAE,MAAM,EAAE,MAAM,SAAS,CAAC;AAC7C,OAAO,EAAE,IAAI,EAAE,QAAQ,EAAE,MAAM,EAAE,MAAM,SAAS,CAAC;AACjD,OAAO,EAAE,IAAI,EAAE,MAAM,WAAW,CAAC;AACjC,OAAO,EAAE,aAAa,EAAE,MAAM,UAAU,CAAC;AACzC,OAAO,EACL,UAAU,EACV,UAAU,EACV,eAAe,EACf,aAAa,EACb,wBAAwB,GACzB,MAAM,aAAa,CAAC;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E;IACrE,2BAA2B;IAC3B,IAAI,QAAQ,EAAE,KAAK,QAAQ,IAAI,CAAC,WAAW;QACzC,MAAM,EAAE,CAAC,IAAI,CAAC,aAAa,EAAE,GAAG,EAAE,CAAC,SAAS,CAAC,QAAQ,EAAE,KAAK,CAAC,WAAW,CAAC,CAAC,CAAC;IAE7E,MAAM,SAAS,GAAG,aAAa,CAAC,QAAQ,EAAE,YAAY,EAAE,EAAE,KAAK,EAAE,SAAS,CAAC,QAAQ,CAAC,SAAS,CAAC,EAAE,CAAC,CAAC;IAClG,EAAE,CAAC,IAAI,EAAE,CAAC;IACV,EAAE,CAAC,OAAO,CAAC,IAAI,EAAE,SAAS,KAAK,CAAC,WAAW,IAAI,KAAK,CAAC,OAAO,OAAO,cAAc,CAAC,IAAI,CAAC,GAAG,EAAE,GAAG,OAAO,CAAC,EAAE,CAAC,CAAC;IAC3G,IAAI,SAAS,CAAC,MAAM;QAClB,EAAE,CAAC,IAAI,CACL,SAAS,CAAC,GAAG,CAAC,CAAC,CAAC,EAAE,EAAE,CAAC,CAAC,UAAU,CAAC,CAAC,CAAC,KAAK,CAAC,CAAC,QAAQ,CAAC,CAAC,CAAC,EAAE,CAAC,CAAC,IAAI,CAAU,CAAC,EACxE,CAAC,CACF,CAAC;;QACC,EAAE,CAAC,IAAI,CAAC,2EAA2E,CAAC,CAAC;IAC1F,IAAI,CAAC,UAAU;QAAE,EAAE,CAAC,IAAI,CAAC,gBAAgB,EAAE,EAAE,IAAI,EAAE,IAAI,EAAE,CAAC,CAAC;AAC7D,CAAC"}
|
package/dist/cli.d.ts
CHANGED
|
@@ -18,6 +18,7 @@ export declare function parseBuildArgs(rest: string[]): {
|
|
|
18
18
|
bundles?: string;
|
|
19
19
|
skipFetch: boolean;
|
|
20
20
|
stageOnly: boolean;
|
|
21
|
+
verbose: boolean;
|
|
21
22
|
tauriArgs: string[];
|
|
22
23
|
};
|
|
23
24
|
/** Split `pylair wrap` / `pylair init` args. Everything after `--cmd` is the
|
|
@@ -31,5 +32,12 @@ export declare function parseWrapArgs(rest: string[]): {
|
|
|
31
32
|
local?: string;
|
|
32
33
|
mode?: string;
|
|
33
34
|
};
|
|
34
|
-
|
|
35
|
+
/** Drop the global `--plain` flag. It only counts before `--cmd` or a bare
|
|
36
|
+
* `--`: after those the arguments belong to the wrapped server command or to
|
|
37
|
+
* tauri, verbatim. */
|
|
38
|
+
export declare function stripPlain(argv: string[]): {
|
|
39
|
+
argv: string[];
|
|
40
|
+
plain: boolean;
|
|
41
|
+
};
|
|
42
|
+
export declare function main(rawArgv: string[]): number | Promise<number>;
|
|
35
43
|
//# sourceMappingURL=cli.d.ts.map
|
package/dist/cli.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"cli.d.ts","sourceRoot":"","sources":["../src/cli.ts"],"names":[],"mappings":";AACA;;;GAGG;
|
|
1
|
+
{"version":3,"file":"cli.d.ts","sourceRoot":"","sources":["../src/cli.ts"],"names":[],"mappings":";AACA;;;GAGG;AAaH,OAAO,EAAmB,KAAK,aAAa,EAAE,MAAM,iBAAiB,CAAC;AA+DtE;;;uEAGuE;AACvE,wBAAgB,aAAa,CAAC,GAAG,EAAE,MAAM,GAAG,SAAS,EAAE,GAAG,GAAE,MAAsB,GAAG,MAAM,CAE1F;AAwBD;;;mCAGmC;AACnC,wBAAgB,cAAc,CAAC,IAAI,EAAE,MAAM,EAAE,GAAG;IAC9C,GAAG,CAAC,EAAE,MAAM,CAAC;IACb,OAAO,CAAC,EAAE,MAAM,CAAC;IACjB,SAAS,EAAE,OAAO,CAAC;IACnB,SAAS,EAAE,OAAO,CAAC;IACnB,OAAO,EAAE,OAAO,CAAC;IACjB,SAAS,EAAE,MAAM,EAAE,CAAC;CACrB,CA0CA;AAED;mDACmD;AACnD,wBAAgB,aAAa,CAAC,IAAI,EAAE,MAAM,EAAE,GAAG;IAC7C,GAAG,CAAC,EAAE,MAAM,CAAC;IACb,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,SAAS,CAAC,EAAE,aAAa,CAAC;IAC1B,GAAG,CAAC,EAAE,MAAM,EAAE,CAAC;IACf,MAAM,CAAC,EAAE,MAAM,CAAC;IAChB,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,IAAI,CAAC,EAAE,MAAM,CAAC;CACf,CA2BA;AA6BD;;sBAEsB;AACtB,wBAAgB,UAAU,CAAC,IAAI,EAAE,MAAM,EAAE,GAAG;IAAE,IAAI,EAAE,MAAM,EAAE,CAAC;IAAC,KAAK,EAAE,OAAO,CAAA;CAAE,CAM7E;AAQD,wBAAgB,IAAI,CAAC,OAAO,EAAE,MAAM,EAAE,GAAG,MAAM,GAAG,OAAO,CAAC,MAAM,CAAC,CA0EhE"}
|