When a custom Mattermost desktop app is worth building
A security or IT team often wants employees to land on the organization's own Mattermost server the first time they open the desktop app, with a fixed set of options and no way to point the client somewhere else. A custom Mattermost desktop app is the way to get that behavior on managed Windows and macOS machines. It is a fork of the open source Mattermost Desktop client, and the main place its behavior is set is buildConfig.ts. That file controls which default server the app opens, whether users can add or remove servers, which help links appear, and which managed resources the app may load from the same origin. Signing and packaging are part of the same build, so the work runs inside your own build and code signing pipeline, with your keys and your release process.
Before you commit to a fork, decide whether the built-in settings already meet the requirement. If the goal is only a default server, a short list of trusted servers, and branded help links, you may not need to maintain a fork at all, and a managed deployment of the stock client may be enough. A fork becomes worth its cost when the client must be locked to one server, when server management must be removed from the interface, or when your release has to match your own signing and distribution rules. Each of those choices adds a build you own from then on, including the work of rebasing it onto each new upstream release.
Ask who will own the build before the first commit. The fork needs a named maintainer, a repeatable build on your signing infrastructure, a test matrix for Windows and macOS, and a plan for how fixes from upstream are merged. Confirm with your platform team which Mattermost Desktop release line you will track and how often you will rebuild. Also confirm how the desktop app relates to your Mattermost server version and plan, because some administration features depend on the server and not on the client. Those answers determine whether the effort stays small or becomes an ongoing product.
What buildConfig.ts can preconfigure in Mattermost Desktop
The buildConfig.ts file sets the defaults a custom Mattermost Desktop build starts with, from the server users connect to to the identity the app is signed under. Each setting changes what end users see, so confirm each one against the desktop source for the version you fork before you rely on it.
Locked default server
A build can point the app at your Mattermost server on first launch so users do not type a URL. Users see your server listed as the starting point when they open the app. Confirm in the current desktop source which field carries the default server URL, whether users can still add or remove other servers, and how the setting behaves on upgrade when a user already has a server list saved from an earlier install. Test with a clean profile and with an existing one.
Disabling server management
Server management controls whether users can add, edit or remove server entries in the app. Turning it off is the setting that keeps users on your server, but its effect depends on the desktop version. Confirm the exact configuration key in the source, what the settings menu shows afterward, and whether a link or deep link can still open another server. Record the result for each supported platform, because menu behavior can differ between Windows, macOS and Linux builds.
Help links
Help links let you replace the default help and support destinations in the app menus with your own service desk or internal documentation. End users will see your URLs in the menu, so confirm each key in the source and check that every link opens a page reachable from managed devices. Remove any link that points to a public Mattermost page your users should not be sent to, and review the list again after each fork update.
Managed resources on the same origin
Managed resources are the pages and assets the app loads from your server, such as the web view content and allowed origins. Keeping them on the same origin as the server limits which hosts the app trusts. Confirm the allowed-origin settings in the desktop source, then test that login, file previews and embedded content load without widening the list to third-party hosts. Any origin you add becomes trusted by every installed copy of the build.
App identity for signing
The app name, bundle identifier, icons and publisher details become the identity your signed installers carry. Users and endpoint tools use this identity to recognize the app, so a mismatch with your code signing certificate can block installation or upgrades. Confirm which identity fields the build reads, keep them consistent with the certificate and update channel you use, and keep a record of the identifiers so later builds stay on the same upgrade path.
Configuration choices and when each fits
This table compares the four main buildConfig.ts choices for a custom Mattermost Desktop app: server locking, server management, help links and managed resource hosting. Read each row as a trade-off between user flexibility, support load and security exposure, then pick the setting that matches your policy before you build.
| Choice | Option A | Option B | When to choose |
|---|---|---|---|
| Default server | Single locked server with server management disabled | Server list with one or more preset servers | Locked suits a single corporate workspace and keeps support simple. A list suits organizations with several workspaces, such as subsidiaries or partner channels. |
| Adding servers | Disable server management so users cannot add servers | Allow users to add servers they are given URLs for | Disabling reduces the chance of staff connecting to an unapproved or personal server. Allowing it increases flexibility but adds login issues and more exposure to unvetted hosts. |
| Help and support links | Default Mattermost help links | Custom links to your internal help desk and policies | Custom links send users to your own support path, which lowers ticket noise. Each link must be maintained, and stale links generate their own support requests. |
| Managed resources origin | Same-origin resources served from your Mattermost server | External hosts for assets or plugin resources | Same-origin keeps content within your existing access controls and certificates. External hosts add a dependency, widen the set of trusted domains and need separate review. |
| Maintenance burden | Few custom settings, stock behavior kept | Many overrides to defaults and branding | Fewer overrides are easier to carry across Mattermost Desktop releases. Each override is a change to retest when you rebase the fork. |
| Code signing | Signing with your own certificates | Unsigned or test builds for pilots only | Signed builds are what endpoint controls and users can verify. Confirm certificate and notarization requirements for each operating system with your own signing setup. |
How to set up a buildConfig.ts build from fork to signed installer
This sequence turns the open source Mattermost desktop source into signed installers that open your Mattermost server and no other. Each step ends with a check you can record, so security and platform teams review the same evidence before anyone distributes the build.
Fork and pin the desktop source
Your engineering team forks the open source Mattermost desktop repository into your own source control and checks out the release tag that matches the server version you run or plan to run. Pinning the tag keeps every later change a visible diff against a known baseline. Confirm the tag with your server team before you start. The step is done when the unmodified fork builds on your build machine.
Set the locked default server
Edit
buildConfig.tsso the default server list contains only your Mattermost URL. Use the HTTPS address users reach, and confirm that DNS and the TLS certificate resolve correctly for every audience, including staff on the corporate network and remote users. Check the result by launching the build, confirming that your server appears on first run, and confirming that the first-run screen offers no other server.Disable server management and set help links
Turn off the settings that let users add, edit or remove servers, and replace the default help and support links with your own service desk addresses. Your security team should review the full settings file, because one leftover default can reopen server selection. Confirm the exact setting names in the tagged source before editing. The check is a test build where the settings and server menus show no add, edit or remove controls.
Point managed resources at the same origin
Set the managed resources the app loads so they are served from the same origin as your Mattermost server. This keeps content loading and certificate trust consistent with the server your security team approved. Confirm the setting names and the content security policy behavior in the tagged source. The check is network monitoring of a test build, showing requests only to your server origin and any hosts you have explicitly approved.
Build each target platform
Run the build for each platform your fleet uses, such as Windows, macOS and Linux, following the build environment documented for the tagged release. Build each platform on its own operating system family so toolchains match what users will run. Record the version, the commit containing
buildConfig.ts, and a hash of each artifact. The check is confirming that one commit produced every installer.Sign and notarize each installer
Sign each installer with your organization's code signing certificate. For macOS, submit the signed app for notarization so Gatekeeper accepts it on managed machines. Keep signing keys in a hardware security module or managed signing service, outside the fork repository, and restrict who can trigger signing. The check is verifying each signature with the platform tools and confirming that the notarization ticket is attached before distribution.
Test with a clean profile
Install each signed build on a machine with no previous Mattermost profile, the way a new user would. Test first run, sign-in through your identity provider, the server lock, the disabled server management controls, the replaced links, and whether the app refuses to connect to unapproved hosts. Record each result on a written test sheet, and repeat the full test after every change to the configuration.
How the build fits with the Mattermost server and its releases
The desktop client is only useful against a server it can reach and trust, so the build has to be planned around the Mattermost server version your organization runs. Mattermost releases a new server version in binary form on the 16th of each month, and the current Extended Support Release is v11.7, released on 2026-05-15 with support ending 2027-05-15. Between those dates, monthly releases such as v11.11 (released 2026-09-16, support ending 2026-12-15) and v12.0 (released 2026-10-16, support ending 2027-01-15) move on a shorter clock. Decide early which track your server follows, because your preconfigured desktop build should be tested against that exact version, not against whatever the latest release happens to be.
Retesting the build is the step teams most often skip. A buildConfig.ts change can alter how the app handles the server URL, login flow, help links and resources served from the same origin, and any of these can break when the server moves to a new release. Set up a test matrix that covers the server version in production, the next version you plan to adopt and, for a monthly track, the release you are about to promote. Each time you rebuild the desktop app, rerun sign-in, server switching (or confirm it is locked), and a check that managed resources still load. Record the server version and desktop build number together so a support request can be traced to both.
Licensing applies to the code you change. Mattermost licenses compiled binaries under the MIT license, but the source code for custom builds is under AGPL v3.0, with a commercial alternative available from Mattermost, Inc. If your desktop build modifies that source and you distribute it to employees or others, confirm with your legal team which obligations apply, including whether the modified source must be made available. Ask Mattermost, Inc. whether a commercial license is needed for your distribution model. Keep a written record of which files you changed, so the license review and each future upgrade start from a known set of modifications.
Security and signing considerations for a custom desktop build
A custom Mattermost Desktop build carries your organization's trust decisions: which server users connect to, which code runs on their machines, and which signature tells Windows and macOS the software is genuine. The cards below cover the controls that keep those decisions intact and the checks to run in your own environment before any build reaches users.
Protect signing certificates and build secrets
Code signing certificates and any notarization or store credentials let anyone who holds them ship software that appears to come from your organization. Keep them in a hardware-backed store or a managed secrets service, limit access to the release pipeline, and separate signing from general build jobs. Verify who can trigger a signed build and whether that access is logged and reviewed.
Confirm the lock cannot be edited away
Settings in buildConfig.ts are compiled into the application, but users with administrator rights on their machines may still find local configuration files or preference stores. Test whether a standard user or an administrator can change the default server or re-enable server management by editing files on disk. Run that test on each supported operating system and record the result before release.
Control same-origin resources
Managed resources served from the same origin as your Mattermost server, such as custom help pages or assets, run with the same trust as the server itself. Host them on infrastructure your organization operates, restrict who can publish to that location, and review each URL in the build configuration. Confirm that no external origin is referenced by the shipped configuration unless security has approved it.
Verify the build pipeline's provenance
A signed binary proves only that the signer approved it, not that the source matches what was reviewed. Pin the fork to a tagged commit, keep dependency lockfiles under review, and store build logs with the artifact hash. Check that each published installer can be traced to a specific commit and build run in your records.
Plan for upstream updates
Every upstream Mattermost Desktop release may change configuration keys, security defaults or dependencies that your fork inherits. Assign an owner for merging upstream changes, retest the locked configuration after each merge, and set a rule for how quickly security fixes ship to users. Ask who owns the fork's security patch timeline and how that owner learns about upstream advisories.
Mattermost GitHub repositoryReview the license obligations
Mattermost's source for custom builds is licensed under AGPL v3.0, and admin tools and configuration files fall under Apache 2.0. Distributing a modified build can trigger source availability obligations, so legal review should happen before publication. Ask counsel to confirm which license terms apply to each component you ship and what source you must make available.
Mattermost license textQuestions buyers ask before building a custom desktop app
What does a custom Mattermost desktop app build cost?
Cost depends mainly on the written scope, because the work is a set of configuration changes, build pipeline setup, signing and testing rather than a new product. The main cost drivers are the number of platforms you distribute to (Windows, macOS and Linux each add packaging and testing), how many settings you lock in buildConfig.ts, whether you need custom help links and managed resources, and how much of the signing and release pipeline must be built from scratch. Ongoing cost comes from rebuilding and retesting each time you move to a newer Mattermost Desktop version. DeployOpen does not publish prices, so ask for a quote tied to a written scope that lists platforms, settings, pipeline work and retest expectations.
How long does a first custom desktop build take?
The first build takes longer than later releases because it includes choosing the source version, setting up the build environment, configuring buildConfig.ts, validating locked servers and policies, and proving that signed installers install and update correctly. Duration grows with the number of target platforms, the complexity of managed resources served from the same origin, and how many people must approve the result. Your internal approval cycle and the availability of a test server often set the pace more than the build itself. Ask for a timeline in the written scope with milestones for each platform and for the signed test release.
What does ongoing maintenance of a custom desktop app involve?
Maintenance is recurring work because each new Mattermost Desktop release, and each server release your users connect to, can change behavior that your configuration relies on. Expect to rebuild the app from the upstream source, reapply your buildConfig.ts settings, retest server selection and locked options, re-sign the installers, and check that update channels still point to your builds. The frequency follows your upgrade policy. Server releases arrive monthly, and Extended Support Releases are published on a longer cycle, so align desktop rebuilds with the server versions you run. Ask whether the quote includes retesting for each rebuild and who owns the upgrade calendar.
What must our internal team provide for a custom desktop build?
Your team supplies the controlled inputs that a build partner cannot own for you: build machines or CI runners that meet your security standards, code signing certificates issued through your certificate process, a test Mattermost server that matches the production version and identity setup, and named approvers for branding, help links and locked server addresses. You also need a place to host the signed installers and the update feed, and access to the accounts that publish to your software distribution channels. Confirm early which of these already exist, because missing signing or test infrastructure is a common source of delay.
Can our own engineers build a custom Mattermost desktop app in-house?
Yes, if your team has engineers comfortable with the Mattermost Desktop codebase, the build toolchain for each target operating system, and platform code signing. The in-house path is most practical when you already maintain desktop applications and can staff ongoing rebuilds. The risks are mostly operational: signing keys held without clear custody, configuration drift between releases, and no one assigned to test each upstream version before users receive it. A useful test is whether you can name an owner for each rebuild, a reviewer for each locked setting, and a documented rollback if a signed build fails. DeployOpen can plan and implement the build with your team handing over the runbook.
What does a fixed-scope custom desktop engagement cover?
A fixed-scope engagement covers the work listed in a written statement agreed before the build starts. For this topic, that typically means the target platforms, the buildConfig.ts settings to lock (default servers, server management, help links), the handling of managed resources on the same origin, the code signing setup, test evidence, and the handover documentation. Deliverables and timelines are agreed in writing, and changes to scope are priced through a documented change request. Anything outside the list, such as mobile apps, server hardening or ongoing retainer support, needs its own scope. Ask for the deliverables list and the acceptance criteria before you sign.
Which security checks should a custom desktop build pass before rollout?
Before rollout, check that locked default servers cannot be changed by users, that server management is disabled as intended, that help links point only to resources you approve, and that managed resources load only from the origin you expect. Verify that installers are signed with your certificate and that the signature validates on each platform. Confirm that the build pipeline restricts who can change buildConfig.ts and who can publish artifacts, and that signing keys are stored under your key management controls. A short review with your security team, plus a test on a clean machine, gives evidence you can file with your change records.
How the custom desktop build flows from source to users
The flow starts with a fork of the open-source Mattermost Desktop repository, where the buildConfig.ts file sets the default server, locked options and help links. The forked source then moves into platform builds, and signing happens inside a boundary that holds the signing keys and never leaves your build environment. Installers are distributed through internal channels to employee devices, which connect only to your self-hosted Mattermost server. Check that the signing keys stay inside the boundary, that the server address in the config matches the internal endpoint, and that every build is traceable to a reviewed commit.
Custom desktop build path from forked source to employee devices.
Where to read the authoritative Mattermost details
Start with the Mattermost GitHub repository for the desktop source code, because every buildConfig.ts key you plan to set lives in the tagged source you fork, not in this page or in any summary. Clone the exact release tag that matches the desktop version you intend to ship, then read the configuration file and its surrounding code in that tag. Keys can be added, renamed or removed between versions, so a value that worked on one tag can silently do nothing on another. Record the tag name and commit hash in your build documentation so an auditor or a future engineer can reproduce the exact configuration you signed off on. The repository is also the place to watch for issues and release notes that mention configuration changes before you adopt a newer tag.
For the terms that apply to your build, read the project's LICENSE.txt file, which the Mattermost repository publishes at the root of the source tree. The licensing split matters for a custom desktop app: the license file states how different parts of the project are licensed, and your legal or procurement team should confirm which terms govern the desktop client you distribute, including any obligations that follow from modifying and redistributing it. Do not rely on a secondary summary for this. Ask legal to review the file at the tag you fork, and ask whether a commercial alternative from Mattermost, Inc. would change the obligations for your organization.
For version support dates, use the Mattermost server releases page. It lists server release dates and end-of-support dates, including which releases are Extended Support Releases. Support dates belong to the server, so check them against the Mattermost server version your desktop app connects to, and plan your desktop release cycle around the server upgrade calendar rather than the desktop tag alone. Before you lock a build, confirm with Mattermost which server versions your chosen desktop tag supports and note any gap. Every key in buildConfig.ts should be confirmed against the tag you fork before the build is signed, and the confirmation should be repeated whenever you move to a new tag.

