📦 Chore: mas build

This commit is contained in:
萌萌哒赫萝 2023-03-09 17:30:46 +08:00
parent ab03867dac
commit e912568e5d
6 changed files with 65 additions and 5 deletions

View File

@ -26,7 +26,7 @@ jobs:
strategy:
fail-fast: false
matrix:
os: [macos-11]
os: [ macos-11 ]
# create steps
steps:
@ -52,6 +52,7 @@ jobs:
run: |
yarn
yarn global add xvfb-maybe
npm rebuild --platform=darwin --arch=arm64 sharp
- name: Build & release app
run: |

1
.gitignore vendored
View File

@ -4,6 +4,7 @@ dist/web/*
build/*
!build/icons
!build/installer.nsh
!build/*.plist
coverage
node_modules/
npm-debug.log

View File

@ -0,0 +1,10 @@
<?xml version="1.0" encoding="UTF-8"?>
<!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.inherit</key>
<true/>
</dict>
</plist>

View File

@ -0,0 +1,8 @@
<?xml version="1.0" encoding="UTF-8"?>
<!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/>
</dict>
</plist>

View File

@ -0,0 +1,28 @@
<?xml version="1.0" encoding="UTF-8"?>
<!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.cs.allow-jit</key>
<true/>
<key>com.apple.security.application-groups</key>
<array>
<string>GDW4YTJP22.com.kuingsmile.piclist</string>
</array>
<key>com.apple.security.files.user-selected.read-write</key>
<true/>
<key>com.apple.security.files.bookmarks.app-scope</key>
<true/>
<key>com.apple.security.network.client</key>
<true/>
<key>com.apple.security.print</key>
<true/>
<key>com.apple.security.device.camera</key>
<true/>
<key>com.apple.security.device.microphone</key>
<true/>
<key>com.apple.security.device.usb</key>
<true/>
</dict>
</plist>

View File

@ -67,18 +67,30 @@ const config = {
},
mac: {
icon: 'build/icons/icon.icns',
hardenedRuntime: true,
entitlements: 'build/entitlements.mas.plist',
entitlementsInherit: 'build/entitlements.mas.inherit.plist',
provisioningProfile: 'build/piclistmass.provisionprofile',
extendInfo: {
LSUIElement: 1
},
target: [{
target: 'dmg',
target: 'mas',
arch: [
'x64',
'arm64'
'universal'
]
}],
// eslint-disable-next-line no-template-curly-in-string
artifactName: 'PicList-${version}-${arch}.dmg'
artifactName: 'PicList-${version}-${arch}.${ext}'
},
mas: {
type: 'distribution',
icon: 'build/icons/icon.icns',
hardenedRuntime: true,
entitlements: 'build/entitlements.mas.plist',
entitlementsInherit: 'build/entitlements.mas.inherit.plist',
provisioningProfile: 'build/piclistmass.provisionprofile',
entitlementsLoginHelper: "build/entitlements.mas.loginhelper.plist"
},
win: {
icon: 'build/icons/icon.ico',