Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 3 additions & 0 deletions .github/workflows/desktop-package.yml
Original file line number Diff line number Diff line change
Expand Up @@ -324,6 +324,9 @@ jobs:
--repo "GCWing/BitFun" \
--out linux-release-assets/linux-binaries.json

- name: Setup Rust toolchain (minisign fallback)
uses: dtolnay/rust-toolchain@stable

# The Tauri bundler signs the five updater artifacts during `tauri build`,
# but the installers people download by hand from the release page — dmg,
# deb, rpm, the Windows installer and the direct AppImages — shipped with
Expand Down
3 changes: 3 additions & 0 deletions .github/workflows/nightly.yml
Original file line number Diff line number Diff line change
Expand Up @@ -279,6 +279,9 @@ jobs:
--repo "GCWing/BitFun" \
--out linux-release-assets/linux-binaries.json

- name: Setup Rust toolchain (minisign fallback)
uses: dtolnay/rust-toolchain@stable

# The Tauri bundler signs the five updater artifacts during `tauri build`,
# but the installers people download by hand from the release page — dmg,
# deb, rpm, the Windows installer and the direct AppImages — shipped with
Expand Down
13 changes: 12 additions & 1 deletion scripts/sign-release-assets.sh
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,18 @@ fi

if ! command -v minisign >/dev/null 2>&1; then
echo "[sign] Installing minisign..."
sudo apt-get install -y --no-install-recommends minisign >/dev/null
# Ubuntu's package is not available in the default repositories on every
# runner image (notably ubuntu-24.04-arm). Prefer it when present, then use
# the portable Rust distribution as a fallback.
if ! sudo apt-get install -y --no-install-recommends minisign >/dev/null 2>&1; then
if ! command -v cargo >/dev/null 2>&1; then
echo "[sign] ERROR: minisign is unavailable and cargo is not installed." >&2
exit 1
fi
MINISIGN_ROOT="${RUNNER_TEMP:-${TMPDIR:-/tmp}}/bitfun-minisign"
cargo install --registry crates-io --locked --root "$MINISIGN_ROOT" minisign >/dev/null
export PATH="$MINISIGN_ROOT/bin:$PATH"
fi
fi

WORK="$(mktemp -d)"
Expand Down