Skip to content
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
23 commits
Select commit Hold shift + click to select a range
572e9da
Enable wayland support
kenvandine Apr 26, 2023
7c48347
chore: bump version to 5.4.0
jnsgruk Jun 20, 2023
64089f3
Merge pull request #75 from jnsgruk/5.4.0
kenvandine Jun 20, 2023
81d54fb
Add support for arm64 architecture in addition to amd64, as supported…
moon127 Jun 21, 2023
19c2cfc
make snapcraft remote-build happy
moon127 Jun 21, 2023
03b072f
Merge pull request #76 from moon127/master
lucyllewy Jun 21, 2023
b58752e
chore: bump version to 5.5.0
jnsgruk Sep 15, 2023
e80361a
Merge pull request #77 from jnsgruk/master
kenvandine Sep 17, 2023
b9dcfa5
chore: mattermost-desktop 5.5.0 -> 5.5.1 (#79)
jnsgruk Oct 3, 2023
b29c325
chore: remove cruft (#80)
popey Nov 6, 2023
9b53e49
ci: use latest snapcrafters actions (#81)
jnsgruk Nov 14, 2023
48ae2f2
Bump actions/github-script from 6 to 7 (#83)
dependabot[bot] Nov 14, 2023
a76dd19
Bump xt0rted/slash-command-action from 1 to 2 (#82)
dependabot[bot] Nov 14, 2023
0e7931d
Bump actions/checkout from 3 to 4 (#84)
dependabot[bot] Nov 14, 2023
347f3a5
remove arches (#85)
merlijn-sebrechts Nov 14, 2023
2517ae6
docs: update snapcraft.yaml to include more detailed metadata (#89)
jnsgruk Nov 15, 2023
58cd2ad
ci: port auto-screenshot and ci changes from signal-desktop (#91)
jnsgruk Nov 27, 2023
172626a
ci: use shared actions from snapcrafters/ci (#93)
jnsgruk Dec 2, 2023
0c3c389
chore: bump mattermost-desktop to version 5.6.0
snapcrafters-bot Dec 15, 2023
3d238ff
Enable wayland support
kenvandine Apr 26, 2023
5626d85
Added --disable-features=WaylandFractionalScaleV1 as noted by upstream
kenvandine Dec 15, 2023
7794fc1
Add launcher
kenvandine Dec 15, 2023
47d527a
Merge remote-tracking branch 'origin/enable-wayland' into enable-wayland
kenvandine Dec 15, 2023
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
29 changes: 0 additions & 29 deletions .build-trigger.txt

This file was deleted.

7 changes: 7 additions & 0 deletions .github/dependabot.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
version: 2
updates:
- package-ecosystem: "github-actions"
directory: "/"
schedule:
# Check for updates to GitHub Actions every month
interval: "monthly"
25 changes: 25 additions & 0 deletions .github/workflows/promote-to-stable.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@
name: Promote

on:
issue_comment:
types:
- created

permissions:
issues: write

jobs:
promote:
name: ⬆️ Promote to stable
environment: "Candidate Branch"
runs-on: ubuntu-latest
if: |
( !github.event.issue.pull_request )
&& contains(github.event.comment.body, '/promote ')
&& contains(github.event.*.labels.*.name, 'testing')
steps:
- name: ⬆️ Promote to stable
uses: snapcrafters/ci/promote-to-stable@main
with:
github-token: ${{ secrets.GITHUB_TOKEN }}
store-token: ${{ secrets.SNAP_STORE_STABLE }}
17 changes: 17 additions & 0 deletions .github/workflows/pull-request.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
name: Pull Request

on:
pull_request:
branches: [ "**" ]

concurrency:
group: ${{ github.workflow }}-${{ github.ref }}
cancel-in-progress: true

jobs:
build:
name: 🧪 Build snap on amd64
runs-on: ubuntu-latest
steps:
- name: 🧪 Build snap on amd64
uses: snapcrafters/ci/test-snap-build@main
71 changes: 71 additions & 0 deletions .github/workflows/release-to-candidate.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,71 @@
name: Release

on:
# Run the workflow each time new commits are pushed to the candidate branch.
push:
branches: [ "candidate" ]
workflow_dispatch:

concurrency:
group: ${{ github.workflow }}-${{ github.ref }}
cancel-in-progress: true

permissions:
contents: read
issues: write

jobs:
get-architectures:
name: 🖥 Get snap architectures
runs-on: ubuntu-latest
outputs:
architectures: ${{ steps.get-architectures.outputs.architectures }}
architectures-list: ${{ steps.get-architectures.outputs.architectures-list }}
steps:
- name: 🖥 Get snap architectures
id: get-architectures
uses: snapcrafters/ci/get-architectures@main

release:
name: 🚢 Release to latest/candidate
needs: get-architectures
runs-on: ubuntu-latest
environment: "Candidate Branch"
strategy:
matrix:
architecture: ${{ fromJSON(needs.get-architectures.outputs.architectures-list) }}
steps:
- name: 🚢 Release to latest/candidate
uses: snapcrafters/ci/release-to-candidate@main
with:
architecture: ${{ matrix.architecture }}
launchpad-token: ${{ secrets.LP_BUILD_SECRET }}
store-token: ${{ secrets.SNAP_STORE_CANDIDATE }}

call-for-testing:
name: 📣 Create call for testing
needs: [release, get-architectures]
environment: "Candidate Branch"
runs-on: ubuntu-latest
outputs:
issue-number: ${{ steps.issue.outputs.issue-number }}
steps:
- name: 📣 Create call for testing
id: issue
uses: snapcrafters/ci/call-for-testing@main
with:
architectures: ${{ needs.get-architectures.outputs.architectures }}
github-token: ${{ secrets.GITHUB_TOKEN }}

screenshots:
name: 📸 Gather screenshots
needs: call-for-testing
environment: "Candidate Branch"
runs-on: ubuntu-latest
steps:
- name: 📸 Gather screenshots
uses: snapcrafters/ci/get-screenshots@main
with:
issue-number: ${{ needs.call-for-testing.outputs.issue-number }}
github-token: ${{ secrets.GITHUB_TOKEN }}
screenshots-token: ${{ secrets.SNAPCRAFTERS_BOT_COMMIT }}
28 changes: 28 additions & 0 deletions .github/workflows/sync-version-with-upstream.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,28 @@
name: Update

on:
# Runs at 10:00 UTC every day
schedule:
- cron: '0 10 * * *'
# Allows you to run this workflow manually from the Actions tab
workflow_dispatch:

concurrency:
group: ${{ github.workflow }}-${{ github.ref }}
cancel-in-progress: true

jobs:
sync:
name: 🔄 Sync version with upstream
environment: "Candidate Branch"
runs-on: ubuntu-latest
steps:
- name: 🔄 Sync version with upstream
uses: snapcrafters/ci/sync-version@main
with:
token: ${{ secrets.SNAPCRAFTERS_BOT_COMMIT }}
update-script: |
VERSION=$(curl -sL https://api.github.com/repos/mattermost/desktop/releases |
jq . | grep tag_name | grep -v beta | grep -v rc | head -n 1 | cut -d'"' -f4 | tr -d 'v'
)
sed -i 's/^\(version: \).*$/\1'"$VERSION"'/' snap/snapcraft.yaml
25 changes: 0 additions & 25 deletions .github/workflows/test-snap-can-build.yml

This file was deleted.

33 changes: 0 additions & 33 deletions .travis.yml

This file was deleted.

7 changes: 7 additions & 0 deletions launcher/launcher
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
#!/bin/bash

if [[ ! -n "$DISABLE_WAYLAND" && -n "$WAYLAND_DISPLAY" ]]; then
WAYLAND_OPTS="--enable-features=UseOzonePlatform,WaylandWindowDecorations,WebRTCPipeWireCapturer --ozone-platform=wayland --disable-features=WaylandFractionalScaleV1"
fi

exec "$SNAP/opt/Mattermost/mattermost-desktop" --no-sandbox --disable-seccomp-filter-sandbox $WAYLAND_OPTS "$@"
Binary file removed mattermost-desktop.png
Binary file not shown.
Binary file added snap/gui/mattermost-desktop.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
35 changes: 26 additions & 9 deletions snap/snapcraft.yaml
Original file line number Diff line number Diff line change
@@ -1,31 +1,48 @@
name: mattermost-desktop
version: 5.3.1
title: Mattermost Desktop
license: MIT
version: 5.6.0
base: core22
summary: Open source, private cloud Slack-alternative
summary: A secure, flexible platform build for the new era of collaboration
description: |
Mattermost is secure workplace messaging from behind your firewall.

- Discuss topics in private groups, one-to-one or team-wide
- Easily share and view image files
- Connect in-house systems with webhooks and Slack-compatible integrations

For technical and operations teams who execute high-stakes, collaborative workflows,
Mattermost provides integrated team messaging, audio and screen share, workflow automation
and project management. Governments, banks and tech giants use our secure collaboration platform
to reduce risk and error rates while accelerating technical productivity.

To use this app, you need a URL for a Mattermost server.

This snap is maintained by the Snapcrafters community, and is not necessarily endorsed or
officially maintained by the upstream developers.
website: https://mattermost.com/
contact: https://github.com/snapcrafters/mattermost-desktop/issues
issues: https://github.com/snapcrafters/mattermost-desktop/issues
source-code: https://github.com//snapcrafters/mattermost-desktop
icon: snap/gui/mattermost-desktop.png

grade: stable
confinement: strict
compression: lzo

architectures:
- build-on: amd64
- amd64
- arm64

parts:
bsi-trigger: # A non-built part, only used to trigger builds in build.snapcraft.io on upstream changes
plugin: nil
source: https://github.com/mattermost/desktop.git

launcher:
plugin: dump
source: launcher
override-build: |
cp launcher $CRAFT_PART_INSTALL/
mattermost-desktop:
plugin: dump
source: https://releases.mattermost.com/desktop/$SNAPCRAFT_PROJECT_VERSION/mattermost-desktop_$SNAPCRAFT_PROJECT_VERSION-1_amd64.deb
source: https://releases.mattermost.com/desktop/$SNAPCRAFT_PROJECT_VERSION/mattermost-desktop_$SNAPCRAFT_PROJECT_VERSION-1_$SNAPCRAFT_TARGET_ARCH.deb
source-type: deb
build-packages: [wget, ca-certificates]
override-build: |
Expand Down Expand Up @@ -55,7 +72,7 @@ apps:
mattermost-desktop:
extensions: [gnome]
command-chain: [opt/Mattermost/fix-default-download-dir]
command: opt/Mattermost/mattermost-desktop --no-sandbox --disable-seccomp-filter-sandbox
command: launcher
desktop: usr/share/applications/mattermost-desktop.desktop
autostart: mattermost-desktop.desktop
environment:
Expand Down