From cf5c0d9523e6ff9fc323b08aa351d02471cc4b5e Mon Sep 17 00:00:00 2001 From: lencx Date: Mon, 3 Oct 2022 18:39:10 +0800 Subject: [PATCH] chore: updater --- scripts/updater.mjs | 4 ++-- src-tauri/Cargo.toml | 8 +------- src/views/dashboard/index.tsx | 1 - 3 files changed, 3 insertions(+), 10 deletions(-) diff --git a/scripts/updater.mjs b/scripts/updater.mjs index 4fc7d65..e231c44 100644 --- a/scripts/updater.mjs +++ b/scripts/updater.mjs @@ -42,7 +42,7 @@ async function updater() { linux: { signature: '', url: '' }, // compatible with older formats darwin: { signature: '', url: '' }, // compatible with older formats 'darwin-aarch64': { signature: '', url: '' }, - 'darwin-intel': { signature: '', url: '' }, + 'darwin-x86_64': { signature: '', url: '' }, 'linux-x86_64': { signature: '', url: '' }, 'windows-x86_64': { signature: '', url: '' }, // 'windows-i686': { signature: '', url: '' }, // no supported @@ -74,8 +74,8 @@ async function updater() { // darwin await setAsset(asset, /.app.tar.gz/, [ 'darwin', + 'darwin-x86_64', 'darwin-aarch64', - 'darwin-intel', ]); // linux diff --git a/src-tauri/Cargo.toml b/src-tauri/Cargo.toml index d06f04f..e2f4f23 100644 --- a/src-tauri/Cargo.toml +++ b/src-tauri/Cargo.toml @@ -17,13 +17,7 @@ tauri-build = { version = "1.1.1", features = [] } [dependencies] serde_json = "1.0" serde = { version = "1.0", features = ["derive"] } -tauri = { version = "1.1.1", features = [ - "api-all", - "icon-png", - "macos-private-api", - "system-tray", - "updater", -] } +tauri = { version = "1.1.1", features = ["api-all", "icon-png", "macos-private-api", "system-tray", "updater"] } thiserror = "1.0" window-vibrancy = "0.2.0" diff --git a/src/views/dashboard/index.tsx b/src/views/dashboard/index.tsx index b7be5a7..7c668a5 100644 --- a/src/views/dashboard/index.tsx +++ b/src/views/dashboard/index.tsx @@ -1,6 +1,5 @@ import OmbCard, { OmbIcon } from '@/components/OmbCard'; import SwitchLang from '@/components/SwitchLang'; -// import useI18n from '@/hooks/useI18n'; export default function DashboardView() { // const t = useI18n(['dashboard', 'tools', 'game']);