Compare commits
2
Commits
34e5dfb24c
...
f784b554b9
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
f784b554b9 | ||
|
|
b829f13437 |
No files matched your search
@@ -24,8 +24,9 @@ pre-commit check. Tests run only when the code under test changed.
|
||||
|
||||
## Releases (user pushes tags, CI does the rest)
|
||||
|
||||
Release flow: release commit bumps `apps/desktop/pubspec.yaml` →
|
||||
`git tag vX.Y.Z` → push tag → `.gitea/workflows/release.yml`
|
||||
Release flow: `tool/release.sh [patch|minor|major]` derives the
|
||||
version (no typing), bumps all pubspecs, commits, tags → review →
|
||||
`git push --follow-tags` → `.gitea/workflows/release.yml`
|
||||
builds, publishes the Forgejo release, commits
|
||||
`updates/manifest.json` back. `tool/release_publish.sh` is the same
|
||||
flow by hand. Workflows live in `.gitea/workflows` (this forge reads
|
||||
|
||||
@@ -6,6 +6,7 @@ import 'package:sync_relay_core/core.dart';
|
||||
|
||||
import '../session/health.dart';
|
||||
import '../state/session_state.dart';
|
||||
import '../update/updater.dart';
|
||||
import '../widgets/dialogs.dart';
|
||||
import '../widgets/member_avatar.dart';
|
||||
import '../widgets/window_buttons.dart';
|
||||
@@ -681,6 +682,10 @@ class _SheetPanel extends StatelessWidget {
|
||||
onPressed: onLeave,
|
||||
),
|
||||
),
|
||||
const SizedBox(height: 8),
|
||||
const Center(
|
||||
child: Text('v$appVersion', style: TextStyle(fontSize: 11, color: Colors.grey)),
|
||||
),
|
||||
],
|
||||
);
|
||||
},
|
||||
|
||||
@@ -1,6 +1,7 @@
|
||||
import 'package:flutter/material.dart';
|
||||
|
||||
import '../state/session_state.dart';
|
||||
import '../update/updater.dart';
|
||||
import '../widgets/window_chrome_bar.dart';
|
||||
|
||||
class WelcomeScreen extends StatelessWidget {
|
||||
@@ -32,6 +33,7 @@ class _WelcomeBody extends StatelessWidget {
|
||||
mainAxisSize: MainAxisSize.min,
|
||||
children: [
|
||||
const Text('Watch Together', style: TextStyle(fontSize: 24)),
|
||||
Text('v$appVersion', style: const TextStyle(fontSize: 12, color: Colors.grey)),
|
||||
const SizedBox(height: 8),
|
||||
const Text(
|
||||
'Set your name + avatar on the next screen.',
|
||||
|
||||
+5
-4
@@ -24,10 +24,11 @@ desktop 17 + 7 updater.
|
||||
|
||||
## Backlog (priority order, each one sitting-sized)
|
||||
|
||||
1. First real release: release commit bumps desktop pubspec, tag
|
||||
`v0.2.0`, CI (`release.yml`) builds the tarball, publishes the
|
||||
Forgejo release, and commits the manifest back. Verifies the
|
||||
whole `--upgrade` chain end to end. Manual fallback is
|
||||
1. First real release: `tool/release.sh` (derives the version,
|
||||
no typing) → review → `git push --follow-tags` → CI
|
||||
(`release.yml`) builds the tarball, publishes the Forgejo
|
||||
release, and commits the manifest back. Verifies the whole
|
||||
`--upgrade` chain end to end. Manual fallback is
|
||||
`tool/package_linux.sh` + `tool/release_publish.sh <tag>`.
|
||||
2. Jumpy seek: live repro with timeline log first, then fix the
|
||||
seek-land retry vs deadband/debounce fight.
|
||||
|
||||
Executable
+56
@@ -0,0 +1,56 @@
|
||||
#!/usr/bin/env bash
|
||||
# Cut a release without typing a version anywhere: derives the next
|
||||
# version (patch by default), bumps all three pubspecs in lockstep,
|
||||
# commits, and tags. Review, then `git push --follow-tags` — CI takes
|
||||
# it from there (build, Forgejo release, manifest commit-back).
|
||||
# Usage: tool/release.sh [patch|minor|major] [--dry-run]
|
||||
set -euo pipefail
|
||||
|
||||
BUMP=patch
|
||||
DRY=0
|
||||
for arg in "$@"; do
|
||||
case "$arg" in
|
||||
patch|minor|major) BUMP="$arg" ;;
|
||||
--dry-run) DRY=1 ;;
|
||||
*) echo "usage: $0 [patch|minor|major] [--dry-run]" >&2; exit 1 ;;
|
||||
esac
|
||||
done
|
||||
|
||||
ROOT="$(cd "$(dirname "${BASH_SOURCE[0]}")/.." && pwd)"
|
||||
PUBSPECS="apps/desktop/pubspec.yaml packages/core/pubspec.yaml packages/server/pubspec.yaml"
|
||||
|
||||
LATEST="$(git -C "$ROOT" describe --tags --abbrev=0 2>/dev/null || true)"
|
||||
if [[ -z "$LATEST" ]]; then
|
||||
VER="$(sed -n 's/^version: \([0-9.]*\).*/\1/p' "$ROOT/apps/desktop/pubspec.yaml")"
|
||||
WHY="no tags yet — first release takes the pubspec version"
|
||||
else
|
||||
BASE="${LATEST#v}"
|
||||
IFS=. read -r MA MI PA <<<"$BASE"
|
||||
case "$BUMP" in
|
||||
major) MA=$((MA + 1)); MI=0; PA=0 ;;
|
||||
minor) MI=$((MI + 1)); PA=0 ;;
|
||||
patch) PA=$((PA + 1)) ;;
|
||||
esac
|
||||
VER="$MA.$MI.$PA"
|
||||
WHY="bump $BUMP from $LATEST"
|
||||
fi
|
||||
if git -C "$ROOT" rev-parse "v$VER" >/dev/null 2>&1; then
|
||||
echo "error: tag v$VER already exists" >&2
|
||||
exit 1
|
||||
fi
|
||||
echo "release will be v$VER ($WHY)"
|
||||
|
||||
if [[ "$DRY" == "1" ]]; then
|
||||
exit 0
|
||||
fi
|
||||
for f in $PUBSPECS; do
|
||||
sed -i -E "s/^version: .*/version: $VER/" "$ROOT/$f"
|
||||
done
|
||||
git -C "$ROOT" add $PUBSPECS
|
||||
if git -C "$ROOT" diff --cached --quiet; then
|
||||
echo "pubspecs already at $VER — tagging only"
|
||||
else
|
||||
git -C "$ROOT" commit -m "Release v$VER" -- $PUBSPECS
|
||||
fi
|
||||
git -C "$ROOT" tag "v$VER"
|
||||
echo "review with: git show v$VER — then: git push --follow-tags"
|
||||
Reference in new issue
Block a user