add more scripts to automatically update:

- last updated elx file
- all elx files
This commit is contained in:
2026-05-26 13:36:48 +02:00
parent 60fc9e8d07
commit 0fe463338a
6 changed files with 97 additions and 64 deletions
@@ -0,0 +1,16 @@
Write-Host "Getting last updated module file..."
$modulesSrcPath = Join-Path $PSScriptRoot "../src/"
$moduleFile = Get-ChildItem -Path $modulesSrcPath -Recurse -Filter "*.elx" -ErrorAction Stop | Sort-Object LastWriteTime -Descending | Select-Object -First 1
if (-not $moduleFile) {
Write-Error "No .elx file found in '$modulesSrcPath'."
exit 1
}
Write-Host "Latest updated module file found: '$($moduleFile.FullName)'" -ForegroundColor Cyan
Write-Host "Extracting ELX internals for module tag '$($moduleFile.FullName)'..."
Import-Module $(Join-Path (Split-Path -Parent $MyInvocation.MyCommand.Definition) "extract-elx-module.psm1") -Force
Save-ElxInternals -ModulePath $moduleFile.FullName
Write-Host "ELX internals extracted successfully!" -ForegroundColor Green