mirror of
https://github.com/LukeHagar/omarchy.git
synced 2025-12-06 04:20:23 +00:00
Update walker migration to run for everyone
This commit is contained in:
@@ -1,26 +0,0 @@
|
||||
echo "Migrate to Walker 2.0.0"
|
||||
|
||||
# Ensure we kill walker even if there's a restarting service running
|
||||
kill -9 $(pgrep -x walker)
|
||||
|
||||
omarchy-pkg-drop walker-bin walker-bin-debug
|
||||
|
||||
omarchy-pkg-add elephant \
|
||||
elephant-calc \
|
||||
elephant-clipboard \
|
||||
elephant-bluetooth \
|
||||
elephant-desktopapplications \
|
||||
elephant-files \
|
||||
elephant-menus \
|
||||
elephant-providerlist \
|
||||
elephant-runner \
|
||||
elephant-symbols \
|
||||
elephant-unicode \
|
||||
elephant-websearch \
|
||||
elephant-todo \
|
||||
walker
|
||||
|
||||
source $OMARCHY_PATH/install/config/walker-elephant.sh
|
||||
|
||||
rm -rf ~/.config/walker/themes
|
||||
omarchy-refresh-walker
|
||||
45
migrations/1758107879.sh
Normal file
45
migrations/1758107879.sh
Normal file
@@ -0,0 +1,45 @@
|
||||
echo "Migrate to Walker 2.0.0"
|
||||
|
||||
NEEDS_MIGRATION=false
|
||||
|
||||
PACKAGES=(
|
||||
"elephant"
|
||||
"elephant-calc"
|
||||
"elephant-clipboard"
|
||||
"elephant-bluetooth"
|
||||
"elephant-desktopapplications"
|
||||
"elephant-files"
|
||||
"elephant-menus"
|
||||
"elephant-providerlist"
|
||||
"elephant-runner"
|
||||
"elephant-symbols"
|
||||
"elephant-unicode"
|
||||
"elephant-websearch"
|
||||
"elephant-todo"
|
||||
"walker"
|
||||
)
|
||||
|
||||
for pkg in "${PACKAGES[@]}"; do
|
||||
if ! omarchy-pkg-present "$pkg"; then
|
||||
NEEDS_MIGRATION=true
|
||||
break
|
||||
fi
|
||||
done
|
||||
|
||||
WALKER_MAJOR=$(walker -v 2>&1 | grep -oP '^\d+' || echo "0")
|
||||
if [[ "$WALKER_MAJOR" -lt 2 ]]; then
|
||||
NEEDS_MIGRATION=true
|
||||
fi
|
||||
|
||||
if $NEEDS_MIGRATION; then
|
||||
kill -9 $(pgrep -x walker) 2>/dev/null || true
|
||||
|
||||
omarchy-pkg-drop walker-bin walker-bin-debug
|
||||
|
||||
omarchy-pkg-add "${PACKAGES[@]}"
|
||||
|
||||
source $OMARCHY_PATH/install/config/walker-elephant.sh
|
||||
|
||||
rm -rf ~/.config/walker/themes
|
||||
omarchy-refresh-walker
|
||||
fi
|
||||
Reference in New Issue
Block a user