Skip to content

Commit b1d3af0

Browse files
chezouclaude
andcommitted
Fix Windows model extraction: rename 7z output to model.bin
7z extracts gzip using the original filename from the gzip header (jp-0.4.7-5.mod), not the archive name. Rename after extraction. Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
1 parent 2e42944 commit b1d3af0

1 file changed

Lines changed: 2 additions & 5 deletions

File tree

.github/workflows/wheels.yml

Lines changed: 2 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -63,11 +63,8 @@ jobs:
6363
cp kytea\lib\libkytea.lib lib\kytea\ &&
6464
swig -Wall -c++ -python -shadow -Iinclude lib\kytea\mykytea.i &&
6565
Invoke-WebRequest -OutFile model.bin.gz https://github.com/neubig/kytea/raw/master/data/model.bin.gz &&
66-
$input = New-Object System.IO.FileStream("model.bin.gz", [IO.FileMode]::Open) &&
67-
$gzip = New-Object System.IO.Compression.GZipStream($input, [IO.Compression.CompressionMode]::Decompress) &&
68-
$output = New-Object System.IO.FileStream("model.bin", [IO.FileMode]::Create) &&
69-
$gzip.CopyTo($output) &&
70-
$output.Close(); $gzip.Close(); $input.Close()
66+
7z x model.bin.gz &&
67+
ren jp-0.4.7-5.mod model.bin
7168
7269
- name: Build wheels
7370
if: runner.os != 'macOS'

0 commit comments

Comments
 (0)