Skip to content

Commit 1c8e949

Browse files
freelwfreelw
andauthored
Release browser-cli v1.1.11 (#20)
* release: prepare v1.1.11 * ci: test bootstrap against latest release --------- Co-authored-by: freelw <“freelw81@qq.com“>
1 parent 587b45a commit 1c8e949

5 files changed

Lines changed: 14 additions & 4 deletions

File tree

.github/workflows/ci.yml

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -30,6 +30,11 @@ jobs:
3030
! grep -q 'skills/lexmount-browser/bin/' .github/workflows/release.yml
3131
- run: bash -n scripts/sign_and_notarize_macos.sh scripts/upload-release-to-cos.sh
3232
- run: sh -n scripts/package-skill.sh skills/lexmount-browser/scripts/bootstrap.sh skills/lexmount-browser/scripts/doctor.sh
33+
- name: Verify Skill bootstrap version
34+
run: |
35+
package_version="$(sed -n 's/^version = "\([^"]*\)"/\1/p' Cargo.toml | head -n 1)"
36+
grep -Fq "else { \"${package_version}\" }" skills/lexmount-browser/scripts/bootstrap.ps1
37+
grep -Fq "LEXMOUNT_BROWSER_CLI_VERSION:-${package_version}" skills/lexmount-browser/scripts/bootstrap.sh
3338
- name: Verify Skill platform selection and PATH isolation
3439
run: |
3540
test_dir="$(mktemp -d)"
@@ -65,10 +70,15 @@ jobs:
6570
runs-on: windows-latest
6671
steps:
6772
- uses: actions/checkout@v5
73+
with:
74+
fetch-depth: 0
6875
- name: Bootstrap from COS with Windows PowerShell 5.1
6976
shell: powershell
7077
run: |
7178
if ($PSVersionTable.PSVersion.Major -ne 5) { throw "Expected Windows PowerShell 5.1" }
79+
$latestTag = git tag --list "v*" --sort=-version:refname | Select-Object -First 1
80+
if (-not $latestTag) { throw "No published version tag found" }
81+
$env:LEXMOUNT_BROWSER_CLI_VERSION = $latestTag.TrimStart('v')
7282
$env:LEXMOUNT_BROWSER_CLI_INSTALL_DIR = Join-Path $env:RUNNER_TEMP "browser-cli-bootstrap"
7383
& .\skills\lexmount-browser\scripts\bootstrap.ps1
7484
& (Join-Path $env:LEXMOUNT_BROWSER_CLI_INSTALL_DIR "browser-cli.exe") version

Cargo.lock

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

Cargo.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
[package]
22
name = "lexmount-browser"
3-
version = "1.1.10"
3+
version = "1.1.11"
44
edition = "2024"
55
license = "MIT"
66
description = "Native Rust SDK and CLI for Lexmount cloud browsers"

skills/lexmount-browser/scripts/bootstrap.ps1

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ function Invoke-Tls12Download {
1212
}
1313
}
1414

15-
$version = if ($env:LEXMOUNT_BROWSER_CLI_VERSION) { $env:LEXMOUNT_BROWSER_CLI_VERSION } else { "1.1.10" }
15+
$version = if ($env:LEXMOUNT_BROWSER_CLI_VERSION) { $env:LEXMOUNT_BROWSER_CLI_VERSION } else { "1.1.11" }
1616
$downloadBaseUrl = if ($env:LEXMOUNT_BROWSER_CLI_DOWNLOAD_BASE_URL) { $env:LEXMOUNT_BROWSER_CLI_DOWNLOAD_BASE_URL.TrimEnd('/') } else { "https://cli-bin-1377899528.cos.ap-nanjing.myqcloud.com/releases/browser-cli" }
1717
$architecture = if ($env:PROCESSOR_ARCHITEW6432) { $env:PROCESSOR_ARCHITEW6432 } else { $env:PROCESSOR_ARCHITECTURE }
1818
if ($architecture -ne "AMD64") { throw "Only Windows x64 is supported" }

skills/lexmount-browser/scripts/bootstrap.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
#!/bin/sh
22
set -eu
33

4-
version="${LEXMOUNT_BROWSER_CLI_VERSION:-1.1.10}"
4+
version="${LEXMOUNT_BROWSER_CLI_VERSION:-1.1.11}"
55
download_base_url="${LEXMOUNT_BROWSER_CLI_DOWNLOAD_BASE_URL:-https://cli-bin-1377899528.cos.ap-nanjing.myqcloud.com/releases/browser-cli}"
66
repo="${download_base_url%/}/v${version}"
77
case "$(uname -s)-$(uname -m)" in

0 commit comments

Comments
 (0)