Skip to content

Commit dfb2155

Browse files
authored
Merge branch 'master' into rc
2 parents e2f3cb2 + 218e8fe commit dfb2155

File tree

4 files changed

+243
-203
lines changed

4 files changed

+243
-203
lines changed

Configs/.config/hyde/config.toml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
11
# Configuration file for HyDE
22
# Environment variables should be on top
33
# Updated config.toml file can be found at $HOME/.local/share/hyde/config.toml
4+
"$schema" = "https://raw.githubusercontent.com/HyDE-Project/HyDE/refs/heads/master/Configs/.local/share/hyde/schema/config.toml.json"

Scripts/install.sh

Lines changed: 29 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -73,7 +73,7 @@ Usage: $0 [options]
7373
m : no the[m]e reinstallations
7474
t : [t]est run without executing (-irst to dry run all)
7575
76-
NOTE:
76+
NOTE:
7777
running without args is equivalent to -irs
7878
to ignore nvidia, run -irsn
7979
@@ -279,6 +279,34 @@ EOF
279279
"${scrDir}/install_pst.sh"
280280
fi
281281

282+
283+
#---------------------------#
284+
# run migrations #
285+
#---------------------------#
286+
if [ ${flg_Restore} -eq 1 ]; then
287+
288+
# migrationDir="$(realpath "$(dirname "$(realpath "$0")")/../migrations")"
289+
migrationDir="${scrDir}/migrations"
290+
291+
if [ ! -d "${migrationDir}" ]; then
292+
print_log -warn "Migrations" "Directory not found: ${migrationDir}"
293+
fi
294+
295+
echo "Running migrations from: ${migrationDir}"
296+
297+
if [ -d "${migrationDir}" ] && find "${migrationDir}" -type f | grep -q .; then
298+
migrationFile=$(find "${migrationDir}" -maxdepth 1 -type f -printf '%f\n' | sort -r | head -n 1)
299+
300+
if [[ -n "${migrationFile}" && -f "${migrationDir}/${migrationFile}" ]]; then
301+
echo "Found migration file: ${migrationFile}"
302+
sh "${migrationDir}/${migrationFile}"
303+
else
304+
echo "No migration file found in ${migrationDir}. Skipping migrations."
305+
fi
306+
fi
307+
308+
fi
309+
282310
#------------------------#
283311
# enable system services #
284312
#------------------------#

Scripts/migrations/v25.8.2.sh

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
#!/usr/bin/env bash
2+
3+
if command -v hyde-shell >/dev/null 2>&1; then
4+
echo "Reloading Hyde shell shaders..."
5+
hyde-shell shaders --reload
6+
fi

0 commit comments

Comments
 (0)