Skip to content

Commit 485d46c

Browse files
committed
fix(release): build on macos-latest and read the model manifest on Windows
- GitHub no longer offers the macos-14 runner image: build the macOS installer on macos-latest (Apple Silicon), as Parler does. - fetch-models imported models/manifest.json from its absolute path, which Node refuses on Windows (D:\…). Read and parse the file instead.
1 parent 228260f commit 485d46c

2 files changed

Lines changed: 3 additions & 2 deletions

File tree

‎.github/workflows/release.yml‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@ jobs:
3232
include:
3333
- label: macOS (Apple Silicon)
3434
name: macos-arm64
35-
runner: macos-14
35+
runner: macos-latest
3636
target: aarch64-apple-darwin
3737
features: coreml
3838
# The int8 CLIP on the CPU is faster than CoreML on Apple

‎scripts/fetch-models.mjs‎

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -270,7 +270,8 @@ async function fetchModel(m, dir) {
270270

271271
async function main() {
272272
const opts = parseArgs(process.argv.slice(2))
273-
const { default: manifest } = await import(manifestPath, { with: { type: 'json' } })
273+
// Read, not imported: an absolute Windows path (D:\…) is not an import URL.
274+
const manifest = JSON.parse(readFileSync(manifestPath, 'utf8'))
274275
const selected = manifest.models.filter((m) => {
275276
if (opts.only) return opts.only.includes(m.id)
276277
if (opts.all) return true

0 commit comments

Comments
 (0)