Skip to content

Commit cca7eee

Browse files
committed
重新整理打包
1 parent f144dab commit cca7eee

File tree

11 files changed

+97
-92
lines changed

11 files changed

+97
-92
lines changed

.github/workflows/build.yml

Lines changed: 20 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -94,8 +94,16 @@ jobs:
9494
with:
9595
tag_name: ${{ github.ref }}
9696
files: |
97-
./release/SeekChat-${{ needs.create_release.outputs.version }}-setup.exe
98-
./release/SeekChat-${{ needs.create_release.outputs.version }}.exe
97+
dist/*.exe
98+
dist/*.zip
99+
dist/*.dmg
100+
dist/*.AppImage
101+
dist/*.snap
102+
dist/*.deb
103+
dist/*.rpm
104+
dist/*.tar.gz
105+
dist/latest*.yml
106+
dist/*.blockmap
99107
env:
100108
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
101109

@@ -133,8 +141,15 @@ jobs:
133141
with:
134142
tag_name: ${{ github.ref }}
135143
files: |
136-
./release/seekchat_${{ needs.create_release.outputs.version }}_amd64.deb
137-
./release/seekchat-${{ needs.create_release.outputs.version }}.x86_64.rpm
138-
./release/SeekChat-${{ needs.create_release.outputs.version }}.AppImage
144+
dist/*.exe
145+
dist/*.zip
146+
dist/*.dmg
147+
dist/*.AppImage
148+
dist/*.snap
149+
dist/*.deb
150+
dist/*.rpm
151+
dist/*.tar.gz
152+
dist/latest*.yml
153+
dist/*.blockmap
139154
env:
140155
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}

.gitignore

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,5 @@
11
/node_modules
22
/dist
3-
/build
43
.DS_Store
54
.idea
65
.vscode

build/entitlements.mac.plist

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,18 @@
1+
<?xml version="1.0" encoding="UTF-8"?>
2+
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
3+
<plist version="1.0">
4+
<dict>
5+
<key>com.apple.security.cs.allow-jit</key>
6+
<true/>
7+
<key>com.apple.security.cs.allow-unsigned-executable-memory</key>
8+
<true/>
9+
<key>com.apple.security.cs.allow-dyld-environment-variables</key>
10+
<true/>
11+
<key>com.apple.security.files.user-selected.read-write</key>
12+
<true/>
13+
<key>com.apple.security.files.user-selected.read-only</key>
14+
<true/>
15+
<key>com.apple.security.cs.disable-library-validation</key>
16+
<true/>
17+
</dict>
18+
</plist>
File renamed without changes.

electron-builder.yml

Lines changed: 59 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,59 @@
1+
appId: com.seekrays.seekchat
2+
productName: SeekChat
3+
4+
directories:
5+
buildResources: build
6+
7+
files:
8+
- dist/**/*
9+
- build/**/*
10+
- node_modules/**/*
11+
- package.json
12+
- src/main/**/*
13+
- public/**/*
14+
- "!node_modules/**/*.{md,markdown,ts,map}"
15+
- "!**/*.{o,hprof,orig,pyc,pyo,rbc}"
16+
17+
asarUnpack:
18+
- public/assets/**
19+
- "**/*.{node,dll,metal,exp,lib}"
20+
win:
21+
executableName: SeekChat
22+
artifactName: ${productName}-${version}-portable.${ext}
23+
target:
24+
- target: nsis
25+
- target: portable
26+
nsis:
27+
artifactName: ${productName}-${version}-setup.${ext}
28+
shortcutName: ${productName}
29+
uninstallDisplayName: ${productName}
30+
createDesktopShortcut: always
31+
allowToChangeInstallationDirectory: true
32+
oneClick: false
33+
mac:
34+
entitlementsInherit: build/entitlements.mac.plist
35+
notarize: false
36+
artifactName: ${productName}-${version}-${arch}.${ext}
37+
extendInfo:
38+
- NSCameraUsageDescription: Application requests access to the device's camera.
39+
- NSMicrophoneUsageDescription: Application requests access to the device's microphone.
40+
- NSDocumentsFolderUsageDescription: Application requests access to the user's Documents folder.
41+
- NSDownloadsFolderUsageDescription: Application requests access to the user's Downloads folder.
42+
target:
43+
- target: dmg
44+
arch:
45+
- arm64
46+
- x64
47+
- target: zip
48+
arch:
49+
- arm64
50+
- x64
51+
linux:
52+
artifactName: ${productName}-${version}-${arch}.${ext}
53+
target:
54+
- target: AppImage
55+
arch:
56+
- arm64
57+
- x64
58+
maintainer: electronjs.org
59+
category: Utility

0 commit comments

Comments
 (0)