Skip to content

Commit

Permalink
chore(version): 0.7.0
Browse files Browse the repository at this point in the history
  • Loading branch information
kangfenmao committed Sep 13, 2024
1 parent 0ddef31 commit d35b466
Show file tree
Hide file tree
Showing 5 changed files with 31 additions and 1 deletion.
4 changes: 4 additions & 0 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,10 @@ jobs:
- name: Install corepack
run: corepack enable && corepack prepare yarn@4.3.1 --activate

- name: Install Python SetupTools
if: matrix.os == 'macos-latest'
run: brew install python-setuptools

- name: Install Dependencies
run: yarn install

Expand Down
2 changes: 2 additions & 0 deletions electron-builder.yml
Original file line number Diff line number Diff line change
Expand Up @@ -57,6 +57,8 @@ publish:
electronDownload:
mirror: https://npmmirror.com/mirrors/electron/
afterSign: scripts/notarize.js
beforePack: scripts/beforePack.js
afterAllArtifactBuild: scripts/afterAllArtifactBuild.js
releaseInfo:
releaseNotes: |
本次更新:
Expand Down
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.6.14",
"version": "0.7.0",
"private": true,
"description": "A powerful AI assistant for producer.",
"main": "./out/main/index.js",
Expand Down
11 changes: 11 additions & 0 deletions scripts/afterAllArtifactBuild.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
const { execSync } = require('child_process')

exports.default = async function (context) {
const platform = context.electronPlatformName

if (platform === 'win32') {
return
}

execSync('cd node_modules/sqlite3 && npm run install && cd -')
}
13 changes: 13 additions & 0 deletions scripts/beforePack.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
const { Arch } = require('electron-builder')
const { execSync } = require('child_process')

exports.default = async function (context) {
const platform = context.electronPlatformName
let arch = context.arch === Arch.arm64 ? 'arm64' : 'x64'

if (platform === 'win32') {
return
}

execSync(`cd node_modules/sqlite3 && npm run install --arch=${arch} --platform=${platform} && cd -`)
}

0 comments on commit d35b466

Please sign in to comment.