* feat: add experimental Apple Silicon support with Nivfold Integrate the standalone Nivfold protocol 1 runner; tested against Nivfold f436fb6. The Windows Reims vGPU runtime remains independent. * fix: open QQ invites and VM SSH on macOS * fix: move VM, View and Help to the macOS menu bar * feat(macos): add resumable Apple restore image downloads Expose the compatible restore image in the VM wizard and Images page, validate downloads before caching, and fix macOS memory reporting and plugin SVG rendering. * fix(macos): localize the native application menu * fix(macos): address native desktop review findings
18 lines
796 B
JavaScript
18 lines
796 B
JavaScript
import assert from 'node:assert/strict'
|
|
import { execFileSync } from 'node:child_process'
|
|
import fs from 'node:fs'
|
|
import path from 'node:path'
|
|
|
|
const [runner] = process.argv.slice(2)
|
|
const vm = path.join(process.env.REIMS_TMP_DIR, 'native-vm')
|
|
fs.mkdirSync(vm, { mode: 0o700 })
|
|
const query = (...args) => JSON.parse(execFileSync(runner, args, { encoding: 'utf8', timeout: 5000 }))
|
|
const probe = query('probe')
|
|
assert.equal(probe.runtime, 'nivfold')
|
|
assert.equal(probe.protocol_version, 1)
|
|
assert.equal(probe.entitled, true)
|
|
assert.equal(probe.supported, true)
|
|
assert.ok(probe.resources.recommended_cpu_count > 0)
|
|
assert.ok(probe.resources.maximum_memory_mib >= probe.resources.minimum_memory_mib)
|
|
assert.deepEqual(query('status', '--vm-dir', vm), { installed: false, pid: 0, state: 'stopped' })
|