mirror of
https://github.com/Kuingsmile/PicList.git
synced 2025-01-22 22:28:14 -05:00
📦 Chore: mas build
This commit is contained in:
parent
ab03867dac
commit
e912568e5d
3
.github/workflows/mas.yml
vendored
3
.github/workflows/mas.yml
vendored
@ -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
1
.gitignore
vendored
@ -4,6 +4,7 @@ dist/web/*
|
||||
build/*
|
||||
!build/icons
|
||||
!build/installer.nsh
|
||||
!build/*.plist
|
||||
coverage
|
||||
node_modules/
|
||||
npm-debug.log
|
||||
|
10
build/entitlements.mas.inherit.plist
Normal file
10
build/entitlements.mas.inherit.plist
Normal 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>
|
8
build/entitlements.mas.loginhelper.plist
Normal file
8
build/entitlements.mas.loginhelper.plist
Normal 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>
|
28
build/entitlements.mas.plist
Normal file
28
build/entitlements.mas.plist
Normal 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>
|
@ -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',
|
||||
|
Loading…
Reference in New Issue
Block a user