diff --git a/Codex-26.527.7698.0-windows-x64-msix.zip b/Codex-26.527.7698.0-windows-x64-msix.zip new file mode 100644 index 0000000..9c8abe6 Binary files /dev/null and b/Codex-26.527.7698.0-windows-x64-msix.zip differ diff --git a/Install-Codex-26.527.ps1 b/Install-Codex-26.527.ps1 new file mode 100644 index 0000000..95c278b --- /dev/null +++ b/Install-Codex-26.527.ps1 @@ -0,0 +1,40 @@ +$ErrorActionPreference = "Stop" + +function Write-Step([string]$Message) { + Write-Host ((Get-Date).ToString("yyyy-MM-dd HH:mm:ss K") + " " + $Message) +} + +$Root = Split-Path -Parent $MyInvocation.MyCommand.Path +$ZipPath = Join-Path $Root "Codex-26.527.7698.0-windows-x64-msix.zip" +$ExtractPath = Join-Path $Root "Codex-26.527.7698.0-windows-x64-msix" +$MsixPath = Join-Path $ExtractPath "OpenAI.Codex_26.527.7698.0_x64__2p2nqsd0c76g0.Msix" +$ExpectedHash = "eb038b71b9138d739e652d51adc15b3628cac34441727916b64e6e4699d259a4" + +Write-Step "Checking Codex offline package at $ZipPath" +if (!(Test-Path $ZipPath)) { + throw "Missing package zip: $ZipPath" +} + +if (Test-Path $ExtractPath) { + Write-Step "Removing previous extraction folder" + Remove-Item -Recurse -Force $ExtractPath +} + +Write-Step "Extracting Codex package" +Expand-Archive -Path $ZipPath -DestinationPath $ExtractPath -Force + +Write-Step "Verifying MSIX hash" +$ActualHash = (Get-FileHash -Algorithm SHA256 $MsixPath).Hash.ToLowerInvariant() +if ($ActualHash -ne $ExpectedHash) { + throw "Hash mismatch for $MsixPath. Expected $ExpectedHash but got $ActualHash" +} + +Write-Step "Installing Codex 26.527.7698.0 from MSIX" +Add-AppxPackage -Path $MsixPath + +Write-Step "Verifying installed Codex package" +Get-AppxPackage OpenAI.Codex | + Select-Object Name, PackageFullName, Version, InstallLocation | + Format-List + +Write-Step "Codex installation command completed" diff --git a/README.md b/README.md index 0121827..428d0f4 100644 --- a/README.md +++ b/README.md @@ -1,2 +1,23 @@ -# installations +# Installations +Offline installation packages that need a reliable transport through Gitea. + +## Codex 26.527 Windows x64 + +Package: + +```text +Codex-26.527.7698.0-windows-x64-msix.zip +``` + +Expected MSIX SHA-256 after extracting the zip: + +```text +eb038b71b9138d739e652d51adc15b3628cac34441727916b64e6e4699d259a4 +``` + +Install from PowerShell: + +```powershell +.\Install-Codex-26.527.ps1 +``` diff --git a/SHA256SUMS-windows.txt b/SHA256SUMS-windows.txt new file mode 100644 index 0000000..2274223 --- /dev/null +++ b/SHA256SUMS-windows.txt @@ -0,0 +1 @@ +eb038b71b9138d739e652d51adc15b3628cac34441727916b64e6e4699d259a4 OpenAI.Codex_26.527.7698.0_x64__2p2nqsd0c76g0.Msix