From 68710a22523f3847ce81b03b98cef97aebb51bd0 Mon Sep 17 00:00:00 2001 From: freelw <“freelw81@qq.com“> Date: Thu, 13 Aug 2026 11:35:26 +0800 Subject: [PATCH 1/2] release: prepare v0.1.2 --- Cargo.lock | 2 +- Cargo.toml | 2 +- skills/lexmount-webfetch/scripts/bootstrap.ps1 | 2 +- skills/lexmount-webfetch/scripts/bootstrap.sh | 2 +- 4 files changed, 4 insertions(+), 4 deletions(-) diff --git a/Cargo.lock b/Cargo.lock index 970aa90..b429ea7 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -1202,7 +1202,7 @@ checksum = "db13adb97ab515a3691f56e4dbab09283d0b86cb45abd991d8634a9d6f501760" [[package]] name = "lexmount-webfetch" -version = "0.1.1" +version = "0.1.2" dependencies = [ "base64 0.22.1", "clap", diff --git a/Cargo.toml b/Cargo.toml index b2ac83c..6a09ab7 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -1,6 +1,6 @@ [package] name = "lexmount-webfetch" -version = "0.1.1" +version = "0.1.2" edition = "2024" license = "MIT" description = "Native Rust SDK and CLI for Lexmount WebFetch" diff --git a/skills/lexmount-webfetch/scripts/bootstrap.ps1 b/skills/lexmount-webfetch/scripts/bootstrap.ps1 index 7aa75dc..329f4ee 100644 --- a/skills/lexmount-webfetch/scripts/bootstrap.ps1 +++ b/skills/lexmount-webfetch/scripts/bootstrap.ps1 @@ -12,7 +12,7 @@ function Invoke-Tls12Download { } } -$version = if ($env:LEXMOUNT_WEBFETCH_CLI_VERSION) { $env:LEXMOUNT_WEBFETCH_CLI_VERSION } else { "0.1.1" } +$version = if ($env:LEXMOUNT_WEBFETCH_CLI_VERSION) { $env:LEXMOUNT_WEBFETCH_CLI_VERSION } else { "0.1.2" } $downloadBaseUrl = if ($env:LEXMOUNT_WEBFETCH_CLI_DOWNLOAD_BASE_URL) { $env:LEXMOUNT_WEBFETCH_CLI_DOWNLOAD_BASE_URL.TrimEnd('/') } else { "https://cli-bin-1377899528.cos.ap-nanjing.myqcloud.com/releases/webfetch-cli" } $architecture = if ($env:PROCESSOR_ARCHITEW6432) { $env:PROCESSOR_ARCHITEW6432 } else { $env:PROCESSOR_ARCHITECTURE } if ($architecture -ne "AMD64") { throw "Only Windows x64 is supported" } diff --git a/skills/lexmount-webfetch/scripts/bootstrap.sh b/skills/lexmount-webfetch/scripts/bootstrap.sh index f4873a2..9c9c538 100755 --- a/skills/lexmount-webfetch/scripts/bootstrap.sh +++ b/skills/lexmount-webfetch/scripts/bootstrap.sh @@ -1,7 +1,7 @@ #!/bin/sh set -eu -version="${LEXMOUNT_WEBFETCH_CLI_VERSION:-0.1.1}" +version="${LEXMOUNT_WEBFETCH_CLI_VERSION:-0.1.2}" download_base_url="${LEXMOUNT_WEBFETCH_CLI_DOWNLOAD_BASE_URL:-https://cli-bin-1377899528.cos.ap-nanjing.myqcloud.com/releases/webfetch-cli}" repo="${download_base_url%/}/v${version}" case "$(uname -s)-$(uname -m)" in From 0d0a53346afec7f024088e7aaf11479f712845ac Mon Sep 17 00:00:00 2001 From: freelw <“freelw81@qq.com“> Date: Thu, 13 Aug 2026 11:38:32 +0800 Subject: [PATCH 2/2] ci: test bootstrap against latest release --- .github/workflows/ci.yml | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 4b0b4ce..906dca7 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -30,6 +30,11 @@ jobs: ! grep -q 'skills/lexmount-webfetch/bin/' .github/workflows/release.yml - run: bash -n scripts/sign_and_notarize_macos.sh scripts/upload-release-to-cos.sh - run: sh -n scripts/package-skill.sh skills/lexmount-webfetch/scripts/bootstrap.sh skills/lexmount-webfetch/scripts/doctor.sh + - name: Verify Skill bootstrap version + run: | + package_version="$(sed -n 's/^version = "\([^"]*\)"/\1/p' Cargo.toml | head -n 1)" + grep -Fq "else { \"${package_version}\" }" skills/lexmount-webfetch/scripts/bootstrap.ps1 + grep -Fq "LEXMOUNT_WEBFETCH_CLI_VERSION:-${package_version}" skills/lexmount-webfetch/scripts/bootstrap.sh - name: Verify Skill platform selection and PATH isolation run: | test_dir="$(mktemp -d)" @@ -65,10 +70,15 @@ jobs: runs-on: windows-latest steps: - uses: actions/checkout@v5 + with: + fetch-depth: 0 - name: Bootstrap from COS with Windows PowerShell 5.1 shell: powershell run: | if ($PSVersionTable.PSVersion.Major -ne 5) { throw "Expected Windows PowerShell 5.1" } + $latestTag = git tag --list "v*" --sort=-version:refname | Select-Object -First 1 + if (-not $latestTag) { throw "No published version tag found" } + $env:LEXMOUNT_WEBFETCH_CLI_VERSION = $latestTag.TrimStart('v') $env:LEXMOUNT_WEBFETCH_CLI_INSTALL_DIR = Join-Path $env:RUNNER_TEMP "webfetch-cli-bootstrap" & .\skills\lexmount-webfetch\scripts\bootstrap.ps1 & (Join-Path $env:LEXMOUNT_WEBFETCH_CLI_INSTALL_DIR "webfetch-cli.exe") version