mirror of
https://github.com/Kuingsmile/PicList.git
synced 2025-01-23 06:38:13 -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:
|
strategy:
|
||||||
fail-fast: false
|
fail-fast: false
|
||||||
matrix:
|
matrix:
|
||||||
os: [macos-11]
|
os: [ macos-11 ]
|
||||||
|
|
||||||
# create steps
|
# create steps
|
||||||
steps:
|
steps:
|
||||||
@ -52,6 +52,7 @@ jobs:
|
|||||||
run: |
|
run: |
|
||||||
yarn
|
yarn
|
||||||
yarn global add xvfb-maybe
|
yarn global add xvfb-maybe
|
||||||
|
npm rebuild --platform=darwin --arch=arm64 sharp
|
||||||
|
|
||||||
- name: Build & release app
|
- name: Build & release app
|
||||||
run: |
|
run: |
|
||||||
|
1
.gitignore
vendored
1
.gitignore
vendored
@ -4,6 +4,7 @@ dist/web/*
|
|||||||
build/*
|
build/*
|
||||||
!build/icons
|
!build/icons
|
||||||
!build/installer.nsh
|
!build/installer.nsh
|
||||||
|
!build/*.plist
|
||||||
coverage
|
coverage
|
||||||
node_modules/
|
node_modules/
|
||||||
npm-debug.log
|
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: {
|
mac: {
|
||||||
icon: 'build/icons/icon.icns',
|
icon: 'build/icons/icon.icns',
|
||||||
|
hardenedRuntime: true,
|
||||||
|
entitlements: 'build/entitlements.mas.plist',
|
||||||
|
entitlementsInherit: 'build/entitlements.mas.inherit.plist',
|
||||||
|
provisioningProfile: 'build/piclistmass.provisionprofile',
|
||||||
extendInfo: {
|
extendInfo: {
|
||||||
LSUIElement: 1
|
LSUIElement: 1
|
||||||
},
|
},
|
||||||
target: [{
|
target: [{
|
||||||
target: 'dmg',
|
target: 'mas',
|
||||||
arch: [
|
arch: [
|
||||||
'x64',
|
'universal'
|
||||||
'arm64'
|
|
||||||
]
|
]
|
||||||
}],
|
}],
|
||||||
// eslint-disable-next-line no-template-curly-in-string
|
// 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: {
|
win: {
|
||||||
icon: 'build/icons/icon.ico',
|
icon: 'build/icons/icon.ico',
|
||||||
|
Loading…
Reference in New Issue
Block a user