Files
firezone/scripts/build/tauri-upload-linux.sh
Reactor Scram 4fe4001760 chore(rust/gui-client): migrate to Tauri v2 (#6996)
Closes #4883 

Refs #7005 

Adds support for Ubuntu 24.04, drops support for Ubuntu 20.04

Known issues:
- On Ubuntu 22.04, sometimes GNOME shows the wrong tray icon
- On Ubuntu 24.04, the first time you open the tray menu, GNOME takes a
long time to open the menu.

---------

Signed-off-by: Reactor Scram <ReactorScram@users.noreply.github.com>
2024-10-24 16:31:28 +00:00

20 lines
521 B
Bash
Executable File

#!/usr/bin/env bash
set -euox pipefail
# This artifact name is tied to the update checker in `gui-client/src-tauri/src/client/updates.rs`
# Only clobber existing release assets if the release is a draft
is_draft=$(gh release view "$TAG_NAME" --json isDraft --jq '.isDraft' | tr -d '\n')
if [[ "$is_draft" == "true" ]]; then
clobber="--clobber"
else
clobber=""
fi
gh release upload "$TAG_NAME" \
"$BINARY_DEST_PATH".deb \
"$BINARY_DEST_PATH".deb.sha256sum.txt \
$clobber \
--repo "$REPOSITORY"