Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

CI: Add flatpak builds #30

Open
wants to merge 24 commits into
base: master
Choose a base branch
from
Open

CI: Add flatpak builds #30

wants to merge 24 commits into from

Commits on Aug 1, 2019

  1. Rename App ID to fit within freedesktop guidelines

    Previously the app used "writeas-gtk" as the app id. This was invalid
    according to freedesktop specifications.
    
    See https://www.freedesktop.org/software/appstream/docs/chap-Metadata.html#tag-id-generic
    for details on what an App ID should be.
    BrainBlasted committed Aug 1, 2019
    Configuration menu
    Copy the full SHA
    520eed9 View commit details
    Browse the repository at this point in the history
  2. flatpak: Create flatpak manifest

    Creates a flatpak manifest to build the app.
    Does not yet build the writeas-cli.
    
    Related to T663
    BrainBlasted committed Aug 1, 2019
    Configuration menu
    Copy the full SHA
    2df7d61 View commit details
    Browse the repository at this point in the history
  3. gitignore: Add common build directories from flatpak

    These are the directories flatpak can create while building
    an app. Since they should not be committed, they belong
    in the gitignore.
    BrainBlasted committed Aug 1, 2019
    Configuration menu
    Copy the full SHA
    aced5b5 View commit details
    Browse the repository at this point in the history
  4. build: Rework cli script setup for flatpak

    Flatpak doesn't support running extra commands, so we need
    to make the cli build it's own target. This is made optional
    since the cli doesn't always need to be shipped with the app.
    
    Related to T663
    BrainBlasted committed Aug 1, 2019
    Configuration menu
    Copy the full SHA
    de4ed79 View commit details
    Browse the repository at this point in the history
  5. build: Properly set executable name in all files

    This was missed during the consolidation of repositiories.
    Since the app has different executable names for the
    different builds, the app_id cannot be used as the "exec"
    line unconditionally.
    BrainBlasted committed Aug 1, 2019
    Configuration menu
    Copy the full SHA
    a70938b View commit details
    Browse the repository at this point in the history
  6. debian: Remove "build" run_target usage

    This run_target no longer exists.
    BrainBlasted committed Aug 1, 2019
    Configuration menu
    Copy the full SHA
    ed85486 View commit details
    Browse the repository at this point in the history

Commits on Aug 2, 2019

  1. flatpak: Add clipboard tooling

    Fixes publishing and copies the post link to the clipboard.
    BrainBlasted committed Aug 2, 2019
    Configuration menu
    Copy the full SHA
    2a7cbea View commit details
    Browse the repository at this point in the history
  2. flatpak: Add sandbox hole for ~/.writeas

    Allows for flatpak users to have persistent drafts,
    and for the bundled cli to access them.
    BrainBlasted committed Aug 2, 2019
    Configuration menu
    Copy the full SHA
    98125f9 View commit details
    Browse the repository at this point in the history
  3. window: Use FileChooserNative instead of FileChooserDialog

    Required for saving to work within flatpaks. Does not affect
    non-flatpak usage.
    
    Related to T663
    BrainBlasted committed Aug 2, 2019
    Configuration menu
    Copy the full SHA
    1199c3a View commit details
    Browse the repository at this point in the history

Commits on Aug 9, 2019

  1. flatpak: Ensure read-write access to .writeas dir

    Needed to make sure we can create, read, and write to this
    directory.
    BrainBlasted committed Aug 9, 2019
    Configuration menu
    Copy the full SHA
    3cee7bb View commit details
    Browse the repository at this point in the history
  2. CI: Add flatpak build stage

    Sets ups build stage for flatpak builds.
    
    For T678
    BrainBlasted committed Aug 9, 2019
    Configuration menu
    Copy the full SHA
    9f72716 View commit details
    Browse the repository at this point in the history
  3. CI: Use C as programming language

    Travis defaults to Ruby if a language is not specified,
    which results in a build failure.
    
    For T678
    BrainBlasted committed Aug 9, 2019
    Configuration menu
    Copy the full SHA
    dfb6a75 View commit details
    Browse the repository at this point in the history
  4. CI: Add docker service

    Docker is required for the flatpak build.
    
    For T678
    BrainBlasted committed Aug 9, 2019
    Configuration menu
    Copy the full SHA
    0fa62f1 View commit details
    Browse the repository at this point in the history
  5. CI: Use build matrix for multiple jobs

    Based on the tips from travis-ci/travis-ci#2646
    
    For T678
    BrainBlasted committed Aug 9, 2019
    Configuration menu
    Copy the full SHA
    9ccec0a View commit details
    Browse the repository at this point in the history
  6. CI: Set toplevel language to C

    This ensures that Travis doesn't think we're using Ruby.
    
    For T678
    BrainBlasted committed Aug 9, 2019
    Configuration menu
    Copy the full SHA
    f87e302 View commit details
    Browse the repository at this point in the history
  7. CI: list directory contents before building

    Ensure that the flatpak directories exist.
    
    For T678
    BrainBlasted committed Aug 9, 2019
    Configuration menu
    Copy the full SHA
    73b8d67 View commit details
    Browse the repository at this point in the history
  8. CI: Bind repo directory

    Ensures that the docker container will be able to access the
    repository on the host.
    
    For T678
    BrainBlasted committed Aug 9, 2019
    Configuration menu
    Copy the full SHA
    313fa1f View commit details
    Browse the repository at this point in the history
  9. CI: Disable email notifications for whole process

    Carries over the original configuration.
    
    For T678
    BrainBlasted committed Aug 9, 2019
    Configuration menu
    Copy the full SHA
    f82fca5 View commit details
    Browse the repository at this point in the history
  10. CI: Use absolute path to writeas dir

    Required to specify a host directory.
    
    For T678
    BrainBlasted committed Aug 9, 2019
    Configuration menu
    Copy the full SHA
    4aea447 View commit details
    Browse the repository at this point in the history
  11. CI: Make sure fusermount is executable

    fusermount not being executable can cause build failures
    for flatpak builds.
    
    For T678
    BrainBlasted committed Aug 9, 2019
    Configuration menu
    Copy the full SHA
    e043493 View commit details
    Browse the repository at this point in the history
  12. CI: Run docker as priviledged

    Needed for Fuse to work for flatpak.
    
    For T678
    BrainBlasted committed Aug 9, 2019
    Configuration menu
    Copy the full SHA
    479e687 View commit details
    Browse the repository at this point in the history
  13. CI: fix docker typo

    Incorrectly spelled a flag.
    
    For T678
    BrainBlasted committed Aug 9, 2019
    Configuration menu
    Copy the full SHA
    40214b8 View commit details
    Browse the repository at this point in the history
  14. CI: Manually build writeas-gtk flatpak module

    This ensures that the CI is building from the current PR
    instead of git master.
    
    For T678
    BrainBlasted committed Aug 9, 2019
    Configuration menu
    Copy the full SHA
    3229853 View commit details
    Browse the repository at this point in the history
  15. CI: Use MANIFEST_PATH env variable

    flatpak-builder needs the path to the manifest.
    To avoid duplication we use an env variable.
    
    For T678
    BrainBlasted committed Aug 9, 2019
    Configuration menu
    Copy the full SHA
    ce92eed View commit details
    Browse the repository at this point in the history