Skip to content

Commit 5328dea

Browse files
authored
Merge pull request #155 from A3S-Lab/fix/release-windows-guest-extract-20260723
fix(release): extract only Windows guest payload
2 parents 3bd5c5e + 3dbca78 commit 5328dea

1 file changed

Lines changed: 6 additions & 2 deletions

File tree

.github/workflows/release.yml

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -558,8 +558,12 @@ jobs:
558558
cp src/target/x86_64-pc-windows-msvc/release/a3s-box.exe "$DIR/"
559559
cp src/target/x86_64-pc-windows-msvc/release/a3s-box-shim.exe "$DIR/"
560560
561-
tar -xzf "linux-x86_64/a3s-box-${TAG}-linux-x86_64.tar.gz" -C linux-x86_64
562-
cp "linux-x86_64/a3s-box-${TAG}-linux-x86_64/a3s-box-guest-init" "$DIR/"
561+
LINUX_ARCHIVE="linux-x86_64/a3s-box-${TAG}-linux-x86_64.tar.gz"
562+
GUEST_MEMBER="a3s-box-${TAG}-linux-x86_64/a3s-box-guest-init"
563+
# Windows only needs the guest executable. Extracting the complete
564+
# Linux archive would also ask Windows tar to create Unix symlinks.
565+
tar -xzf "$LINUX_ARCHIVE" -C linux-x86_64 "$GUEST_MEMBER"
566+
cp "linux-x86_64/$GUEST_MEMBER" "$DIR/"
563567
564568
if [ -f "src/target/x86_64-pc-windows-msvc/release/krun.dll" ]; then
565569
cp src/target/x86_64-pc-windows-msvc/release/krun.dll "$DIR/"

0 commit comments

Comments
 (0)