Add Linux support (#6)

* Add linux AppImage build target
* Add ubuntu to Github Actions build matrix
* Show help text on how to open Menu, on Linux
This commit is contained in:
Jonatan Heyman 2023-12-21 19:18:04 +01:00 committed by GitHub
parent 41795c14ea
commit 49d3e5cd7d
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
3 changed files with 17 additions and 5 deletions

View File

@ -11,8 +11,8 @@ jobs:
strategy:
matrix:
#os: [macos-latest, ubuntu-latest, windows-latest]
os: [macos-latest, windows-latest]
os: [macos-latest, ubuntu-latest, windows-latest]
#os: [macos-latest, windows-latest]
steps:
- name: Check out Git repository

View File

@ -46,5 +46,17 @@
"perMachine": false,
"allowToChangeInstallationDirectory": true,
"deleteAppDataOnUninstall": false
},
linux: {
synopsis: "A dedicated scratchpad for developers",
category: "Utility",
},
appImage: {
artifactName: "${productName}_${version}_${arch}.${ext}",
},
snap: {
artifactName: "${productName}_${version}_${arch}.${ext}",
publish: ["github"],
}
}

View File

@ -1,8 +1,8 @@
import { isMac, isWindows } from "./detect-platform.js"
import { isLinux, isMac, isWindows } from "./detect-platform.js"
const modChar = isMac ? "⌘" : "Ctrl"
const altChar = isMac ? "⌥" : "Alt "
const windowsShowMenu = isWindows ? `\n${altChar} Show menu` : ""
const showMenuHelp = (isWindows || isLinux) ? `\n${altChar} Show menu` : ""
export const initialContent = `
text
@ -15,7 +15,7 @@ ${modChar} + Down Goto next block
${modChar} + Up Goto previous block
${modChar} + A Select all text in a note block. Press again to select the whole buffer
${modChar} + + Up/Down Add additional cursor above/below
${altChar} + Shift + F Format block content (works for JSON, JavaScript, HTML, CSS and Markdown)${windowsShowMenu}
${altChar} + Shift + F Format block content (works for JSON, JavaScript, HTML, CSS and Markdown)${showMenuHelp}
math
This is a Math block. Here, rows are evaluated as math expressions.