Skip to content

Commit

Permalink
优化打包
Browse files Browse the repository at this point in the history
  • Loading branch information
houdunwang committed Aug 5, 2023
1 parent d0880ba commit 5ba2913
Show file tree
Hide file tree
Showing 7 changed files with 21 additions and 22 deletions.
Binary file modified .DS_Store
Binary file not shown.
6 changes: 2 additions & 4 deletions build/entitlements.mac.plist
Original file line number Diff line number Diff line change
Expand Up @@ -2,12 +2,10 @@
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
<plist version="1.0">
<dict>
<key>com.apple.security.app-sandbox</key>
<true/>
<key>com.apple.security.application-groups</key>
<string>F7B54AYZ85.com.houdunren.flipClock</string>
<key>com.apple.security.cs.allow-jit</key>
<true/>
<key>com.apple.security.device.camera</key>
<true/>
<key>com.apple.security.cs.allow-unsigned-executable-memory</key>
<true/>
<key>com.apple.security.cs.allow-dyld-environment-variables</key>
Expand Down
16 changes: 9 additions & 7 deletions build/entitlements.mas.plist
Original file line number Diff line number Diff line change
Expand Up @@ -2,18 +2,20 @@
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
<plist version="1.0">
<dict>
<key>com.apple.security.application-groups</key>
<string>F7B54AYZ85.com.houdunren.camera</string>
<key>com.apple.security.cs.allow-unsigned-executable-memory</key>
<true/>
<key>com.apple.security.app-sandbox</key>
<true/>
<key>com.apple.security.application-groups</key>
<array>
<string>F7B54AYZ85.com.houdunren.flipClock</string>
</array>
<key>com.apple.security.network.client</key>
<true/>
<key>com.apple.security.network.server</key>
<true/>
<key>com.apple.security.files.user-selected.read-write</key>
<key>com.apple.security.device.camera</key>
<true/>
<!-- <key>com.apple.security.network.server</key>
<true/> -->
<!-- <key>com.apple.security.files.user-selected.read-write</key>
<true/> -->
<key>com.apple.security.cs.allow-jit</key>
<true/>
<key>com.apple.security.cs.allow-dyld-environment-variables</key>
Expand Down
Binary file modified build/icon.icns
Binary file not shown.
Binary file modified build/icon.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
19 changes: 9 additions & 10 deletions electron-builder.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,9 +7,10 @@ files:
- '!src/*'
- '!electron.vite.config.{js,ts,mjs,cjs}'
- '!{.eslintignore,.eslintrc.cjs,.prettierignore,.prettierrc.yaml,dev-app-update.yml,CHANGELOG.md,README.md}'
- '!{.env,.env.*,.npmrc,pnpm-lock.yaml}'
- '!{tsconfig.json,tsconfig.node.json,tsconfig.web.json}'
asarUnpack:
- resources/*
- resources/**
afterSign: build/notarize.js
win:
executableName: houdunren-camera
Expand All @@ -19,11 +20,12 @@ nsis:
uninstallDisplayName: ${productName}
createDesktopShortcut: always
mac:
# 最低系统版本,下面指生成arm,因为最低版本是12
minimumSystemVersion: 12
entitlementsInherit: build/entitlements.mac.plist
# 图标,看后盾人文档库 electron 章节有介绍生成方法
icon: build/icon.icns
target: ['mas', 'pkg', 'dmg']
# 最低系统版本,下面指生成arm,因为最低版本是12
minimumSystemVersion: 12
extendInfo:
- NSCameraUsageDescription: Application requests access to the device's camera.
- NSMicrophoneUsageDescription: Application requests access to the device's microphone.
Expand All @@ -38,6 +40,7 @@ mas:
provisioningProfile: build/camera.provisionprofile
dmg:
artifactName: ${name}-${version}.${ext}
sign: false
linux:
target:
- AppImage
Expand All @@ -48,10 +51,6 @@ linux:
appImage:
artifactName: ${name}-${version}.${ext}
npmRebuild: false
# publish:
# provider: generic
# url: https://github.com/houdunwang/camera
# publish:
# provider: github
# releaseType: release
# url: https://github.com/houdunwang/camera
publish:
provider: generic
url: https://example.com/auto-updates
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "houdunren-camera",
"version": "1.0.54",
"version": "1.0.57",
"description": "方便好用的桌面摄像头软件,适合直播、录课、内容分享时使用",
"main": "./out/main/index.js",
"author": "向军大叔",
Expand Down

0 comments on commit 5ba2913

Please sign in to comment.