mirror of
https://github.com/marktext/marktext.git
synced 2025-05-03 00:01:19 +08:00
Enable macOS arm64 build target (#2788)
This commit is contained in:
parent
8fee135abb
commit
c6d4368988
@ -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')
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -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}"
|
||||||
|
Loading…
Reference in New Issue
Block a user