diff --git a/data/com.abunchtell.WriteAsDesktop.appdata.xml.in b/data/com.abunchtell.WriteAsDesktop.appdata.xml.in index 7107478..d9a0081 100644 --- a/data/com.abunchtell.WriteAsDesktop.appdata.xml.in +++ b/data/com.abunchtell.WriteAsDesktop.appdata.xml.in @@ -1,114 +1,114 @@ @app_id@ GPL-3.0+ CC0 Write.as Publish a thought in seconds

Write.as is a simple writing tool and publishing platform. There's no sign up — just open the app, write something, and publish.

Published posts get a secret, unique link on Write.as that you can share with anyone, or keep to yourself. In either case, you remain private because we don't collect personal information about you.

Write.as https://write.as/ https://write.as/contact https://github.com/writeas/writeas-gtk/issues hello@write.as - @app_id@ + @exec@ The Write.as editor. https://write.as/img/screens/gtk/serif.png The Write.as editor in dark mode. https://write.as/img/screens/gtk/serif-dark.png https://write.as/img/screens/gtk/sans.png https://write.as/img/screens/gtk/monospace.png none none none none none none none none none none none none none none none none none none none none none moderate none none none none none

This update fixes a few minor visual issues.

  • Fix black bar that appears in the editor on elementary OS
  • Fix currently-selected font not reflected in menu when app first loads

GTK updates and fixes.

  • Fix fonts, padding, cursor color
  • Increase the default font size

Initial release

  • Auto-saving single draft
  • Dark mode on platforms that support it
  • Choose between three fonts
  • Save draft as another file
  • Publish anonymously to Write.as
25
diff --git a/data/com.abunchtell.WriteAsDesktop.desktop.in b/data/com.abunchtell.WriteAsDesktop.desktop.in index 0ec22b5..0ec54e7 100644 --- a/data/com.abunchtell.WriteAsDesktop.desktop.in +++ b/data/com.abunchtell.WriteAsDesktop.desktop.in @@ -1,12 +1,12 @@ [Desktop Entry] Type=Application Name=Write.as Comment=Publish a thought in seconds. -Exec=@app_id@ +Exec=@exec@ Icon=@app_id@ Terminal=false MimeType= Categories=GTK;Office;Publishing; Keywords=blog;text;editor;publish; StartupNotify=true diff --git a/data/meson.build b/data/meson.build index be9fec1..82d7659 100644 --- a/data/meson.build +++ b/data/meson.build @@ -1,24 +1,25 @@ icon_sizes = ['16', '24', '32', '48', '64', '128'] foreach i : icon_sizes install_data( join_paths('icons', i, 'com.abunchtell.WriteAsDesktop.png'), install_dir: join_paths(get_option('datadir'), 'icons', 'hicolor', i + 'x' + i, 'apps'), rename: '@0@.png'.format(app_id) ) endforeach data_conf = configuration_data() data_conf.set('app_id', app_id) +data_conf.set('exec', executable) configure_file( input: 'com.abunchtell.WriteAsDesktop.desktop.in', output: '@0@.desktop'.format(app_id), configuration: data_conf, install_dir: join_paths(get_option('datadir'), 'applications') ) configure_file( input: 'com.abunchtell.WriteAsDesktop.appdata.xml.in', output: '@0@.appdata.xml'.format(app_id), configuration: data_conf, install_dir: join_paths(get_option('datadir'), 'metainfo') ) diff --git a/meson.build b/meson.build index 6fd8d7c..c424f86 100644 --- a/meson.build +++ b/meson.build @@ -1,29 +1,32 @@ project('writeas-gtk', ['vala', 'c'], version: '1.0.2', license: 'GPL', meson_version: '>=0.48.0') i18n = import('i18n') build_platform = get_option('platform') if build_platform == 'elementary' app_id = 'com.github.writeas.writeas-gtk' + executable = 'com.github.writeas.writeas-gtk' else app_id = 'com.abunchtell.WriteAsDesktop' + executable = 'writeas-gtk' endif + conf = configuration_data() conf.set_quoted('GETTEXT_PACKAGE', app_id) conf.set_quoted('APP_ID', app_id) conf.set_quoted('BUILD_PLATFORM', build_platform) config_h = configure_file(output: 'config.h', configuration: conf) config_h_dir = include_directories('.') cli_build_script = find_program('meson/build-cli.sh') subdir('data') subdir('src') subdir('fonts/lora') meson.add_install_script('meson/post_install.py') diff --git a/src/meson.build b/src/meson.build index 0be3d9b..48de256 100644 --- a/src/meson.build +++ b/src/meson.build @@ -1,35 +1,29 @@ -if build_platform == 'elementary' - executable = 'com.github.writeas.writeas-gtk' -else - executable = 'writeas-gtk' -endif - if get_option('auto_build_cli') gb = find_program('gb') cli_target = custom_target('build-cli', build_by_default: true, output: 'writeas', install: true, install_dir: get_option('bindir'), console: true, command: [ cli_build_script, '@SOURCE_ROOT@', '@OUTPUT@', meson.build_root() ] ) endif executable(executable, 'application.vala', 'window.vala', 'Granite/Accels.vala', 'Granite/ModeSwitch.vala', c_args: ['-include', 'config.h'], link_args: '-lm', dependencies: [dependency('gtk+-3.0'), dependency('gtksourceview-3.0')], install: true )