forked from Mirrors/OmniNX
scripts: Removed sphaira tracking
This commit is contained in:
parent
9a77b411ce
commit
3078422e74
3 changed files with 15 additions and 23 deletions
|
|
@ -78,17 +78,13 @@ function Update-ManifestVersion {
|
||||||
[Parameter(Mandatory)]
|
[Parameter(Mandatory)]
|
||||||
[string] $VariantFolderName
|
[string] $VariantFolderName
|
||||||
)
|
)
|
||||||
$base = Join-Path $BuildDir $VariantFolderName
|
$manifestPath = Join-Path (Join-Path $BuildDir $VariantFolderName) 'config\omninx\manifest.ini'
|
||||||
$manifestPath = Join-Path $base 'config\omninx\manifest.ini'
|
if (Test-Path -LiteralPath $manifestPath) {
|
||||||
$themePath = Join-Path $base 'config\sphaira\themes\omninx.ini'
|
$lines = Get-Content -LiteralPath $manifestPath -Encoding UTF8
|
||||||
foreach ($path in @($manifestPath, $themePath)) {
|
|
||||||
if (Test-Path -LiteralPath $path) {
|
|
||||||
$lines = Get-Content -LiteralPath $path -Encoding UTF8
|
|
||||||
$lines = $lines | ForEach-Object {
|
$lines = $lines | ForEach-Object {
|
||||||
if ($_ -match '^version=') { "version=$Version" } else { $_ }
|
if ($_ -match '^version=') { "version=$Version" } else { $_ }
|
||||||
}
|
}
|
||||||
$lines | Set-Content -LiteralPath $path -Encoding UTF8
|
$lines | Set-Content -LiteralPath $manifestPath -Encoding UTF8
|
||||||
}
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -17,22 +17,18 @@ clear_output_directory() {
|
||||||
echo "Output-Verzeichnis geloescht."
|
echo "Output-Verzeichnis geloescht."
|
||||||
}
|
}
|
||||||
|
|
||||||
# Update manifest.ini and Sphaira theme version in build directory
|
# Update manifest.ini version in build directory
|
||||||
update_manifest_version() {
|
update_manifest_version() {
|
||||||
local build_dir="$1"
|
local build_dir="$1"
|
||||||
local variant_dir="$2"
|
local variant_dir="$2"
|
||||||
local base="$build_dir/$variant_dir"
|
local manifest_path="$build_dir/$variant_dir/config/omninx/manifest.ini"
|
||||||
local manifest_path="$base/config/omninx/manifest.ini"
|
if [[ -f "$manifest_path" ]]; then
|
||||||
local theme_path="$base/config/sphaira/themes/omninx.ini"
|
|
||||||
for path in "$manifest_path" "$theme_path"; do
|
|
||||||
if [[ -f "$path" ]]; then
|
|
||||||
if [[ "$(uname)" == "Darwin" ]]; then
|
if [[ "$(uname)" == "Darwin" ]]; then
|
||||||
sed -i '' "s/^version=.*/version=$VERSION/" "$path"
|
sed -i '' "s/^version=.*/version=$VERSION/" "$manifest_path"
|
||||||
else
|
else
|
||||||
sed -i "s/^version=.*/version=$VERSION/" "$path"
|
sed -i "s/^version=.*/version=$VERSION/" "$manifest_path"
|
||||||
fi
|
fi
|
||||||
fi
|
fi
|
||||||
done
|
|
||||||
}
|
}
|
||||||
|
|
||||||
# Light: Staging (Root) + Ordner "OmniNX Light" = variants/light
|
# Light: Staging (Root) + Ordner "OmniNX Light" = variants/light
|
||||||
|
|
|
||||||
|
|
@ -1,7 +1,7 @@
|
||||||
[meta]
|
[meta]
|
||||||
name=OmniNX
|
name=OmniNX
|
||||||
author=NiklasCFW
|
author=NiklasCFW
|
||||||
version={{VERSION}}
|
version=1.0.0
|
||||||
preview=romfs:/theme/preview.jpg
|
preview=romfs:/theme/preview.jpg
|
||||||
|
|
||||||
[theme]
|
[theme]
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue