1
0
mirror of https://github.com/farag2/Sophia-Script-for-Windows.git synced 2025-12-23 22:11:09 +02:00
Files
Dmitry Nefedov f6c73d5c5d CI/CD refactoring
2025-04-17 20:51:08 +03:00

19 lines
957 B
PowerShell

# https://github.com/farag2/Sophia-Script-for-Windows/blob/master/sophia_script_versions.json
$Parameters = @{
Uri = "https://raw.githubusercontent.com/farag2/Sophia-Script-for-Windows/master/sophia_script_versions.json"
}
$Latest_Release_Sophia_Script_Wrapper = (Invoke-RestMethod @Parameters).Sophia_Script_Wrapper
Write-Verbose -Message "Sophia.Script.Wrapper.v$Latest_Release_Sophia_Script_Wrapper.zip" -Verbose
New-Item -Path "Sophia_Script_Wrapper_v$Latest_Release_Sophia_Script_Wrapper" -ItemType Directory -Force
Get-ChildItem -Path Wrapper -Exclude README.md -Force | Copy-Item -Destination "Sophia_Script_Wrapper_v$Latest_Release_Sophia_Script_Wrapper" -Recurse -Force
$Parameters = @{
Path = "Sophia_Script_Wrapper_v$Latest_Release_Sophia_Script_Wrapper"
DestinationPath = "Sophia.Script.Wrapper.v$Latest_Release_Sophia_Script_Wrapper.zip"
CompressionLevel = "Fastest"
Force = $true
}
Compress-Archive @Parameters