mirror of
https://github.com/danbulant/dribbblish-dynamic-theme
synced 2026-07-10 13:41:38 +00:00
call spicetify apply after patching in install scripts
This commit is contained in:
parent
2a861c9e7c
commit
e948f8d120
2 changed files with 23 additions and 13 deletions
10
install.ps1
10
install.ps1
|
|
@ -95,7 +95,6 @@ if ($PSVersionTable.PSVersion.Major -gt $PSMinVersion) {
|
|||
spicetify config current_theme DribbblishDynamic
|
||||
spicetify config color_scheme base
|
||||
spicetify config inject_css 1 replace_colors 1 overwrite_assets 1
|
||||
spicetify apply
|
||||
Write-Done
|
||||
|
||||
# Add patch
|
||||
|
|
@ -115,6 +114,15 @@ xpui.js_repl_8008=,`${1}58,
|
|||
Set-Content "$spicePath\config-xpui.ini" $configFile
|
||||
}
|
||||
Write-Done
|
||||
|
||||
Write-Part "APPLYING";
|
||||
$backupVer = $configFile -match "^version"
|
||||
$version = ConvertFrom-StringData $backupVer[0]
|
||||
if ($version.version.Length -gt 0) {
|
||||
spicetify apply
|
||||
} else {
|
||||
spicetify backup apply
|
||||
}
|
||||
}
|
||||
else {
|
||||
Write-Part "`nYour Powershell version is less than "; Write-Emphasized "$PSMinVersion";
|
||||
|
|
|
|||
|
|
@ -55,7 +55,6 @@ spicetify config extensions default-dynamic.js- extensions dribbblish.js- extens
|
|||
spicetify config current_theme DribbblishDynamic
|
||||
spicetify config color_scheme base
|
||||
spicetify config inject_css 1 replace_colors 1 overwrite_assets 1
|
||||
spicetify apply
|
||||
|
||||
echo "PATCHING"
|
||||
PATCH='[Patch]
|
||||
|
|
@ -66,3 +65,6 @@ if cat config-xpui.ini | grep -o '\[Patch\]'; then
|
|||
else
|
||||
echo -e "\n$PATCH" >> config-xpui.ini
|
||||
fi
|
||||
|
||||
echo "APPLYING"
|
||||
spicetify apply
|
||||
Loading…
Reference in a new issue