mirror of
https://github.com/mountain-loop/yaak.git
synced 2026-08-22 03:13:58 +02:00
16 lines
647 B
TypeScript
16 lines
647 B
TypeScript
import { setPlatform } from "./registry";
|
|
import { createTauriPlatform } from "./tauri";
|
|
|
|
// The desktop entry. Installed unconditionally and synchronously — several
|
|
// modules call commands while the module graph is still evaluating, so there is
|
|
// no later moment to do this in.
|
|
//
|
|
// This line is the swap point, and a browser build swaps it by resolving the
|
|
// package to `index.web.ts` instead of this file. Because nothing else in the
|
|
// app imports a host directly, that is the whole change.
|
|
setPlatform(createTauriPlatform());
|
|
|
|
export * from "./capabilities";
|
|
export { platform, setPlatform } from "./registry";
|
|
export * from "./types";
|