thunderhub/scripts/updateToLatest.sh
Anthony Potdevin d94e7c341c
feat: big cleanup and refactor (#644)
* feat: big cleanup and refactor

* chore: fix config

* chore: security stuff

* chore: dep bumps

* chore: more version bumps

* chore: move to lucide icons

* chore: change slider

* chore: more stuff

* chore: move component to shadcn

* chore: remove numeral

* chore: remove night theme

* chore: move to sse

* chore: cleanup deps

* feat!: remove lnmarkets integration

* feat!: remove rebalancing flow

* chore: move to svg progress bar

* chore: new toast lib

* chore!: remove accounting report tool

* chore: dependency updates

* chore: donate button changes

* chore: cleanup file

* chore: cleanup

* ci: build changes

* fix: routing
2026-02-19 16:16:23 -05:00

33 lines
No EOL
716 B
Bash

#!/bin/sh
# fetch latest master
echo "Checking for changes upstream ..."
git fetch
UPSTREAM=${1:-'@{u}'}
LOCAL=$(git rev-parse @)
REMOTE=$(git rev-parse "$UPSTREAM")
if [ $LOCAL = $REMOTE ]; then
TAG=$(git tag | sort -V | tail -1)
echo "You are up-to-date on version" $TAG
else
echo "Reseting repository..."
git reset --hard
echo "Pulling latest changes..."
git pull -p
# install deps
echo "Installing dependencies..."
npm install --quiet
# build app
echo "Building application..."
npm run build
# remove dev deps
echo "Removing unnecessary modules..."
npm prune --omit=dev
TAG=$(git tag | sort -V | tail -1)
echo "Updated to version" $TAG
fi