-
-
Notifications
You must be signed in to change notification settings - Fork 38
Expand file tree
/
Copy pathsnapcraft.yaml
More file actions
91 lines (85 loc) · 2.53 KB
/
snapcraft.yaml
File metadata and controls
91 lines (85 loc) · 2.53 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
name: markpad
title: Markpad
adopt-info: markpad
icon: src-tauri/icons/128x128.png
summary: The Notepad equivalent for Markdown
description: |
A lightweight, minimalist Markdown viewer and text editor built for productivity across Windows, macOS, and Linux.
Features:
- Tabbed interface
- Monaco editor
- Split view
- Syntax highlighting both in editor and code blocks
- Math equation support (KaTeX)
- Mermaid diagram support
- Vim mode
- Auto-reload
- Zen mode
- Custom typography and font settings
- Content zooming
- Image and YouTube embeds
- Familiar GitHub styled markdown rendering
- Tiny memory usage (~10MB)
- No telemetry or bloat
- Free and open-source
- Lightweight native UI
license: BSD-3-Clause
website: https://markpad.sftwr.dev
donation: https://github.com/sponsors/alecdotdev
source-code: https://github.com/alecdotdev/Markpad
issues: https://github.com/alecdotdev/Markpad/issues
confinement: strict
base: core24
grade: stable
apps:
markpad:
command: bin/markpad
desktop: usr/share/applications/markpad.desktop
extensions: [gnome]
plugs:
- network
- network-bind
- wayland
- home
parts:
markpad:
plugin: rust
source: .
build-packages:
- libwebkit2gtk-4.1-dev
- build-essential
- curl
- wget
- file
- libssl-dev
- libgtk-3-dev
- libappindicator3-dev
- librsvg2-dev
stage-packages:
- libwebkit2gtk-4.1-0
- libsoup-3.0-0
- libjavascriptcoregtk-4.1-0
build-snaps:
- node/20/stable
override-build: |
set -e
craftctl set version="$(node -p "require('./package.json').version")"
npm install
export CARGO_BUILD_JOBS=2
npx tauri build --no-bundle
# The binary is built in src-tauri/target/release/
install -D -m755 src-tauri/target/release/Markpad $CRAFT_PART_INSTALL/bin/markpad
# Install the icon
install -D -m644 src-tauri/icons/128x128.png $CRAFT_PART_INSTALL/usr/share/icons/hicolor/128x128/apps/markpad.png
install -D -m644 src-tauri/icons/32x32.png $CRAFT_PART_INSTALL/usr/share/icons/hicolor/32x32/apps/markpad.png
# Install the desktop file
cat << EOF > markpad.desktop
[Desktop Entry]
Name=Markpad
Exec=markpad
Icon=markpad
Type=Application
Categories=Utility;TextEditor;
MimeType=text/markdown;text/plain;
EOF
install -D -m644 markpad.desktop $CRAFT_PART_INSTALL/usr/share/applications/markpad.desktop