File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff 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/"
You can’t perform that action at this time.
0 commit comments