scripts: Removed sphaira tracking

This commit is contained in:
niklascfw 2026-05-16 11:08:37 +02:00
parent 9a77b411ce
commit 3078422e74
No known key found for this signature in database
3 changed files with 15 additions and 23 deletions

View file

@ -78,17 +78,13 @@ function Update-ManifestVersion {
[Parameter(Mandatory)]
[string] $VariantFolderName
)
$base = Join-Path $BuildDir $VariantFolderName
$manifestPath = Join-Path $base 'config\omninx\manifest.ini'
$themePath = Join-Path $base 'config\sphaira\themes\omninx.ini'
foreach ($path in @($manifestPath, $themePath)) {
if (Test-Path -LiteralPath $path) {
$lines = Get-Content -LiteralPath $path -Encoding UTF8
$manifestPath = Join-Path (Join-Path $BuildDir $VariantFolderName) 'config\omninx\manifest.ini'
if (Test-Path -LiteralPath $manifestPath) {
$lines = Get-Content -LiteralPath $manifestPath -Encoding UTF8
$lines = $lines | ForEach-Object {
if ($_ -match '^version=') { "version=$Version" } else { $_ }
}
$lines | Set-Content -LiteralPath $path -Encoding UTF8
}
$lines | Set-Content -LiteralPath $manifestPath -Encoding UTF8
}
}

View file

@ -17,22 +17,18 @@ clear_output_directory() {
echo "Output-Verzeichnis geloescht."
}
# Update manifest.ini and Sphaira theme version in build directory
# Update manifest.ini version in build directory
update_manifest_version() {
local build_dir="$1"
local variant_dir="$2"
local base="$build_dir/$variant_dir"
local manifest_path="$base/config/omninx/manifest.ini"
local theme_path="$base/config/sphaira/themes/omninx.ini"
for path in "$manifest_path" "$theme_path"; do
if [[ -f "$path" ]]; then
local manifest_path="$build_dir/$variant_dir/config/omninx/manifest.ini"
if [[ -f "$manifest_path" ]]; then
if [[ "$(uname)" == "Darwin" ]]; then
sed -i '' "s/^version=.*/version=$VERSION/" "$path"
sed -i '' "s/^version=.*/version=$VERSION/" "$manifest_path"
else
sed -i "s/^version=.*/version=$VERSION/" "$path"
sed -i "s/^version=.*/version=$VERSION/" "$manifest_path"
fi
fi
done
}
# Light: Staging (Root) + Ordner "OmniNX Light" = variants/light

View file

@ -1,7 +1,7 @@
[meta]
name=OmniNX
author=NiklasCFW
version={{VERSION}}
version=1.0.0
preview=romfs:/theme/preview.jpg
[theme]