#!/usr/bin/env sh # # The release tag that holds a channel's builds. # # channel-tag.sh # # A channel and its release tag are two different names, and for `dev` they differ. # The channel is what a person picks and sees (`install.sh --channel dev`, the app's # settings); the tag is where CI publishes and where every reader fetches from. # # `dev` used to be both. A tag named `dev` shadowed the branch named `dev`, so once # a clone had fetched tags, `git push origin dev` failed with "src refspec dev # matches more than one" (Scribe #2184). The tag is `dev-rolling` now, matching # roundtable-android. Never spell a channel tag like a branch — tests/test_channel_tag.py # fails if one is. # # The ONE mapping CI reads. Two copies exist because their readers cannot run this: # `desktop/src-tauri/src/update.rs` (compiled into the app) and # `desktop/packaging/install.sh` (fetched alone through a pipe). Change all three. set -eu case "${1:-}" in dev) echo dev-rolling ;; stable) echo stable ;; *) echo "channel-tag.sh: unknown channel '${1:-}' (expected dev or stable)" >&2 exit 2 ;; esac