Enable macOS arm64 build target (#2788)

This commit is contained in:
Felix Häusler 2021-12-25 17:32:52 +01:00 committed by GitHub
parent 8fee135abb
commit c6d4368988
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 22 additions and 19 deletions

View File

@ -159,8 +159,8 @@ function greeting () {
const cols = process.stdout.columns const cols = process.stdout.columns
let text = '' let text = ''
if (cols > 104) text = 'electron-vue' if (cols > 104) text = 'building marktext'
else if (cols > 76) text = 'electron-|vue' else if (cols > 76) text = 'building|marktext'
else text = false else text = false
if (text) { if (text) {
@ -169,7 +169,9 @@ function greeting () {
font: 'simple3d', font: 'simple3d',
space: false space: false
}) })
} else console.log(chalk.yellow.bold('\n electron-vue')) } else {
console.log(chalk.yellow.bold('\n building marktext'))
}
console.log(chalk.blue(' getting ready...') + '\n') console.log(chalk.blue(' getting ready...') + '\n')
} }

View File

@ -58,32 +58,33 @@ fileAssociations:
description: "Markdown document" description: "Markdown document"
role: "Editor" role: "Editor"
icon: "../resources/icons/md.icns" icon: "../resources/icons/md.icns"
dmg:
artifactName: "marktext.${ext}"
contents:
- x: 410
y: 150
type: "link"
path: "/Applications"
- x: 130
y: 150
type: "file"
mac: mac:
artifactName: "marktext-mac.${ext}" artifactName: "marktext-mac.${ext}"
icon: "resources/icons/icon.icns" icon: "resources/icons/icon.icns"
darkModeSupport: true darkModeSupport: true
target:
- target: dmg
arch: [x64, arm64]
- target: zip
arch: [x64, arm64]
dmg:
artifactName: "marktext.${ext}"
contents:
- x: 410
y: 240
type: "link"
path: "/Applications"
- x: 130
y: 240
type: "file"
win: win:
artifactName: "marktext-${arch}-win.${ext}" artifactName: "marktext-${arch}-win.${ext}"
icon: "resources/icons/icon.ico" icon: "resources/icons/icon.ico"
target: target:
- target: "nsis" - target: "nsis"
arch: arch: [ia32, x64]
- "ia32"
- "x64"
- target: "zip" - target: "zip"
arch: arch: [ia32, x64]
- "ia32"
- "x64"
requestedExecutionLevel: "asInvoker" requestedExecutionLevel: "asInvoker"
nsis: nsis:
artifactName: "marktext-setup.${ext}" artifactName: "marktext-setup.${ext}"