Commit graph

2522 commits

Author SHA1 Message Date
jprusch a0ec8140e1 Translated using Weblate (German)
Currently translated at 50.0% (116 of 232 strings)

Translation: mattermost-languages-shipped/mattermost-desktop
Translate-URL: https://translate.mattermost.com/projects/mattermost/mattermost-desktop/de/
2022-07-18 11:24:45 -04:00
Mattermod 0aaed86214
Update Licences at Notice.txt to reflect dependency changes. (#2200) 2022-07-18 09:19:30 -04:00
Devin Binnie d4c99c27c3
Fix mac nightly build (#2198)
* Update mmjstool

* REVERT ME

* Now try this

* Upgrade node properly

* More package fixes

* Re-revert
2022-07-15 12:21:48 -04:00
Devin Binnie 2618abe822
Fixed an issue with a permission modal translation (#2197)
* Fixed an issue with a permission modal translation

* oops
2022-07-15 09:26:48 -04:00
Devin Binnie 59e4e7e516
[MM-14058] Add support for i18n (#2190)
* Add language files

* Add react-intl, mmjstool, setup for adding translations

* Translated main module

* Translations for renderer

* A few minor fixes

* More fixes

* Add CI, add missing menu translations, other cleanup

* Added setting to manually select the language of the app

* Force English for E2e

* Unit tests

* Fix mmjstool

* Move set language to before update menu

* PR feedback
2022-07-14 11:04:18 -04:00
Tasos Boulis 22c97591d5
[MM-40233] Swap names for dark/light tray icons on Linux and Windows (#2180)
* Swap names for dark/light tray icons for linux and windows.

* Swap icon tray themes when system default is used

Co-authored-by: Mattermod <mattermod@users.noreply.github.com>
2022-07-06 09:47:09 -04:00
Devin Binnie ae1faeae2a
[MM-45519] Fix auto updater file patch script (#2189) 2022-07-05 13:10:59 -04:00
Tasos Boulis aa21179f8f
[MM-44931] Allow zoom in/out when Shift is pressed (#2178)
* Add hidden menuitems for zoomIn zoomOut with shift

* Add e2e tests for zoom in/out with shift

* Fix e2e tests

* Add missing async

* Fix lint errors

* Put tests inside describes

* Fix lint errors

* Update e2e/specs/menu_bar/view_menu.test.js

Co-authored-by: Devin Binnie <52460000+devinbinnie@users.noreply.github.com>

* Update e2e/specs/menu_bar/view_menu.test.js

Co-authored-by: Devin Binnie <52460000+devinbinnie@users.noreply.github.com>

Co-authored-by: Devin Binnie <52460000+devinbinnie@users.noreply.github.com>
2022-06-30 14:14:47 -04:00
Devin Binnie e674c5c28e
[MM-45409] Restrict auto-update functionality specifically to the NSIS installer and AppImage (#2177)
* [MM-45409] Restrict auto-update functionality specifically to the NSIS installer and AppImage

* Fixes

* Fix syntax error

* Fixes #2

* Switch PR builds to ZIP

* Fix
2022-06-30 12:25:28 -04:00
Devin Binnie 5b93e20ab8
[MM-40711] Upgrade to Electron v19.0.6 (#2176)
* [MM-40711] Upgrade to Electron v19.0.6

* Remove Linux 32bit builds
2022-06-30 09:59:13 -04:00
Devin Binnie c6cc870e19
[MM-44932] Fixed issue where deleting a server doesn't switch to another server (or show the new server modal) (#2174) 2022-06-28 08:00:25 -04:00
Devin Binnie 7440a73ca2
Fixes to E2E tests for v5.1.1 (#2169) 2022-06-22 12:43:24 -04:00
Devin Binnie 895d8bd077
Update to Electron 18.3.0 (#2167) 2022-06-22 12:01:29 -04:00
Devin Binnie 055c699c70
[MM-44071] Fixed an issue where the first certificate could not be selected (#2162) 2022-06-22 11:04:38 -04:00
Mattermod 79d64e3ddf
Update Licences at Notice.txt to reflect dependency changes. (#2161) 2022-06-20 09:50:18 -04:00
Devin Binnie 063f072e85
[MM-44466] Prevent dragging of title bar button images (#2156) 2022-06-20 09:48:03 -04:00
Devin Binnie fd8810382f
Fix MAS/TestFlight nightly build (#2151) 2022-06-15 19:02:08 -04:00
Devin Binnie 0c5b612489
[MM-45031] Don't use infinite background retry logic when the certificate is invalid (#2153) 2022-06-15 09:22:21 -04:00
Devin Binnie 537ed1dd0c
[MM-44644] Update configured server URL from SiteURL if available (#2152) 2022-06-14 12:30:24 -04:00
Devin Binnie 3d353d021b
[MM-44666] Set default window size to 1280x800 (#2154) 2022-06-14 10:20:04 -04:00
Mustafa Kara 1a179b0dc6
Create configuration folder for notice.txt generation (#2149)
Signed-off-by: Mustafa Kara <mustafa.kara@mattermost.com>
2022-06-14 10:15:40 +03:00
Devin Binnie b4a779a666
[MM-44607] Only cleanse subpath if it occurs at the beginning (#2129)
* [MM-44607] Only cleanse subpath if it occurs at the beginning

* Fix tests
2022-05-27 11:37:07 -04:00
Devin Binnie 42a53e31b5
[MM-44344] Restore zip build for Windows and remove auto-updater from it (#2132) 2022-05-27 09:32:27 -04:00
Devin Binnie 8979c18226
[MM-44339] Remove unnecessary calls to show the main window (#2134) 2022-05-27 09:27:51 -04:00
Devin Binnie 37fe523e8c
Fix issue with changing servers and tabs (#2126) 2022-05-26 14:17:44 -04:00
Devin Binnie 581e1fd2e0
Update to Electron v18.2.4 (#2119) 2022-05-24 10:25:57 -04:00
vas 4efac368d5
only refresh view when the server URL changes (MM-34565) (#2082) (#2094)
* only refresh view when the server URL changes (MM-34565)

Create views of current and incoming tabs indexed
by unique [URL, TABTYPE] tuples, and diffing them.
Tuples that are identical are recycled, merely
porting the new server name over.

* lint fixes

* WIP

* linting

* remove dependency on by, duad

* provide a more exaplanatory name for TabView.prototype.tuple (urlTypeTuple)

* minor improvements in viewManager

- remove stateful behaviour from makeView
- more descriptive variable names when looping
- create new arrays before sorting (sort is in-place by default)

* resolve linting errors
2022-05-20 11:06:43 -04:00
JtheBAB d74dba5bad
Update GPO to reflect right version (#2110)
* Update mattermost.adml

* Update mattermost.admx
2022-05-19 08:42:32 +02:00
Eli Young 9aca802258
Fix GitHub release asset upload (#2114)
ghr only looks at immediate descendents of the path it is provided, so
we need to ensure that ghr-dist/ is flattened.
2022-05-18 14:34:34 -04:00
vas aeda1dfdcc
automatically add protocol to Server URL (#2083) (#2106)
* automatically add protocol to Server URL (#2083)

* refactor NewTeamModal to only detect protocol on save

* use window.postMessage for intercom + only ping on form save
2022-05-17 09:41:56 -04:00
Devin Binnie 2e740d60bd
[MM-44161] Show both validation messages when adding new server if both fields are invalid (#2104) 2022-05-12 12:04:51 -04:00
Devin Binnie fcf0be0a38
Broke a test (#2101) 2022-05-11 10:16:50 -04:00
Devin Binnie 99873c6669
[MM-44117] Fix stack overflow where window resize would constantly emit the restore event (#2099)
* Fix stack overflow where window resize would constantly call the restore function

* Use browserWindow.once
2022-05-11 10:08:43 -04:00
vas 8dd7d3dcc5
fix version flags displaying bad version on linux (#1422) (#2089)
yargs, the command line parsing library, was unable to read the app's version automatically from package.json
fix by passing the app's version as electron sees it
2022-05-10 15:52:33 -04:00
Devin Binnie 4ebaebfd17
[MM-44066] Truncate server names in the system tray to 50 characters (#2096) 2022-05-10 10:46:08 -04:00
Devin Binnie 9d3c1327b9
Turn off updates for DEB and TGZ distributions (#2093) 2022-05-10 09:36:55 -04:00
Devin Binnie 1414bbaedf
[MM-44023] Remove Settings window flash, change wording on Settings page (#2088) 2022-05-09 10:45:01 -04:00
Devin Binnie ebf5897f99
[MM-44022] Switch to using current BrowserView for determining window bounds for URL view (#2087) 2022-05-09 10:26:54 -04:00
Devin Binnie d1ca1188b4
[MM-43601] Switch upgrade button to an actual button and moved onClick event (#2080) 2022-04-26 09:17:01 -04:00
Devin Binnie 14ceaf677c
Fix release markdown (#2075)
* Fix release markdown

* Oops

* Fix build_mac_pr
2022-04-25 17:19:34 -04:00
Devin Binnie 82024caf0d
[MM-30272] Update to electron builder v23.0.8 (#2073) 2022-04-25 17:18:59 -04:00
Devin Binnie 90576570e2
[MM-43632] Ensure handleURLView is called when removing the target URL (#2074) 2022-04-25 17:18:23 -04:00
Devin Binnie 9b3d37e953
MAS: remove default download location (#2070) 2022-04-25 09:37:43 -04:00
Mustafa Kara 78b4bbf357
Create makefile and pipeline to generate signed debian packages. (#2068)
* Integrate GitLab Pipeline to Build Signed Packages

Signed-off-by: Mustafa Kara <mkara@pinchflat.dev>

* Fix Ci Pipeline Location

Signed-off-by: Mustafa Kara <mkara@pinchflat.dev>

* Implement gitlabci and Makefile to build linux packages

Signed-off-by: Mustafa Kara <mkara@pinchflat.dev>

* Improve makefile and pipeline to support customizable package action

Signed-off-by: Mustafa Kara <mkara@pinchflat.dev>

* Fix variable definition

Signed-off-by: Mustafa Kara <mkara@pinchflat.dev>

* Fix variable definition

Signed-off-by: Mustafa Kara <mkara@pinchflat.dev>

* Fix makefile formatting

Signed-off-by: Mustafa Kara <mkara@pinchflat.dev>

* Fix SSH key problem

Signed-off-by: Mustafa Kara <mkara@pinchflat.dev>

* Fix extended echo

Signed-off-by: Mustafa Kara <mkara@pinchflat.dev>

* Fix makefile for ssh keys issue

Signed-off-by: Mustafa Kara <mkara@pinchflat.dev>

* Parameterize sign artifacts

Signed-off-by: Mustafa Kara <mkara@pinchflat.dev>

* Change artifact directory

Signed-off-by: Mustafa Kara <mkara@pinchflat.dev>

* Fix package make command

Signed-off-by: Mustafa Kara <mkara@pinchflat.dev>

* Add Sign step to pipeline

Signed-off-by: Mustafa Kara <mkara@pinchflat.dev>

* Fix pipeline code for version

Signed-off-by: Mustafa Kara <mkara@pinchflat.dev>

* Fix makefile for version

Signed-off-by: Mustafa Kara <mkara@pinchflat.dev>

* Fix pipeline code

Signed-off-by: Mustafa Kara <mkara@pinchflat.dev>

* Fix Makefile for fast package-linux action

Signed-off-by: Mustafa Kara <mkara@pinchflat.dev>

* Fix Makefile for version

Signed-off-by: Mustafa Kara <mkara@pinchflat.dev>

* Create Sign Action

Signed-off-by: Mustafa Kara <mkara@pinchflat.dev>

* Move dependency installations to container

Signed-off-by: Mustafa Kara <mkara@pinchflat.dev>

* Add jq dependency check

Signed-off-by: Mustafa Kara <mkara@pinchflat.dev>

* Implement sign debian artifacts step

Signed-off-by: Mustafa Kara <mkara@pinchflat.dev>

* Fix Makefile spacing

Signed-off-by: Mustafa Kara <mkara@pinchflat.dev>

* Fix Makefile spacing

Signed-off-by: Mustafa Kara <mkara@pinchflat.dev>

* FIx artifacts for debian only

Signed-off-by: Mustafa Kara <mkara@pinchflat.dev>

* Fix artifacts directory

Signed-off-by: Mustafa Kara <mkara@pinchflat.dev>

* Implement signing via Makefile way

Signed-off-by: Mustafa Kara <mkara@pinchflat.dev>

* Modify Makefile for aptly packaging

Signed-off-by: Mustafa Kara <mkara@pinchflat.dev>

* Fix pipeline for aptly

Signed-off-by: Mustafa Kara <mkara@pinchflat.dev>

* Fix foreach loop in Makefile

Signed-off-by: Mustafa Kara <mkara@pinchflat.dev>

* Fix repo gpg key

Signed-off-by: Mustafa Kara <mkara@pinchflat.dev>

* Fix Repo Public Key issue

Signed-off-by: Mustafa Kara <mkara@pinchflat.dev>

* Get PGP key with wget

Signed-off-by: Mustafa Kara <mkara@pinchflat.dev>

* Change gpg implementation

Signed-off-by: Mustafa Kara <mkara@pinchflat.dev>

* Configure aptly

Signed-off-by: Mustafa Kara <mkara@pinchflat.dev>

* Fix missing release variable

Signed-off-by: Mustafa Kara <mkara@pinchflat.dev>

* Fix Frozen Makefile

Signed-off-by: Mustafa Kara <mkara@pinchflat.dev>

* Publish packages to apt repository

Signed-off-by: Mustafa Kara <mkara@pinchflat.dev>

* Configure variables for pipeline

Signed-off-by: Mustafa Kara <mkara@pinchflat.dev>

* Configure Package Linux Job

Signed-off-by: Mustafa Kara <mkara@pinchflat.dev>

* Fix Pipeline Code

Signed-off-by: Mustafa Kara <mkara@pinchflat.dev>

* Create rules for pipeline

Signed-off-by: Mustafa Kara <mkara@pinchflat.dev>

* COnfigure nightly branch

Signed-off-by: Mustafa Kara <mkara@pinchflat.dev>

* FIx broken branch name

Signed-off-by: Mustafa Kara <mkara@pinchflat.dev>

* Improve makefile to use build type variable

Signed-off-by: Mustafa Kara <mkara@pinchflat.dev>

* Fix nightly branch

Signed-off-by: Mustafa Kara <mkara@pinchflat.dev>

* Fix makefile

Signed-off-by: Mustafa Kara <mkara@pinchflat.dev>

* Fix Makefile

Signed-off-by: Mustafa Kara <mkara@pinchflat.dev>

* Install JQ

Signed-off-by: Mustafa Kara <mkara@pinchflat.dev>

* Remove need of version dedection

Signed-off-by: Mustafa Kara <mkara@pinchflat.dev>

* Fix sign operation

Signed-off-by: Mustafa Kara <mkara@pinchflat.dev>

* Create files to prepare signed artifacts

Signed-off-by: Mustafa Kara <mkara@pinchflat.dev>

* Create gitlab pipeline to use for desktop builds

Signed-off-by: Mustafa Kara <mkara@pinchflat.dev>

* Remove aptly conf

Signed-off-by: Mustafa Kara <mkara@pinchflat.dev>

* Sort makefile commands

Signed-off-by: Mustafa Kara <mkara@pinchflat.dev>
2022-04-21 09:41:50 -04:00
Devin Binnie 073fef83ae
Fix version numbers (#2064) 2022-04-19 20:18:04 -04:00
Devin Binnie c47da0de29
Fix download folder for MAS (#2063) 2022-04-19 20:16:58 -04:00
Amy Blais 7ec0b270cf
Update NOTICE.txt (#2060)
* Update NOTICE.txt

* Update NOTICE.txt
2022-04-19 15:24:16 -04:00
Devin Binnie e4bdb08a5d
Fixes to the release script (#2059) 2022-04-19 12:12:09 -04:00
Devin Binnie 0c369c4f3a
Add MAS to release pipeline (#2058) 2022-04-19 10:34:40 -04:00
Devin Binnie b240d446d8
Fix issue where opening a new view causes the original view still to push (#2053)
* Fix issue where opening a new view causes the original view still to push

* Test fix
2022-04-19 10:29:19 -04:00