@@ -18,8 +18,8 @@ function getPlatformPackage() {
1818 x64 : "codex-acp-linux-x64" ,
1919 } ,
2020 win32 : {
21- arm64 : "codex-acp-windows -arm64" ,
22- x64 : "codex-acp-windows -x64" ,
21+ arm64 : "codex-acp-win32 -arm64" ,
22+ x64 : "codex-acp-win32 -x64" ,
2323 } ,
2424 } ;
2525
@@ -45,8 +45,8 @@ function testAllPlatforms() {
4545 { platform : "darwin" , arch : "x64" , expected : "codex-acp-darwin-x64" } ,
4646 { platform : "linux" , arch : "arm64" , expected : "codex-acp-linux-arm64" } ,
4747 { platform : "linux" , arch : "x64" , expected : "codex-acp-linux-x64" } ,
48- { platform : "win32" , arch : "arm64" , expected : "codex-acp-windows -arm64" } ,
49- { platform : "win32" , arch : "x64" , expected : "codex-acp-windows -x64" } ,
48+ { platform : "win32" , arch : "arm64" , expected : "codex-acp-win32 -arm64" } ,
49+ { platform : "win32" , arch : "x64" , expected : "codex-acp-win32 -x64" } ,
5050 ] ;
5151
5252 console . log ( "Testing platform detection logic...\n" ) ;
@@ -70,18 +70,16 @@ function testAllPlatforms() {
7070 try {
7171 const result = getPlatformPackage ( ) ;
7272 if ( result === testCase . expected ) {
73- console . log (
74- `✓ ${ testCase . platform } -${ testCase . arch } -> ${ result } `
75- ) ;
73+ console . log ( `✓ ${ testCase . platform } -${ testCase . arch } -> ${ result } ` ) ;
7674 } else {
7775 console . error (
78- `✗ ${ testCase . platform } -${ testCase . arch } -> Expected: ${ testCase . expected } , Got: ${ result } `
76+ `✗ ${ testCase . platform } -${ testCase . arch } -> Expected: ${ testCase . expected } , Got: ${ result } ` ,
7977 ) ;
8078 allPassed = false ;
8179 }
8280 } catch ( e ) {
8381 console . error (
84- `✗ ${ testCase . platform } -${ testCase . arch } -> Error: ${ e . message } `
82+ `✗ ${ testCase . platform } -${ testCase . arch } -> Error: ${ e . message } ` ,
8583 ) ;
8684 allPassed = false ;
8785 } finally {
0 commit comments