Skip to content

Commit

Permalink
feat:ee.yaml增加before_pack
Browse files Browse the repository at this point in the history
  • Loading branch information
luoluoTH committed Jul 8, 2024
1 parent ca2493c commit d6d1e63
Showing 1 changed file with 15 additions and 15 deletions.
30 changes: 15 additions & 15 deletions multibuilder/electron-builder-ee.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,8 @@ extraFiles:
- "!*.db"
- from: "LICENSE.md"
to: "LICENSE.md"
- from: "report/template.zip"
to: "report/template.zip"

directories:
buildResources: resources
Expand All @@ -42,13 +44,11 @@ publish:

mac:
artifactName: ${productName}-${version}-darwin-${arch}.${ext}
extraFiles:
- from: "bins/flag.darwin.txt"
to: "bins/flag.darwin.txt"
- from: "bins/yak_darwin_amd64.zip"
to: "bins/yak.zip"
- from: "report/template.zip"
to: "report/template.zip"
# extraFiles:
# - from: "bins/flag.darwin.txt"
# to: "bins/flag.darwin.txt"
# - from: "bins/yak_darwin_amd64.zip"
# to: "bins/yak.zip"
target:
- target: dmg
arch:
Expand All @@ -57,18 +57,17 @@ mac:
icon: "app/assets/yakiteelogo.icns"

linux:
artifactName: ${productName}-${version}-linux-amd64.${ext}
extraFiles:
- from: "bins/flag.linux.txt"
to: "bins/flag.linux.txt"
- from: "bins/yak_linux_amd64.zip"
to: "bins/yak.zip"
- from: "report/template.zip"
to: "report/template.zip"
# artifactName: ${productName}-${version}-linux-amd64.${ext}
# extraFiles:
# - from: "bins/flag.linux.txt"
# to: "bins/flag.linux.txt"
# - from: "bins/yak_linux_amd64.zip"
# to: "bins/yak.zip"
target:
- target: AppImage
arch:
- x64
- arm64
icon: "app/assets/yakiteelogo.icns"

win:
Expand Down Expand Up @@ -101,6 +100,7 @@ nsis:
createDesktopShortcut: false
createStartMenuShortcut: true

beforePack: "buildHooks/before_pack.js"
#publish:
# - provider: generic
# url: https://update.electron-builder.com
Expand Down

0 comments on commit d6d1e63

Please sign in to comment.