Skip to content

Commit

Permalink
chore(version): 0.9.1
Browse files Browse the repository at this point in the history
  • Loading branch information
kangfenmao committed Dec 26, 2024
1 parent 6b7ba35 commit 7d54f9b
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 11 deletions.
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -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",
Expand Down
13 changes: 3 additions & 10 deletions scripts/after-pack.js
Original file line number Diff line number Diff line change
Expand Up @@ -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)
}
}

Expand Down

0 comments on commit 7d54f9b

Please sign in to comment.