fluxa-desktop/scripts/bump-version.sh
KhooLy 18db03bb1f Delegate similarTitles/search-merge/fetch-policy/link-classification to fluxa-core
fluxa-desktop is meant to be a thin shell over fluxa-core, but several
pieces of business logic had crept into TypeScript: Trakt/Simkl similar-
titles response mapping, search/discover source merging, addon fetch
retry/timeout/concurrency/race policy, AnimeSkip episode matching,
continue-watching week partitioning, library merge diffing, and
cast/director link classification (duplicated across three components).
All of it now calls the corresponding new fluxa-core methods and just
executes/renders the result.
2026-07-13 04:29:58 +03:00

17 lines
595 B
Bash
Executable file

#!/usr/bin/env bash
set -euo pipefail
if [ $# -ne 1 ]; then
echo "usage: scripts/bump-version.sh <new-version>" >&2
exit 1
fi
new_version="$1"
root_dir="$(cd "$(dirname "${BASH_SOURCE[0]}")/.." && pwd)"
sed -i "s/^ \"version\": \".*\"/ \"version\": \"$new_version\"/" "$root_dir/package.json"
sed -i "s/^version = \".*\"/version = \"$new_version\"/" "$root_dir/src-tauri/Cargo.toml"
echo "Bumped to $new_version. Review the diff, then:"
echo " git add -A && git commit -m \"chore: bump version to $new_version\""
echo " git tag v$new_version && git push origin master v$new_version"