@ -25,7 +25,7 @@ jobs:
Write-Verbose -Message "Sophia Script for Windows 10 v$LatestRelease" -Verbose
Write-Verbose -Message "Sophia Script for Windows 10 v$LatestRelease" -Verbose
Write-Verbose -Message "Sophia.Script.for.Windows.10.v$LatestRelease.zip" -Verbose
Write-Verbose -Message "Sophia.Script.for.Windows.10.v$LatestRelease.zip" -Verbose
Get-ChildItem -Path "Sophia Script\Sophia Script for Windows 10" -Recurse - Force | Copy-Item -Destination "Sophia Script for Windows 10 v$LatestRelease" -Recurse -Force
Get-ChildItem -Path "Sophia Script\Sophia Script for Windows 10" -Force | Copy-Item -Destination "Sophia Script for Windows 10 v$LatestRelease" -Recurse -Force
$Parameters = @{
$Parameters = @{
Path = "Sophia Script for Windows 10 v$LatestRelease"
Path = "Sophia Script for Windows 10 v$LatestRelease"
@ -53,7 +53,7 @@ jobs:
Write-Verbose -Message "Sophia Script for Windows 10 v$LatestRelease PowerShell 7" -Verbose
Write-Verbose -Message "Sophia Script for Windows 10 v$LatestRelease PowerShell 7" -Verbose
Write-Verbose -Message "Sophia.Script.for.Windows.10.v$LatestRelease.PowerShell.7.zip" -Verbose
Write-Verbose -Message "Sophia.Script.for.Windows.10.v$LatestRelease.PowerShell.7.zip" -Verbose
Get-ChildItem -Path "Sophia Script\Sophia Script for Windows 10 PowerShell 7" -Recurs e | Copy-Item -Destination "Sophia Script for Windows 10 v$LatestRelease PowerShell 7" -Recurse -Force
Get-ChildItem -Path "Sophia Script\Sophia Script for Windows 10 PowerShell 7" -Forc e | Copy-Item -Destination "Sophia Script for Windows 10 v$LatestRelease PowerShell 7" -Recurse -Force
# Download Microsoft.Windows.SDK.NET.Ref
# Download Microsoft.Windows.SDK.NET.Ref
$Parameters = @{
$Parameters = @{
@ -139,7 +139,7 @@ jobs:
Write-Verbose -Message "Sophia Script for Windows 10 LTSC v$LatestRelease" -Verbose
Write-Verbose -Message "Sophia Script for Windows 10 LTSC v$LatestRelease" -Verbose
Write-Verbose -Message "Sophia.Script.for.Windows.10.LTSC.v$LatestRelease.zip" -Verbose
Write-Verbose -Message "Sophia.Script.for.Windows.10.LTSC.v$LatestRelease.zip" -Verbose
Get-ChildItem -Path "Sophia Script\Sophia Script for Windows 10 LTSC" -Recurse - Force | Copy-Item -Destination "Sophia Script for Windows 10 LTSC v$LatestRelease" -Recurse -Force
Get-ChildItem -Path "Sophia Script\Sophia Script for Windows 10 LTSC" -Force | Copy-Item -Destination "Sophia Script for Windows 10 LTSC v$LatestRelease" -Recurse -Force
$Parameters = @{
$Parameters = @{
Path = "Sophia Script for Windows 10 LTSC v$LatestRelease"
Path = "Sophia Script for Windows 10 LTSC v$LatestRelease"
@ -166,7 +166,7 @@ jobs:
Write-Verbose -Message "Sophia Script for Windows 11 v$LatestRelease" -Verbose
Write-Verbose -Message "Sophia Script for Windows 11 v$LatestRelease" -Verbose
Write-Verbose -Message "Sophia.Script.for.Windows.11.v$LatestRelease.zip" -Verbose
Write-Verbose -Message "Sophia.Script.for.Windows.11.v$LatestRelease.zip" -Verbose
Get-ChildItem -Path "Sophia Script\Sophia Script for Windows 11" -Recurse - Force | Copy-Item -Destination "Sophia Script for Windows 11 v$LatestRelease" -Recurse -Force
Get-ChildItem -Path "Sophia Script\Sophia Script for Windows 11" -Force | Copy-Item -Destination "Sophia Script for Windows 11 v$LatestRelease" -Recurse -Force
$Parameters = @{
$Parameters = @{
Path = "Sophia Script for Windows 11 v$LatestRelease"
Path = "Sophia Script for Windows 11 v$LatestRelease"
@ -193,7 +193,7 @@ jobs:
Write-Verbose -Message "Sophia Script for Windows 11 v$LatestRelease PowerShell 7" -Verbose
Write-Verbose -Message "Sophia Script for Windows 11 v$LatestRelease PowerShell 7" -Verbose
Write-Verbose -Message "Sophia.Script.for.Windows.11.v$LatestRelease.PowerShell.7.zip" -Verbose
Write-Verbose -Message "Sophia.Script.for.Windows.11.v$LatestRelease.PowerShell.7.zip" -Verbose
Get-ChildItem -Path "Sophia Script\Sophia Script for Windows 11 PowerShell 7" -Recurse - Force | Copy-Item -Destination "Sophia Script for Windows 11 v$LatestRelease PowerShell 7" -Recurse -Force
Get-ChildItem -Path "Sophia Script\Sophia Script for Windows 11 PowerShell 7" -Force | Copy-Item -Destination "Sophia Script for Windows 11 v$LatestRelease PowerShell 7" -Recurse -Force
$Parameters = @{
$Parameters = @{
Path = "Sophia Script for Windows 11 v$LatestRelease PowerShell 7"
Path = "Sophia Script for Windows 11 v$LatestRelease PowerShell 7"
@ -219,7 +219,7 @@ jobs:
Write-Verbose -Message "Sophia Script Wrapper v$LatestRelease" -Verbose
Write-Verbose -Message "Sophia Script Wrapper v$LatestRelease" -Verbose
Write-Verbose -Message "Sophia.Script.Wrapper.v$LatestRelease.zip" -Verbose
Write-Verbose -Message "Sophia.Script.Wrapper.v$LatestRelease.zip" -Verbose
Get-ChildItem -Path Wrapper -Exclude README.md -Recurse - Force | Copy-Item -Destination "Sophia Script Wrapper v$LatestRelease" -Recurse -Force
Get-ChildItem -Path Wrapper -Exclude README.md -Force | Copy-Item -Destination "Sophia Script Wrapper v$LatestRelease" -Recurse -Force
$Parameters = @{
$Parameters = @{
Path = "Sophia Script Wrapper v$LatestRelease"
Path = "Sophia Script Wrapper v$LatestRelease"
@ -229,7 +229,7 @@ jobs:
Compress-Archive @Parameters
Compress-Archive @Parameters
# Calculate hash
# Calculate hash
Get-Child Item -Path "Sophia.Script.Wrapper.v$LatestRelease.zip" -Force | ForEach-Object -Process {
Get-Item -Path "Sophia.Script.Wrapper.v$LatestRelease.zip" -Force | ForEach-Object -Process {
"$($_.Name) $((Get-FileHash -LiteralPath $_.FullName -Algorithm SHA256).Hash)"
"$($_.Name) $((Get-FileHash -LiteralPath $_.FullName -Algorithm SHA256).Hash)"
} | Add-Content -Path SHA256SUM -Encoding Default -Force
} | Add-Content -Path SHA256SUM -Encoding Default -Force