[Init] Rework entrypoint file

This commit is contained in:
Beef 2023-04-05 20:54:14 +01:00
parent aff1c83e94
commit 50755b2306
3 changed files with 16 additions and 18 deletions

15
src/entry.ts Normal file
View file

@ -0,0 +1,15 @@
import { ClientInfoManager } from "@lib/native";
// This logs in the native logging implementation, e.g. logcat
console.log("Hello from Vendetta!");
(async () => (await import(".")).default().catch(e => {
console.log(e?.stack ?? e.toString());
alert([
"Failed to load Vendetta!\n",
`Build Number: ${ClientInfoManager.Build}`,
// @ts-expect-error, replaced in build script
`Vendetta: ${__vendettaVersion}`,
e?.stack || e.toString(),
].join("\n"));
}))();