Skip to content

Commit

Permalink
update
Browse files Browse the repository at this point in the history
  • Loading branch information
storyxc committed Jun 19, 2023
1 parent 0eae998 commit 1b9bf2d
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 7 deletions.
3 changes: 2 additions & 1 deletion .github/workflows/mac.yml
Original file line number Diff line number Diff line change
Expand Up @@ -33,4 +33,5 @@ jobs:
with:
node-version: ${{ matrix.node-version }}
- run: npm install
- run: npm run build
- run: npm run build:arm
- run: npm run build:x86
10 changes: 4 additions & 6 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,9 @@
"scripts": {
"dev": "vite",
"build": "vue-tsc && vite build && electron-builder",
"preview": "vite preview"
"preview": "vite preview",
"build:arm": "vue-tsc && vite build && electron-builder -m --arm64 -p always -c.artifactName='${productName}-${version}-mac-arm64.${ext}'",
"build:x86": "vue-tsc && vite build && electron-builder -m -p always -c.artifactName='${productName}-${version}-mac-x86.${ext}'"
},
"dependencies": {
"element-plus": "^2.3.6",
Expand Down Expand Up @@ -52,11 +54,7 @@
},
"target": [
{
"target": "dmg",
"arch": [
"arm64",
"x64"
]
"target": "dmg"
}
]
}
Expand Down

0 comments on commit 1b9bf2d

Please sign in to comment.