mirror of
https://github.com/block/buzz.git
synced 2026-08-18 06:50:31 +02:00
feat(release): all-OS desktop builds + universal auto-update manifest (#1011)
Signed-off-by: Will Pfleger <wpfleger@block.xyz> Signed-off-by: Will Pfleger <pfleger.will@gmail.com> Co-authored-by: npub1mn7jgtj4w2pd0g0zeuhxsa6jy6p0rewxz4kujt98my82ahfmp72sxjexk7 <dcfd242e557282d7a1e2cf2e6877522682f1e5c6156dc92ca7d90eaedd3b0f95@sprout-oss.stage.blox.sqprod.co>
This commit is contained in:
co-authored by
npub1mn7jgtj4w2pd0g0zeuhxsa6jy6p0rewxz4kujt98my82ahfmp72sxjexk7
parent
8c9211ffc6
commit
de641fce52
@@ -14,9 +14,16 @@ else
|
||||
SRC_DIR="target/${TARGET}/release"
|
||||
fi
|
||||
|
||||
# MSVC emits <name>.exe; Tauri's externalBin then expects binaries/<name>-<triple>.exe.
|
||||
if [[ "$TARGET" == *windows* ]]; then
|
||||
EXE=".exe"
|
||||
else
|
||||
EXE=""
|
||||
fi
|
||||
|
||||
missing=()
|
||||
for bin in "${SIDECARS[@]}"; do
|
||||
[[ -f "$SRC_DIR/$bin" ]] || missing+=("$bin")
|
||||
[[ -f "$SRC_DIR/${bin}${EXE}" ]] || missing+=("${bin}${EXE}")
|
||||
done
|
||||
if [[ ${#missing[@]} -gt 0 ]]; then
|
||||
echo "Error: missing release binaries in $SRC_DIR: ${missing[*]}" >&2
|
||||
@@ -26,6 +33,6 @@ fi
|
||||
|
||||
mkdir -p "$BINARIES_DIR"
|
||||
for bin in "${SIDECARS[@]}"; do
|
||||
cp "$SRC_DIR/$bin" "$BINARIES_DIR/${bin}-${TARGET}"
|
||||
cp "$SRC_DIR/${bin}${EXE}" "$BINARIES_DIR/${bin}-${TARGET}${EXE}"
|
||||
done
|
||||
echo "Sidecars bundled for $TARGET"
|
||||
|
||||
Reference in New Issue
Block a user