forked from OctoWoW/OctoLauncher
5dca94a3fc
Manifest-based CDN updater and mod manager for the OctoWoW 1.12.1 client: launcher-owned realmlist, torrent-backed content sync with bundled aria2c, antivirus and Defender exclusion handling, hardware-aware render distance, optional client tweaks and mods, and the in-launcher news feed.
15 lines
501 B
TypeScript
15 lines
501 B
TypeScript
import { z } from 'zod';
|
|
|
|
import Updater from '~main/modules/updater';
|
|
|
|
import { createTRPCRouter, publicProcedure } from '../trpc';
|
|
|
|
export const updaterRouter = createTRPCRouter({
|
|
verify: publicProcedure.mutation(() => Updater.verify()),
|
|
syncRaidVisuals: publicProcedure.mutation(() => Updater.syncRaidVisuals()),
|
|
update: publicProcedure
|
|
.input(z.boolean().optional())
|
|
.mutation(async ({ input }) => Updater.update(input)),
|
|
observe: publicProcedure.subscription(() => Updater.observe())
|
|
});
|