Files
dazacodeandClaude Opus 5.5 7b9c08e293 Run Windows builds on a Mac through a D3DMetal runner, with DLSS through MetalFX
Settings > Windows builds on this Mac picks a compatibility runner: CrossOver
(a bottle, via its documented `wine --bottle <name> --cx-app <program>`) or a
Wine build such as Apple's Game Porting Toolkit (wine64 with WINEPREFIX).

- runner.rs rebuilds a command to start through the runner only on macOS,
  only for a Windows (MZ) program, and only with a runner chosen: native
  builds, git, cargo and Windows/Linux are untouched. The program's path
  arguments and VICTORY_* folders are passed as Wine sees them (drive Z:).
- Play, the shader warm-up and the --help probes go through it; the F1 menu
  file is read from the bottle's or prefix's AppData\Local; Stop ends the
  programs in the bottle (wineboot --kill) if the game outlives the close.
- DLSS through MetalFX: CrossOver's per-bottle DLSS setting runs a game's
  DLSS on MetalFX. With it on, streamline_switches lets the game's DLSS path
  run on an Apple GPU from a Streamline folder the player chose (NVIDIA's
  signature is only checked on Windows, so the launcher's own download stays
  Windows-only). Frame generation stays off.
- Settings shows the runner group and a MetalFX row on macOS only; English,
  zh-TW and zh-CN; the mock previews it with ?platform=macos.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
2026-11-28 01:03:37 -08:00

6.7 KiB
Raw Permalink Blame History

VILauncher on macOS

VILauncher runs natively on macOS, on Apple silicon and Intel. This page covers what differs from Windows: the games, the build tools, Gatekeeper, the updater and the folders.

Requirements

  • macOS 13 (Ventura) or later. Releases ship one universal app for both processors.
  • To build Rust projects: Xcode Command Line Tools, Git and Rust. Settings → Install missing tools starts Apple's installer (xcode-select --install), installs Git with Homebrew when Homebrew is there, and installs Rust with the official rustup script.

An app started from Finder, Spotlight or the Dock gets only /usr/bin:/bin:/usr/sbin:/sbin as its PATH. At start VILauncher reads your login shell's PATH and adds ~/.cargo/bin, /opt/homebrew/bin and /usr/local/bin, so tools installed with rustup or Homebrew are found.

The games

Prebuilt builds in the list are Windows programs. On macOS you can install them and keep their files; running one needs a compatibility runner (see below), and without one the launcher says so before Play. Rust projects are built from source and run natively. The D3D12 Agility SDK checks and fixes are Windows ones and are skipped on macOS.

Windows builds and Metal

Settings › Windows builds on this Mac chooses the runner (src-tauri/src/runner.rs):

Runner What the launcher runs Set up in the runner
CrossOver (26 or later) CrossOver.app/Contents/SharedSupport/CrossOver/bin/wine --bottle <bottle> --cx-app <program.exe> … The bottle's Graphics: D3DMetal
Wine or Game Porting Toolkit <wine64> <program.exe> … with WINEPREFIX=<prefix folder> A Wine build with D3DMetal (the toolkit's wine64)
  • Only a Windows program goes through the runner, and only on macOS with a runner chosen. Native builds, git, cargo and every other system are unchanged.
  • The program's own paths (its arguments and the VICTORY_* folders) are passed as Wine sees them, on drive Z:.
  • The F1 menu's file is read from the bottle's or prefix's AppData\Local\ProjectNeptune\menu.txt, so its choices still apply at the next Play.
  • Stop closes the runner's process like any game; if the game is still running ten seconds later, the launcher ends the programs in that bottle or prefix (wineboot --kill).

DLSS through MetalFX. D3DMetal can run a game's DLSS upscaling on Apple's MetalFX. In CrossOver it is the bottle's DLSS setting (D3DMetal and DXMT only), and it applies only while DLSS is on in the game's own settings. With DLSS through MetalFX on, the launcher lets the game's DLSS path run on an Apple GPU, using NVIDIA's Streamline files from a folder you choose. The launcher can check NVIDIA's signature on those files only on Windows, so on a Mac they come from your own download, like the FSR DLL. Frame generation stays off. The launcher does not change the runner's own settings: turn on D3DMetal and DLSS in CrossOver yourself.

Untested combinations: whether a given build runs under D3DMetal, and whether its Streamline path reaches MetalFX, depend on the build and on the runner's version.

Gatekeeper

macOS stops an app that was downloaded and is not notarized.

A notarized release (built with the Apple secrets set in CI, see below) opens normally. spctl --assess --type execute --verbose=4 VILauncher.app reports source=Notarized Developer ID.

An ad-hoc signed release, first start. macOS says the developer cannot be verified. Either:

  1. System Settings → Privacy & Security → Open Anyway, then confirm, or
  2. in Terminal: xattr -dr com.apple.quarantine /Applications/VILauncher.app

A game build. The launcher clears the quarantine flag on programs it unpacks, sets their execute bit, and offers Fix and verify when one is still blocked. Bad CPU type in executable means the build was made for the other processor only; it is not a quarantine problem.

Verifying a download

Each release lists a SHA-256 for the .dmg and for VILauncher-macos.app.tar.gz. Compare before opening:

shasum -a 256 ~/Downloads/VILauncher_<version>_universal.dmg
codesign --verify --deep --strict /Applications/VILauncher.app

The updater

  • The release download is VILauncher-macos.app.tar.gz, the universal app. A release without it is not offered. Its SHA-256 is checked against the digest GitHub records when it is downloaded, and again before the swap.
  • The archive is unpacked into a staging folder next to the running app and its program is checked. Only then is the old app moved aside and the new one put in its place; a failure puts the old app back.
  • In a folder you can write to, no prompt is needed. In a read-only place (a mounted .dmg, an /Applications owned by another user) macOS asks for an administrator. If that is refused, the new app stays where it was staged and the launcher names the folder.
  • Saves in data are never touched by an update.

Folders

Path Holds
~/Library/Application Support/VILauncher Repos, builds, shader caches, saves and profiles (data), previous builds, patches, logs. The install folder can be changed in Settings.
~/Library/Application Support/VILauncher/settings.json Settings

Entitlements

src-tauri/Entitlements.plist is applied with the hardened runtime (src-tauri/tauri.macos.conf.json):

  • com.apple.security.cs.disable-library-validation: the launcher starts programs it did not build (game builds, a Homebrew git), which are not signed by the same team.
  • com.apple.security.cs.allow-jit and com.apple.security.cs.allow-unsigned-executable-memory: game builds and JIT-based tools map executable memory.
  • com.apple.security.network.client: cloning projects and checking for updates.

Signing and notarizing in CI

The Build for macOS job signs and notarizes when these repository secrets are set. Tauri reads them by these names:

Secret Value
APPLE_CERTIFICATE base64 of a Developer ID Application .p12
APPLE_CERTIFICATE_PASSWORD its password
APPLE_SIGNING_IDENTITY e.g. Developer ID Application: Name (TEAMID)
APPLE_ID the Apple ID used to notarize
APPLE_PASSWORD an app-specific password for it
APPLE_TEAM_ID the Team ID

Without them the app is ad-hoc signed and not notarized, so forks and pull requests still build.

Building on a Mac

pnpm install
pnpm tauri dev                                   # run with hot reload
pnpm tauri build                                 # this Mac's processor
pnpm tauri build --target universal-apple-darwin # both (needs both Rust targets)

The universal build needs rustup target add aarch64-apple-darwin x86_64-apple-darwin. Output is in src-tauri/target/<target>/release/bundle/ (macos/VILauncher.app and dmg/).