Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
17 changes: 17 additions & 0 deletions docs/releases/v1.2.1.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
## 中文

- 支持插件增量更新。支持该功能的 Lithe 桌面端在保留了匹配的旧安装包时,可以下载较小的补丁来更新 Python Support。首次安装、旧包缺失或补丁校验失败时,仍可使用完整安装包。

### 升级与兼容性

系统与插件协议要求与 Python Support 1.2.0 一致。调试仍需要 Python 3.10 或更新版本。

---

## English

- 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.

### Upgrade and compatibility

System and plugin protocol requirements are the same as in Python Support 1.2.0. Debugging still requires Python 3.10 or later.
2 changes: 1 addition & 1 deletion io.github.lithe-idea.python-support/plugin.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
"schemaVersion": 0,
"id": "io.github.lithe-idea.python-support",
"displayName": "Python Support",
"version": "1.2.0",
"version": "1.2.1",
"vendor": {
"id": "io.github.lithe-idea",
"displayName": "Lithe Community",
Expand Down
14 changes: 12 additions & 2 deletions scripts/ci/release/publish.test.mjs
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import assert from "node:assert/strict";
import { execFileSync, spawnSync } from "node:child_process";
import { existsSync, mkdirSync, mkdtempSync, readFileSync, rmSync, writeFileSync } from "node:fs";
import { copyFileSync, existsSync, mkdirSync, mkdtempSync, readFileSync, rmSync, writeFileSync } from "node:fs";
import { tmpdir } from "node:os";
import { join } from "node:path";
import test from "node:test";
Expand All @@ -10,6 +10,10 @@ const publishStep = workflow.match(/^ {6}- name: Publish GitHub Release\n(?: {8}
assert.ok(publishStep, "Could not find the release workflow's publish step");
const publishScript = publishStep[1].replace(/^ {10}/gm, "");
const recordReleaseArgs = 'gh() { printf "%s\\n" "$@" > "$RELEASE_ARGS"; }\n';
const serveStoreIndex = `curl() {
[[ "\${!#}" == https://raw.githubusercontent.com/Lithe-IDEA/Lithe-store/HEAD/lithe-plugin-index.json ]] || return 1
printf '{"plugins":[]}\\n' > "\${@: -2:1}"
}\n`;

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

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

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