Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
17 changes: 17 additions & 0 deletions data/fonts/meson.build
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
#
# FONTS
#

# CAREFUL HERE: In the flatpak, the apps cant find it
target_font_dir = get_option('datadir') / 'fonts'

install_data(
'RedactedScript-Regular.ttf',
install_dir: target_font_dir,
)

# You want to call fc-cache on install unless DESTDIR is set;
# distro packages (and flatpak) rebuild the fontconfig cache themselves in bulk, and they set DESTDIR when running meson install
#fontconfig = find_program('fc-cache', required: true)
#meson.add_install_script(fontconfig, target_font_dir)

4 changes: 3 additions & 1 deletion data/icons/meson.build
Original file line number Diff line number Diff line change
@@ -1,4 +1,6 @@

#
# ICONS
#

# Override only default
if development_build and variant == 'default'
Expand Down
9 changes: 9 additions & 0 deletions data/meson.build
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
#
# METADATA
#

#========================
# GRESOURCE
Expand Down Expand Up @@ -43,6 +46,12 @@ if not windows_build
# ICONS
subdir('icons')


#========================
# FONTS
subdir('fonts')


#========================
# DESKTOP
# Inject some variables into the desktop file before merging in the translations
Expand Down
15 changes: 2 additions & 13 deletions io.github.ellie_commons.jorts.flathub.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,10 +8,10 @@ sdk: org.gnome.Sdk
command: io.github.ellie_commons.jorts

finish-args:
- '--socket=wayland'
- '--socket=fallback-x11'
- '--share=ipc'
- '--device=dri'
- '--socket=fallback-x11'
- '--socket=wayland'

cleanup:
- /include
Expand All @@ -25,17 +25,6 @@ cleanup-commands:
- /app/cleanup-BaseApp.sh

modules:
# Needed for the Scribbly mode
# It should be present by default on elementary OS, but better not assume it is the case
- name: RedactedScript
buildsystem: simple
build-commands:
- install -Dm0644 RedactedScript-Regular.ttf -t ${FLATPAK_DEST}/share/fonts
sources:
- type: file
url: https://github.com/christiannaths/redacted-font/raw/63e542017bab347ba9be54d7d99b99d4754c3d97/RedactedScript/fonts/ttf/RedactedScript-Regular.ttf
sha256: 1ebaab9642a2f43fa33f449760469903143fd1d08b2433eb6c15e28602d9360d

- name: jorts
buildsystem: meson
config-opts:
Expand Down
15 changes: 2 additions & 13 deletions io.github.elly_code.jorts.devel.yml
Original file line number Diff line number Diff line change
Expand Up @@ -14,23 +14,12 @@ tags: ['devel']
desktop-file-name-suffix: ' (Development)'

finish-args:
- '--socket=wayland'
- '--socket=fallback-x11'
- '--share=ipc'
- '--device=dri'
- '--socket=fallback-x11'
- '--socket=wayland'

modules:
# Needed for the Scribbly mode
# It should be present by default on elementary OS, but better not assume it is the case
- name: RedactedScript
buildsystem: simple
build-commands:
- install -Dm0644 RedactedScript-Regular.ttf -t ${FLATPAK_DEST}/share/fonts
sources:
- type: file
url: https://github.com/christiannaths/redacted-font/raw/63e542017bab347ba9be54d7d99b99d4754c3d97/RedactedScript/fonts/ttf/RedactedScript-Regular.ttf
sha256: 1ebaab9642a2f43fa33f449760469903143fd1d08b2433eb6c15e28602d9360d

- name: jorts
buildsystem: meson
config-opts:
Expand Down
15 changes: 2 additions & 13 deletions io.github.elly_code.jorts.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,10 +5,10 @@ sdk: io.elementary.Sdk
command: io.github.elly_code.jorts

finish-args:
- '--socket=wayland'
- '--socket=fallback-x11'
- '--share=ipc'
- '--device=dri'
- '--socket=fallback-x11'
- '--socket=wayland'

cleanup:
- /include
Expand All @@ -18,17 +18,6 @@ cleanup:
- /share/vala

modules:
# Needed for the Scribbly mode
# It should be present by default on elementary OS, but better not assume it is the case
- name: RedactedScript
buildsystem: simple
build-commands:
- install -Dm0644 RedactedScript-Regular.ttf -t ${FLATPAK_DEST}/share/fonts
sources:
- type: file
url: https://github.com/christiannaths/redacted-font/raw/63e542017bab347ba9be54d7d99b99d4754c3d97/RedactedScript/fonts/ttf/RedactedScript-Regular.ttf
sha256: 1ebaab9642a2f43fa33f449760469903143fd1d08b2433eb6c15e28602d9360d

- name: jorts
buildsystem: meson
config-opts:
Expand Down
Loading