Skip to content

Commit 28fd9fb

Browse files
RoyLinRoyLin
authored andcommitted
chore(box): bump version to v2.0.2
1 parent dda4f84 commit 28fd9fb

5 files changed

Lines changed: 19 additions & 17 deletions

File tree

‎.github/workflows/publish-winget.yml‎

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,7 @@ jobs:
3838
$VERSION = "${{ steps.version.outputs.version }}"
3939
$TAG = "${{ steps.version.outputs.tag }}"
4040
$ASSET = "a3s-box-$TAG-windows-x86_64.zip"
41-
$URL = "https://github.com/A3S-Lab/Box/releases/download/$TAG/$ASSET"
41+
$URL = "https://github.com/$env:GITHUB_REPOSITORY/releases/download/$TAG/$ASSET"
4242
4343
Write-Host "Downloading: $URL"
4444
Invoke-WebRequest -Uri $URL -OutFile $ASSET
@@ -55,14 +55,15 @@ jobs:
5555
VERSION="${{ steps.version.outputs.version }}"
5656
TAG="${{ steps.version.outputs.tag }}"
5757
SHA256="${{ steps.download.outputs.sha256 }}"
58+
REPO="${GITHUB_REPOSITORY}"
5859
5960
# Update version in all manifest files
6061
sed -i "s/PackageVersion: .*/PackageVersion: $VERSION/" .winget/A3SLab.Box.yaml
6162
sed -i "s/PackageVersion: .*/PackageVersion: $VERSION/" .winget/A3SLab.Box.installer.yaml
6263
sed -i "s/PackageVersion: .*/PackageVersion: $VERSION/" .winget/A3SLab.Box.locale.en-US.yaml
6364
6465
# Update installer URL and SHA256
65-
sed -i "s|InstallerUrl: .*|InstallerUrl: https://github.com/A3S-Lab/Box/releases/download/${TAG}/a3s-box-${TAG}-windows-x86_64.zip|" .winget/A3SLab.Box.installer.yaml
66+
sed -i "s|InstallerUrl: .*|InstallerUrl: https://github.com/${REPO}/releases/download/${TAG}/a3s-box-${TAG}-windows-x86_64.zip|" .winget/A3SLab.Box.installer.yaml
6667
sed -i "s/InstallerSha256: .*/InstallerSha256: $SHA256/" .winget/A3SLab.Box.installer.yaml
6768
6869
# Update nested installer path
@@ -101,4 +102,4 @@ jobs:
101102
echo "4. Create PR to microsoft/winget-pkgs"
102103
echo ""
103104
echo "Or use wingetcreate:"
104-
echo "wingetcreate update A3SLab.Box -v $VERSION -u https://github.com/A3S-Lab/Box/releases/download/v$VERSION/a3s-box-v$VERSION-windows-x86_64.zip -t ${{ secrets.GITHUB_TOKEN }}"
105+
echo "wingetcreate update A3SLab.Box -v $VERSION -u https://github.com/${GITHUB_REPOSITORY}/releases/download/v$VERSION/a3s-box-v$VERSION-windows-x86_64.zip -t ${{ secrets.GITHUB_TOKEN }}"

‎.github/workflows/release.yml‎

Lines changed: 6 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -303,7 +303,7 @@ jobs:
303303
- name: Download release tarballs and compute SHA256
304304
run: |
305305
TAG="${{ steps.version.outputs.tag }}"
306-
BASE="https://github.com/A3S-Lab/Box/releases/download/${TAG}"
306+
BASE="https://github.com/${GITHUB_REPOSITORY}/releases/download/${TAG}"
307307
308308
for target in linux-x86_64 linux-arm64 macos-arm64; do
309309
FILE="a3s-box-${TAG}-${target}.tar.gz"
@@ -324,27 +324,28 @@ jobs:
324324
run: |
325325
TAG="${{ steps.version.outputs.tag }}"
326326
VERSION="${{ steps.version.outputs.version }}"
327+
REPO="${GITHUB_REPOSITORY}"
327328
cat > homebrew-tap/Formula/a3s-box.rb <<FORMULA
328329
class A3sBox < Formula
329330
desc "MicroVM sandbox runtime with TEE support"
330-
homepage "https://github.com/A3S-Lab/Box"
331+
homepage "https://github.com/${REPO}"
331332
version "${VERSION}"
332333
license "MIT"
333334
334335
on_macos do
335336
on_arm do
336-
url "https://github.com/A3S-Lab/Box/releases/download/${TAG}/a3s-box-${TAG}-macos-arm64.tar.gz"
337+
url "https://github.com/${REPO}/releases/download/${TAG}/a3s-box-${TAG}-macos-arm64.tar.gz"
337338
sha256 "${SHA_macos_arm64}"
338339
end
339340
end
340341
341342
on_linux do
342343
on_arm do
343-
url "https://github.com/A3S-Lab/Box/releases/download/${TAG}/a3s-box-${TAG}-linux-arm64.tar.gz"
344+
url "https://github.com/${REPO}/releases/download/${TAG}/a3s-box-${TAG}-linux-arm64.tar.gz"
344345
sha256 "${SHA_linux_arm64}"
345346
end
346347
on_intel do
347-
url "https://github.com/A3S-Lab/Box/releases/download/${TAG}/a3s-box-${TAG}-linux-x86_64.tar.gz"
348+
url "https://github.com/${REPO}/releases/download/${TAG}/a3s-box-${TAG}-linux-x86_64.tar.gz"
348349
sha256 "${SHA_linux_x86_64}"
349350
end
350351
end

‎src/Cargo.lock‎

Lines changed: 7 additions & 7 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

‎src/Cargo.toml‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ members = [
1414
resolver = "2"
1515

1616
[workspace.package]
17-
version = "2.0.1"
17+
version = "2.0.2"
1818
edition = "2021"
1919
authors = ["A3S Lab Team"]
2020
license = "MIT"

‎src/runtime/Cargo.toml‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ operator = []
2121
build = []
2222

2323
[dependencies]
24-
a3s-box-core = { version = "2.0.0", path = "../core" }
24+
a3s-box-core = { version = "2.0.2", path = "../core" }
2525
a3s-transport = { workspace = true }
2626

2727
# Async runtime

0 commit comments

Comments
 (0)