@applift/cli 0.1.3 → 0.1.5
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/dist/bin.mjs
CHANGED
package/dist/index.mjs
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
export { t as makeContext, n as program } from "./src-
|
|
1
|
+
export { t as makeContext, n as program } from "./src-DfD6njiP.mjs";
|
|
@@ -535,7 +535,8 @@ function detectFrameworkWith(cwd, extra) {
|
|
|
535
535
|
return detectFramework(cwd, extra);
|
|
536
536
|
}
|
|
537
537
|
const program = new Command("applift");
|
|
538
|
-
|
|
538
|
+
const pkg = JSON.parse(fs.readFileSync(new URL("../package.json", import.meta.url), "utf8"));
|
|
539
|
+
program.name("applift").description("三端 App 发版工具(内测 / 多商店提审 / 插件扩展)").version(pkg.version);
|
|
539
540
|
function makeContext(channel, creds, target, artifactPath, note, extra = {}) {
|
|
540
541
|
const label = pc.bold(channel.label);
|
|
541
542
|
const emit = (event) => {
|
|
@@ -632,9 +633,11 @@ program.command("beta").description("内测分发(android/ios → 蒲公英扫
|
|
|
632
633
|
}, artifactPath, cmdOpts.note);
|
|
633
634
|
const r = await agc.stage({
|
|
634
635
|
...ctx,
|
|
635
|
-
emit: () => {
|
|
636
|
+
emit: (e) => {
|
|
637
|
+
if (e.type === "warn") s.message(pc.yellow(`⚠ ${e.message}`));
|
|
638
|
+
}
|
|
636
639
|
});
|
|
637
|
-
if (r.ok) s.stop(`AGC
|
|
640
|
+
if (r.ok) s.stop(`AGC 测试版本已就绪 ${pc.green("✓")}(未提交审核),到控制台「测试」提交并指定测试群组`);
|
|
638
641
|
else {
|
|
639
642
|
s.stop(`AGC 测试发布失败: ${r.error}`);
|
|
640
643
|
process.exitCode = 1;
|
|
@@ -647,7 +650,9 @@ program.command("beta").description("内测分发(android/ios → 蒲公英扫
|
|
|
647
650
|
const ctx = makeContext(pgyer, creds, resolveChannelTarget("pgyer", projCfg, detected), artifactPath, cmdOpts.note, { installPassword: cmdOpts.installPassword });
|
|
648
651
|
const r = await pgyer.stage({
|
|
649
652
|
...ctx,
|
|
650
|
-
emit: () => {
|
|
653
|
+
emit: (e) => {
|
|
654
|
+
if (e.type === "warn") s.message(pc.yellow(`⚠ ${e.message}`));
|
|
655
|
+
}
|
|
651
656
|
});
|
|
652
657
|
if (r.ok) s.stop(`蒲公英发布成功 ${pc.green("✓")} 扫码即装`);
|
|
653
658
|
else {
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@applift/cli",
|
|
3
|
-
"version": "0.1.
|
|
3
|
+
"version": "0.1.5",
|
|
4
4
|
"repository": {
|
|
5
5
|
"type": "git",
|
|
6
6
|
"url": "https://github.com/hcg1023/applift.git",
|
|
@@ -17,7 +17,7 @@
|
|
|
17
17
|
"access": "public"
|
|
18
18
|
},
|
|
19
19
|
"dependencies": {
|
|
20
|
-
"@applift/core": "0.1.
|
|
20
|
+
"@applift/core": "0.1.3",
|
|
21
21
|
"@clack/prompts": "^1.8.1",
|
|
22
22
|
"commander": "^15.0.0",
|
|
23
23
|
"picocolors": "^1.1.1"
|