Skip to content

Commit 25d7d0d

Browse files
committed
fix shake
1 parent ea72466 commit 25d7d0d

4 files changed

Lines changed: 13 additions & 4 deletions

File tree

.github/workflows/publish.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -60,7 +60,7 @@ jobs:
6060
VITE_MODRINTH_CLIENT_SECRET: ${{ secrets.PUBLIC_VITE_MODRINTH_CLIENT_SECRET }}
6161
VITE_MODRINTH_SCOPES: ${{ vars.VITE_MODRINTH_SCOPES }}
6262
VITE_MODRINTH_CLIENT_ID: ${{ vars.VITE_MODRINTH_CLIENT_ID }}
63-
63+
VITE_SHAKE_APIKEY: ${{ secrets.VITE_SHAKE_APIKEY }}
6464
VITE_REDIRECT_URI: ${{ secrets.PUBLIC_VITE_AUTHORITY }}
6565
VITE_GITHUB: ${{ secrets.PUBLIC_VITE_GITHUB }}
6666
VITE_GITHUB_API_VERSION: ${{ vars.VITE_GITHUB_API_VERSION }}

PATCHNOTES.md

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,9 @@
1+
# v0.9.11
2+
**Full Changelog**: [https://github.com/VisualSource/rusty-mc-launcher/compare/v0.9.10...v0.9.11](https://github.com/VisualSource/rusty-mc-launcher/compare/v0.9.10...v0.9.11)
3+
4+
### Fixes
5+
- Fix bug report
6+
17
# v0.9.10
28
**Full Changelog**: [https://github.com/VisualSource/rusty-mc-launcher/compare/v0.9.9...v0.9.10](https://github.com/VisualSource/rusty-mc-launcher/compare/v0.9.9...v0.9.10)
39

src-tauri/tauri.conf.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
"$schema": "../node_modules/@tauri-apps/cli/config.schema.json",
33
"productName": "Rusty Minecraft Launcher",
44
"identifier": "us.visualsource.rmcl",
5-
"version": "0.9.10",
5+
"version": "0.9.11",
66
"build": {
77
"beforeBuildCommand": "pnpm build",
88
"beforeDevCommand": "pnpm dev",

src/main.tsx

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ import { RouterProvider } from "@tanstack/react-router";
33
import { listen } from "@tauri-apps/api/event";
44
import { MsalProvider } from "@azure/msal-react";
55
import { createRoot } from "react-dom/client";
6-
import Shake from "@shakebugs/browser";
6+
import Shake, { } from "@shakebugs/browser";
77
import { StrictMode } from "react";
88

99
import { ModrinthClientApplication } from "@lib/api/modrinth/auth/ModrinthClientApplication";
@@ -19,6 +19,7 @@ import "react-lazy-load-image-component/src/effects/blur.css";
1919
import { toastError } from "./lib/toast";
2020
import { initThemes } from "./lib/api/themes";
2121
import { getTauriVersion, getVersion } from "@tauri-apps/api/app";
22+
import { error, info } from "@tauri-apps/plugin-log";
2223

2324
initThemes();
2425
if (import.meta.env.PROD) checkForAppUpdate().catch(logCatchError);
@@ -29,7 +30,9 @@ Promise.all([getTauriVersion(), getVersion()]).then(([tauri, app]) => {
2930
Shake.report.isSessionReplayEnabled = false;
3031
Shake.setMetadata("app_version", app);
3132
Shake.setMetadata("tauri", tauri);
32-
Shake.start(import.meta.env.VITE_SHAKE_APIKEY);
33+
Shake.start(import.meta.env.VITE_SHAKE_APIKEY).catch((err) => {
34+
error((err as Error)?.message);
35+
}).then(() => info("Shake is ready"));
3336
});
3437

3538
listen<string>("rmcl-content-install-failed", (ev) => {

0 commit comments

Comments
 (0)