Commit 7399c7e
fix: use binary-mode subprocess for GitHub release asset downloads (#6)
The release asset scanner was failing to download all assets because:
1. _download_asset used _gh_api() which runs with text=True,
corrupting binary asset content
2. _download_asset_binary first tried gh release download --pattern *
without specifying a release tag (defaulted to latest instead of
the target release)
3. The fallback used --output which is not a valid gh api flag
4. Even the fallback used run_cmd() with text=True
Replace both methods with a single _download_asset_binary that calls
gh api with Accept: application/octet-stream in binary mode
(text=False) and writes raw bytes to disk. gh api handles auth
and redirect-following automatically.
Co-authored-by: Claude Opus 4.6 (1M context) <noreply@anthropic.com>1 parent 4f11cd5 commit 7399c7e
1 file changed
Lines changed: 29 additions & 39 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
76 | 76 | | |
77 | 77 | | |
78 | 78 | | |
79 | | - | |
80 | | - | |
| 79 | + | |
| 80 | + | |
| 81 | + | |
| 82 | + | |
| 83 | + | |
| 84 | + | |
| 85 | + | |
81 | 86 | | |
82 | | - | |
83 | | - | |
| 87 | + | |
| 88 | + | |
84 | 89 | | |
| 90 | + | |
| 91 | + | |
85 | 92 | | |
86 | | - | |
87 | | - | |
88 | | - | |
| 93 | + | |
| 94 | + | |
| 95 | + | |
| 96 | + | |
| 97 | + | |
| 98 | + | |
| 99 | + | |
| 100 | + | |
| 101 | + | |
89 | 102 | | |
90 | 103 | | |
91 | 104 | | |
92 | | - | |
| 105 | + | |
| 106 | + | |
| 107 | + | |
| 108 | + | |
| 109 | + | |
93 | 110 | | |
94 | | - | |
| 111 | + | |
| 112 | + | |
| 113 | + | |
| 114 | + | |
95 | 115 | | |
96 | 116 | | |
97 | | - | |
98 | | - | |
99 | | - | |
100 | | - | |
101 | | - | |
102 | | - | |
103 | | - | |
104 | | - | |
105 | | - | |
106 | | - | |
107 | | - | |
108 | | - | |
109 | | - | |
110 | | - | |
111 | | - | |
112 | | - | |
113 | | - | |
114 | | - | |
115 | | - | |
116 | | - | |
117 | | - | |
118 | | - | |
119 | | - | |
120 | | - | |
121 | | - | |
122 | | - | |
123 | | - | |
124 | | - | |
125 | | - | |
126 | | - | |
127 | 117 | | |
128 | 118 | | |
129 | 119 | | |
| |||
0 commit comments