Skip to content

Commit ab3c139

Browse files
KwaminaWhyteclaude
andcommitted
fix: Fix import errors and update version to 0.8.0-beta
Build Fixes: - Fixed relaunch import from @tauri-apps/plugin-process - Removed unused Update type import - Simplified progress tracking to avoid contentLength property - Added @tauri-apps/plugin-process dependency Version Updates: - Updated package.json to 0.8.0-beta - Updated tauri.conf.json to 0.8.0 - Updated About page version display Build verified successful. 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude <noreply@anthropic.com>
1 parent 0fdec90 commit ab3c139

4 files changed

Lines changed: 10 additions & 7 deletions

File tree

bun.lock

Lines changed: 3 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
{
22
"name": "db-hive",
33
"private": true,
4-
"version": "0.7.0-beta",
4+
"version": "0.8.0-beta",
55
"type": "module",
66
"scripts": {
77
"dev": "vite",
@@ -33,6 +33,7 @@
3333
"@tauri-apps/api": "^2",
3434
"@tauri-apps/plugin-dialog": "^2.4.2",
3535
"@tauri-apps/plugin-opener": "^2",
36+
"@tauri-apps/plugin-process": "^2.3.1",
3637
"@tauri-apps/plugin-store": "^2.4.1",
3738
"@tauri-apps/plugin-updater": "^2.9.0",
3839
"@types/dagre": "^0.7.53",

src-tauri/tauri.conf.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
{
22
"$schema": "https://schema.tauri.app/config/2",
33
"productName": "db-hive",
4-
"version": "0.7.0",
4+
"version": "0.8.0",
55
"identifier": "com.kwamina.db-hive",
66
"build": {
77
"beforeDevCommand": "bun run dev",

src/routes/about.tsx

Lines changed: 4 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ import {
2121
import { useEffect, useState } from "react";
2222
import { toast } from "sonner";
2323
import { check } from "@tauri-apps/plugin-updater";
24-
import { relaunch } from "@tauri-apps/api/process";
24+
import { relaunch } from "@tauri-apps/plugin-process";
2525

2626
export const Route = createFileRoute("/about")({
2727
component: AboutRoute,
@@ -32,7 +32,7 @@ function AboutRoute() {
3232
const [previousRoute, setPreviousRoute] = useState<string>("/");
3333
const [isChecking, setIsChecking] = useState(false);
3434
const [isDownloading, setIsDownloading] = useState(false);
35-
const version = "0.7.0-beta";
35+
const version = "0.8.0-beta";
3636

3737
// Store the previous route before navigating to about
3838
useEffect(() => {
@@ -80,11 +80,10 @@ function AboutRoute() {
8080
await update.downloadAndInstall((event) => {
8181
switch (event.event) {
8282
case "Started":
83-
console.log(`Update download started: ${event.data.contentLength} bytes`);
83+
console.log("Update download started");
8484
break;
8585
case "Progress":
86-
const percentage = (event.data.chunkLength / event.data.contentLength) * 100;
87-
console.log(`Downloaded ${percentage.toFixed(2)}%`);
86+
console.log(`Downloading update: ${event.data.chunkLength} bytes`);
8887
break;
8988
case "Finished":
9089
console.log("Download finished");

0 commit comments

Comments
 (0)