diff --git a/.travis.yml b/.travis.yml index 3563c27..640e450 100644 --- a/.travis.yml +++ b/.travis.yml @@ -1,38 +1,38 @@ --- language: node_js node_js: - lts/* sudo: required services: - docker addons: apt: sources: - ubuntu-toolchain-r-test packages: - libstdc++-5-dev cache: directories: - /tmp/liftoff matrix: include: - env: DIST=loki - env: DIST=juno install: - npm install @elementaryos/houston script: - houston ci --distribution $DIST branches: only: - - master + - deb-packaging diff --git a/data/meson.build b/data/meson.build index 4d6bed6..1034f8e 100644 --- a/data/meson.build +++ b/data/meson.build @@ -1,17 +1,17 @@ icon_sizes = ['16', '24', '32', '48', '64', '128'] foreach i : icon_sizes install_data( join_paths('icons', i, meson.project_name() + '.png'), install_dir: join_paths(get_option('datadir'), 'icons', 'hicolor', i + 'x' + i, 'apps' ) ) endforeach install_data('icons/writeas-bright-dark.png', install_dir: join_paths(get_option('datadir'), 'icons', 'hicolor', '16x16', 'actions')) -install_data('com.github.writeas.writeas-gtk.desktop', +install_data('writeas-gtk.desktop', install_dir: join_paths(get_option('datadir'), 'applications')) -install_data('com.github.writeas.writeas-gtk.appdata.xml', +install_data('writeas-gtk.appdata.xml', install_dir: join_paths(get_option('datadir'), 'metainfo')) diff --git a/data/com.github.writeas.writeas-gtk.appdata.xml b/data/writeas-gtk.appdata.xml similarity index 98% rename from data/com.github.writeas.writeas-gtk.appdata.xml rename to data/writeas-gtk.appdata.xml index a53cd57..94636d9 100644 --- a/data/com.github.writeas.writeas-gtk.appdata.xml +++ b/data/writeas-gtk.appdata.xml @@ -1,96 +1,96 @@ - com.github.writeas.writeas-gtk + writeas-gtk 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 - com.github.writeas.writeas-gtk + writeas-gtk 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 none none none none none none

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.github.writeas.writeas-gtk.desktop b/data/writeas-gtk.desktop similarity index 100% rename from data/com.github.writeas.writeas-gtk.desktop rename to data/writeas-gtk.desktop diff --git a/debian/control b/debian/control index 6c37d07..8f620fd 100644 --- a/debian/control +++ b/debian/control @@ -1,16 +1,16 @@ -Source: com.github.writeas.writeas-gtk +Source: writeas-gtk Section: x11 Priority: extra Maintainer: Write.as Build-Depends: meson, debhelper (>= 9), libgtk-3-dev, libgtksourceview-3.0-dev, valac (>= 0.36) Standards-Version: 3.9.3 -Package: com.github.writeas.writeas-gtk +Package: writeas-gtk Architecture: any Depends: ${misc:Depends}, ${shlibs:Depends}, writeas-cli Recommends: fonts-lora, fonts-open-sans, fonts-hack Description: A distraction free and private writing tool, with built-in publishing. diff --git a/debian/copyright b/debian/copyright index 92fd4bc..936746e 100644 --- a/debian/copyright +++ b/debian/copyright @@ -1,25 +1,25 @@ Format: http://dep.debian.net/deps/dep5 -Upstream-Name: com.github.writeas.writeas-gtk +Upstream-Name: writeas-gtk Source: https://code.as/writeas/writeas-gtk/ Files: * Copyright: 2018 A Bunch Tell LLC License: GPL-3.0+ License: GPL-3.0+ This program is free software: you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation, either version 3 of the License, or (at your option) any later version. . This package is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details. . You should have received a copy of the GNU General Public License along with this program. If not, see . . On Debian systems, the complete text of the GNU General Public License version 3 can be found in "/usr/share/common-licenses/GPL-3". diff --git a/debian/rules b/debian/rules index 8847451..a7d9c96 100755 --- a/debian/rules +++ b/debian/rules @@ -1,31 +1,31 @@ #!/usr/bin/make -f # -*- makefile -*- # Sample debian/rules that uses debhelper. # This file was originally written by Joey Hess and Craig Small. # As a special exception, when this file is copied by dh-make into a # dh-make output file, you may use that output file without restriction. # This special exception was added by Craig Small in version 0.37 of dh-make. # This file was extended to incorporate a Meson/Ninja build system. # Uncomment this to turn on verbose mode. #export DH_VERBOSE=1 %: dh $@ override_dh_auto_clean: rm -rf debian/build override_dh_auto_configure: mkdir -p debian/build cd debian/build && meson --prefix=/usr ../.. override_dh_auto_build: cd debian/build && ninja -v override_dh_auto_test: cd debian/build && ninja test override_dh_auto_install: - cd debian/build && DESTDIR=${CURDIR}/debian/com.github.writeas.writeas-gtk ninja install + cd debian/build && DESTDIR=${CURDIR}/debian/writeas-gtk ninja install diff --git a/meson.build b/meson.build index 1a21e05..1ccd4b8 100644 --- a/meson.build +++ b/meson.build @@ -1,13 +1,13 @@ -project('com.github.writeas.writeas-gtk', ['vala', 'c'], +project('writeas-gtk', ['vala', 'c'], version: '1.0.0', license: 'GPL', meson_version: '>=0.40.1') i18n = import('i18n') conf = configuration_data() conf.set_quoted('GETTEXT_PACKAGE', meson.project_name()) configure_file(output: 'config.h', configuration: conf) config_h_dir = include_directories('.') subdir('data') subdir('src') diff --git a/src/application.vala b/src/application.vala index b5968ea..7ca83ef 100644 --- a/src/application.vala +++ b/src/application.vala @@ -1,40 +1,40 @@ /* Copyright © 2018 Write.as This file is part of the Write.as GTK desktop app. This program is free software: you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation, either version 3 of the License, or (at your option) any later version. This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details. You should have received a copy of the GNU General Public License along with this program. If not, see . */ public class WriteAs.Application : Gtk.Application { construct { this.flags |= ApplicationFlags.HANDLES_OPEN; Intl.setlocale(LocaleCategory.ALL, ""); Intl.textdomain("write.as"); - application_id = "com.github.writeas.writeas-gtk.desktop"; + application_id = "writeas-gtk.desktop"; } public override void activate() { if (get_windows().length() == 0) new WriteAs.MainWindow(this).show_all(); } public override void open(File[] files, string hint) { activate(); // ensure we have a window open. } public static int main(string[] args) { return new WriteAs.Application().run(args); } } diff --git a/src/meson.build b/src/meson.build index c035d76..6503a1e 100644 --- a/src/meson.build +++ b/src/meson.build @@ -1,9 +1,9 @@ -executable('com.github.writeas.writeas-gtk', +executable('writeas-gtk', 'application.vala', 'window.vala', c_args: ['-include', 'config.h'], link_args: '-lm', dependencies: [dependency('gtk+-3.0'), dependency('gtksourceview-3.0')], install: true )