From 7d54f9b4fae520251dc41cb5ff075822429a3c88 Mon Sep 17 00:00:00 2001 From: kangfenmao Date: Thu, 26 Dec 2024 10:26:00 +0800 Subject: [PATCH] chore(version): 0.9.1 --- package.json | 2 +- scripts/after-pack.js | 13 +++---------- 2 files changed, 4 insertions(+), 11 deletions(-) diff --git a/package.json b/package.json index dfe2ae5a9..5a9a42649 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "CherryStudio", - "version": "0.9.0", + "version": "0.9.1", "private": true, "description": "A powerful AI assistant for producer.", "main": "./out/main/index.js", diff --git a/scripts/after-pack.js b/scripts/after-pack.js index 8c2d66439..1728ba502 100644 --- a/scripts/after-pack.js +++ b/scripts/after-pack.js @@ -18,20 +18,13 @@ exports.default = async function (context) { 'node_modules' ) - removeDifferentArchNodeFiles( - node_modules_path, - '@lancedb', - arch === Arch.arm64 ? ['lancedb-darwin-arm64'] : ['lancedb-darwin-x64'] - ) + removeDifferentArchNodeFiles(node_modules_path, '@libsql', arch === Arch.arm64 ? ['darwin-arm64'] : ['darwin-x64']) } if (platform === 'linux') { const node_modules_path = path.join(context.appOutDir, 'resources', 'app.asar.unpacked', 'node_modules') - const _arch = - arch === Arch.arm64 - ? ['lancedb-linux-arm64-gnu', 'lancedb-linux-arm64-musl'] - : ['lancedb-linux-x64-gnu', 'lancedb-linux-x64-musl'] - removeDifferentArchNodeFiles(node_modules_path, '@lancedb', _arch) + const _arch = arch === Arch.arm64 ? ['linux-arm64-gnu', 'linux-arm64-musl'] : ['linux-x64-gnu', 'linux-x64-musl'] + removeDifferentArchNodeFiles(node_modules_path, '@libsql', _arch) } }