Add Windows exe icon, clean release filenames, fix Linux build

- Embed microphone icon in Windows exe via winresource
- Rename release artifacts to friendly names (linux-x86_64, windows-x86_64)
- Fix warn macro import for Linux build
- Add cargo PATH to release script
- Fix tea CLI asset upload syntax

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
This commit is contained in:
2026-04-10 22:14:07 +01:00
parent 3865183a3f
commit 9522841346
7 changed files with 69 additions and 8 deletions
+5 -4
View File
@@ -55,14 +55,15 @@ FAILED=()
build_target() {
local target="$1"
local label="$2"
local ext="${3:-}"
local friendly_name="$3"
local ext="${4:-}"
echo "--- Building ${label} (${target}) ---"
if cargo build --release --target "${target}" 2>&1; then
local binary="target/${target}/release/${BINARY_NAME}${ext}"
if [ -f "${binary}" ]; then
local archive="${RELEASE_DIR}/${BINARY_NAME}-${TAG}-${target}"
local archive="${RELEASE_DIR}/${BINARY_NAME}-${TAG}-${friendly_name}"
if [ -n "${ext}" ]; then
# Windows: ship the exe directly
cp "${binary}" "${archive}${ext}"
@@ -91,7 +92,7 @@ build_target() {
# ============================================================
# Linux x86_64 (native — always available)
build_target "x86_64-unknown-linux-gnu" "Linux x86_64"
build_target "x86_64-unknown-linux-gnu" "Linux x86_64" "linux-x86_64"
# Windows x86_64 (MSVC target via cargo-xwin)
if command -v cargo-xwin &>/dev/null && rustup target list --installed | grep -q x86_64-pc-windows-msvc; then
@@ -99,7 +100,7 @@ if command -v cargo-xwin &>/dev/null && rustup target list --installed | grep -q
if cargo xwin build --release --target x86_64-pc-windows-msvc 2>&1; then
local_binary="target/x86_64-pc-windows-msvc/release/${BINARY_NAME}.exe"
if [ -f "${local_binary}" ]; then
archive="${RELEASE_DIR}/${BINARY_NAME}-${TAG}-x86_64-pc-windows-msvc.exe"
archive="${RELEASE_DIR}/${BINARY_NAME}-${TAG}-windows-x86_64.exe"
cp "${local_binary}" "${archive}"
echo " -> ${archive}"
BUILT+=("${archive}")