Skip to content

Commit e28fa1c

Browse files
committed
chore(release): prepare Python Support v1.2.1
1 parent 5e5c973 commit e28fa1c

3 files changed

Lines changed: 30 additions & 3 deletions

File tree

‎docs/releases/v1.2.1.md‎

Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,17 @@
1+
## 中文
2+
3+
- 支持插件增量更新。支持该功能的 Lithe 桌面端在保留了匹配的旧安装包时,可以下载较小的补丁来更新 Python Support。首次安装、旧包缺失或补丁校验失败时,仍可使用完整安装包。
4+
5+
### 升级与兼容性
6+
7+
系统与插件协议要求与 Python Support 1.2.0 一致。调试仍需要 Python 3.10 或更新版本。
8+
9+
---
10+
11+
## English
12+
13+
- Python Support now provides delta updates. Lithe desktop versions that support this feature can download a smaller patch when the matching previous archive is available. The full archive is available for first-time installs, when the previous archive is missing, and when patch verification fails.
14+
15+
### Upgrade and compatibility
16+
17+
System and plugin protocol requirements are the same as in Python Support 1.2.0. Debugging still requires Python 3.10 or later.

‎io.github.lithe-idea.python-support/plugin.json‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
"schemaVersion": 0,
33
"id": "io.github.lithe-idea.python-support",
44
"displayName": "Python Support",
5-
"version": "1.2.0",
5+
"version": "1.2.1",
66
"vendor": {
77
"id": "io.github.lithe-idea",
88
"displayName": "Lithe Community",

‎scripts/ci/release/publish.test.mjs‎

Lines changed: 12 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
import assert from "node:assert/strict";
22
import { execFileSync, spawnSync } from "node:child_process";
3-
import { existsSync, mkdirSync, mkdtempSync, readFileSync, rmSync, writeFileSync } from "node:fs";
3+
import { copyFileSync, existsSync, mkdirSync, mkdtempSync, readFileSync, rmSync, writeFileSync } from "node:fs";
44
import { tmpdir } from "node:os";
55
import { join } from "node:path";
66
import test from "node:test";
@@ -10,6 +10,10 @@ const publishStep = workflow.match(/^ {6}- name: Publish GitHub Release\n(?: {8}
1010
assert.ok(publishStep, "Could not find the release workflow's publish step");
1111
const publishScript = publishStep[1].replace(/^ {10}/gm, "");
1212
const recordReleaseArgs = 'gh() { printf "%s\\n" "$@" > "$RELEASE_ARGS"; }\n';
13+
const serveStoreIndex = `curl() {
14+
[[ "\${!#}" == https://raw.githubusercontent.com/Lithe-IDEA/Lithe-store/HEAD/lithe-plugin-index.json ]] || return 1
15+
printf '{"plugins":[]}\\n' > "\${@: -2:1}"
16+
}\n`;
1317

1418
const gitEnv = {
1519
PATH: process.env.PATH,
@@ -44,6 +48,11 @@ function releaseFixture(t, tag = "v1.0.0", tagOptions = []) {
4448

4549
mkdirSync(join(checkout, "docs", "releases"), { recursive: true });
4650
mkdirSync(join(checkout, "dist"));
51+
mkdirSync(join(checkout, "scripts", "package"), { recursive: true });
52+
copyFileSync(
53+
new URL("../../package/release-deltas.sh", import.meta.url),
54+
join(checkout, "scripts", "package", "release-deltas.sh"),
55+
);
4756
writeFileSync(join(checkout, "docs", "releases", `${tag}.md`), "Release notes\n");
4857
writeFileSync(join(checkout, "dist", "python-support.zip"), "Test archive contents\n");
4958

@@ -58,7 +67,7 @@ function releaseFixture(t, tag = "v1.0.0", tagOptions = []) {
5867
git(checkout, "push", "-q", "origin", `:${ref}`);
5968
},
6069
publish() {
61-
const result = spawnSync("bash", ["--noprofile", "--norc", "-e", "-c", recordReleaseArgs + publishScript], {
70+
const result = spawnSync("bash", ["--noprofile", "--norc", "-e", "-c", recordReleaseArgs + serveStoreIndex + publishScript], {
6271
cwd: checkout,
6372
encoding: "utf8",
6473
timeout: 5000,
@@ -81,6 +90,7 @@ test("publish uses the unchanged lightweight release tag", (t) => {
8190
const fixture = releaseFixture(t);
8291
const result = fixture.publish();
8392
assert.equal(result.status, 0, result.stdout + result.stderr);
93+
assert.match(result.stdout, /Checked for optional plugin deltas/);
8494
const args = readFileSync(fixture.cliLog, "utf8").trimEnd().split("\n");
8595
assert.deepEqual(args.slice(0, 3), ["release", "create", "v1.0.0"]);
8696
assert.ok(args.includes("--verify-tag"));

0 commit comments

Comments
 (0)