Commit graph

76 commits

Author SHA1 Message Date
Devin Binnie 83b6c64cf3
Fix macos-notification-state build issue (#2310)
* Fix macos-notification-state build issue

* Fix windows build, a bit of cleanup
2022-10-24 10:43:45 -04:00
Devin Binnie be13c231b6
[MM-47463] Fix build issues (#2277)
* Try updating to 5.0.0

* Try turning off nvm

* Switch to newer Go image
2022-10-12 08:50:41 -04:00
Devin Binnie f58a4b1826
[MM-46533] Remove buildConfig item and add webpack flags for onboarding screens and GPU acceleration (#2241)
* [MM-46533] Remove buildConfig item and add webpack flags for onboarding screens and GPU acceleration

* REVERT ME

* Use contexts instead

* Revert "REVERT ME"

This reverts commit 1e75779623f1c5eb2ce3a64e0c39cd4a8cf7ada7.
2022-08-25 10:58:06 -04:00
Devin Binnie 16dccd373e
Remove buildConfig patch (#2238) 2022-08-24 10:31:09 -04:00
Julian Mondragón 8f8407c16a
MM-46445_Add a way to bypass Desktop App onboarding to buildConfig (#2232) 2022-08-23 11:19:41 -04:00
Devin Binnie 93b6eb4f9b
Fix node-gyp build on Windows (#2233)
* ONE MORE TIME

* I cant type

* try this

* I think I actually did it!
2022-08-22 15:50:26 -04:00
Devin Binnie 1e35a97f33
[MM-36326][MM-45669] Added Native Node Module support - incl demo to fix DND issue (#2195)
* [MM-36326] Added Native Node Module support - incl demo to fix DND issue

* Fix OS per build

* Fix to include priority alarms on Windows

* Update node command

* Fixes for mac (only work on non-MAS build)

* Attempt to rebuild properly since electron-builder is having issues with a module

* Show me more logs maybe idk

* Try with ignore-scripts

* Force async to work asyncly

* PR feedback and ESLint fixes

* Add comment for node-gyp

* Revert me: test msi and mac installer

* Revert me too

* Try reverting back to the old system cause the new one miraculously broke...

* Add ignore scripts to makefile

* Ignore non-macho files :P

* Revert "Revert me too"

This reverts commit 074dc9551a2d8ce34a23a3abaeed937d957e8b76.

* Revert "Revert me: test msi and mac installer"

This reverts commit 0ac998c26a824e7136bdfdc825280a407bb1aa7f.
2022-08-02 11:33:48 -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 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
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
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
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 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 61de4dfb7b
Fix a typo in the nightly build (#2040) 2022-04-06 09:16:10 -04:00
Devin Binnie 2427e9eaa0
Fix daily upload for Rainforest builds (#2035) 2022-04-05 17:19:59 -04:00
Devin Binnie 0a7be91576
[MM-42538] Submit nightly builds to TestFlight for macOS (#2023)
* Initial MAS build, working on TestFlight

* Migration of old configs to MAS

* Ignore fastlane files

* Add mac app store build to nightly build

* Revert Me - For testing in PR

* Don't need to install fastlane

* BIG D

* Fix patch updater script to allow for no yml

* Nevermind, do this instead

* Update xcode

* Let's try a fake version that works

* Revert version and rename for test flight

* Use Xcode 13.0.0

* Use CircleCI build number when available

* Revert testing changes

* Remove notarize for MAS

* Change vars to MACOS instead of IOS

* Revert electron-builder to v22

* Revert package-lock.json

Co-authored-by: Mattermod <mattermod@users.noreply.github.com>
2022-03-28 11:06:00 -04:00
Carrie Warner (Mattermost) 90202f1fbe
MM-41988 Updated links to legacy domain about.mm.com (#2003)
* Updated links to legacy domain about.mm.com

* Updated links to legacy domain about.mm.com

* Update README.md

* Legacy domain URL updates (#2012)

* Update .github/ISSUE_TEMPLATE/troubleshooting-question.md

Co-authored-by: Harrison Healey <harrisonmhealey@gmail.com>

Co-authored-by: Harrison Healey <harrisonmhealey@gmail.com>
2022-03-10 16:40:06 -05:00
Devin Binnie 2a88821484
CircleCI fix (#2017)
* Fix branches for CircleCI

* Remove nightly
2022-03-10 15:57:38 -05:00
Devin Binnie 5f4774e22e
Changes for MSI build for autoupdater (#2016) 2022-03-10 15:47:45 -05:00
Devin Binnie 7a629fb221
Update nightly job (#2015) 2022-03-10 12:58:25 -05:00
Guillermo Vayá d2435a561c
[MM-18552] Autoupdater (#1714)
* wip

* background download

* various fixes

* wip

* wokring autoupgrade

* fix menu

* fix windows

* cleanup

* add publishername

* fix messages and titles

* Test updates

* Moved module and added functionality to click icon to install (instead of just download)

* Add auto update setting, update on close app if downloaded

* Tests, changes for security fixes, update version number

* Update E2E tests

* Lint fix

* Update to latest electron-updater

* Revert to stable electron-builder (only needed to update electron-updater)

* Fix package-lock

* skip flaky test

* Update package

* Fix E2E test

* Fixes for enabling/disabled autoupdater

* Fixed GPO definitions

* [MM-38300] Set localhost as the test server

* blank

* Switch to s3 bucket for testing

* Update icons to match spec

* Add menu items for download/update actions

* Type and test fixes

* Fix notification circle

* Fix macOS app not restarting on Restart/Update

* Update dialog box titles

* Turn off file system check for Linux

* Changes to support deployments

* Testing autoupdater deployments to s3

* disable tests for now

* asfrehwf

* fine no windows WHATEVER

* remove windows again

* Try universal all in one

* pffftttngggguhhhh

* make sure it's working

* Missed artifacts script

* Modify destination as well

* one more time!

* Update yml files

* Oops

* add yq manually

* oof

* Fix the script to work properly

* Fix release script

* Fix script again so it runs in time

* Build version 2

* Revert build specific changes

* Lint override

* Fix build apps for PR builds

* One more change

* Add file generation for .deb repo

* Deb repo test

* skip tests for now

* Fix artifact push

* Persist after repo creation

* Put tests back

* Fix unit tests

* Enable mac generated builds temp

* Temporarily disable tests

* Fix issue where notification doesn't pop dialog box

* Try version 2 again

* Put the version back

* Attempting to debug mac app path issue

* Fix issue where Mac app will quarantine itself after first update

* Lock versions of yq

* Fix yq for mac

* As usual, Mac is difficult :P

* Add quotes to anti-quarantine command

* Change to spawn to avoid command injection

* Oops

* Nightly deployment changes (#2005)

* Test nightly deploy

* I fixed a some things

* aaaaaaaaa

* Restore old bucket

* Added progress indicator via tooltip

* Ship nightly builds to main S3 bucket

* PR feedback

* Fix a couple security exploits

* Fix opacity on light mode button

* Use large app icon

* Resize icon for Windows

* Resize icon for Mac

* Update to electron-updater final

* Remove Mac support and deb repo

* Typo

* Remove deb script

* Remove checksum function

* Removed autoUpdateSettingsPath

* Update URL

Co-authored-by: = <=>
Co-authored-by: Devin Binnie <devin.binnie@mattermost.com>
Co-authored-by: Mattermod <mattermod@users.noreply.github.com>
Co-authored-by: Devin Binnie <52460000+devinbinnie@users.noreply.github.com>
2022-03-08 11:38:38 -05:00
Devin Binnie a33d98ff8a
[MM-42010] Remove CircleCI check for E2E tests (#2009)
* [MM-42010] Remove CircleCI check for E2E tests

* Add jest test reporting

* Remove MM docker setup code

* Try old method

* oops

* Forgot to remove MM docker check
2022-03-02 09:39:24 -05:00
Devin Binnie 4a05b7c8d5
[MM-39852] Setup docker image to run in CI for E2E (#1946)
* [MM-39852] Setup docker image to run in CI for E2E

* Setup remote docker

* Install docker

* Trying this

* And this

* how about this

* this

* Okay this

* dis one

* sdfsagsdags

* Now?

* aaaaaaa

* asdasdasd

* i am dumb

* blank

* Please work

* Lint fix

* Forgot to update a couple things

* OOPS

* Testing something since this one is still failing

* Trying robotjs instead

* test

* Remove stop docker

* Try without the admin user (since apparently turning off admin notices didn't work)

* Remove console statement

Co-authored-by: Mattermod <mattermod@users.noreply.github.com>
2022-01-17 10:20:11 -05:00
Devin Binnie c53e897bfd
[MM-38875] Migrate E2E testing to Playwright, re-enable tests (#1800)
* WIP

* WIP

* WIP

* WIP

* WIP

* WIP

* WIP

* WIP

* WIP

* WIP

* WIP

* WIP

* WIP

* WIP

* WIP

* WIP

* [MM-38875] Migrate E2E testing to Playwright, re-enable tests

* Add functionality to map view names to Playwright windows

* Added search box test

* Added robot.js for automating key presses

* Add test using key strokes to navigate menu

* Reload test and added webcontentsid to test helper

* Check Ctrl+Shift+R as well

* oops

* Reorganize

Co-authored-by: Mattermod <mattermod@users.noreply.github.com>
2021-10-28 13:17:10 -04:00
Devin Binnie bd0d9df7e3
Remove uses of restore_cache (#1835) 2021-10-22 10:56:23 -04:00
NeroBurner f14f4062f6
CI: remove PR specific job enablement (#1798)
The following commit added the PR to the jobs to build for. This isn't needed anymore, so remove
9e440c6db9 (diff-78a8a19706dbd2a4425dd72bdab0502ed7a2cef16365ab7030a5a0588927bf47)

Co-authored-by: Devin Binnie <52460000+devinbinnie@users.noreply.github.com>
2021-10-19 10:14:27 +02:00
Eli Young 2194ca85ca
Use build/ as CircleCI workspace (#1810)
* Use build/ as CircleCI workspace

webpack compiles the application code to dist/ and electron-builder
treats it as a source of content to be packaged. As such, using this
path for CircleCI's workspace can cause unwanted scratch files to be
packaged into the app. By instead using build/, we solve the issue.
Moving the entitlements plist to the root of the repo is appropriate
because that's where all the other build config files currently live.

Fixes: #1809

* Update config.yml

Co-authored-by: Devin Binnie <devin.binnie@mattermost.com>
2021-10-14 17:19:44 -04:00
Devin Binnie 9e440c6db9
[MM-39047] Switch order of installers to avoid extra files being embedded (#1790)
* [MM-39047] Switch order of installers to avoid extra files being embedded

* CircleCi change
2021-10-06 17:05:13 -04:00
Devin Binnie 0b7173542d
Fix update image (#1781)
* Attempt to fix update image

* WIP

* Update ca-certificates

* Try this

* How about this

* Typo

* Update other jobs

* More changes
2021-10-05 10:16:48 -04:00
Devin Binnie 0a19d5815a
[MM-38530] Update build to generate universal binaries (#1747)
* [MM-38530] Update build to generate universal binaries

* Rework to only build on releases, not needed for development/PR builds

* Update cp_artifacts script

* remove pr
2021-09-22 09:28:53 -04:00
Devin Binnie 92b297c469
Fixes for release v5 (#1745)
* Change to v5.0

* Fix script to assume no RC

* Bump to version 5.0-rc1

* Fix the version

* Bump to version 5.0.0-rc1

* Fix msi build

* Bump to version 5.0.0-rc2

* Fix version again

* Bump to version 5.0.0-rc1

* Oops

* Bump to version 5.0.0-rc1

* Remove version upgrade

* Lock to version 16
2021-09-21 15:56:27 -04:00
Devin Binnie 37c637efe9
[MM-36432][MM-37072][MM-37073] Logic to support Focalboard and Playbooks tabs (#1680)
* Tab stuff

* Inter-tab navigation

* Close tab functionality

* [MM-36342][MM-37072] Logic to support Focalboard and Playbooks tabs

* Update to version 5.0

* Update config.yml

* Updated routes

* Update names for products

* [MM-37073] Close unneeded tabs when not using v6.0

* Merge'd

* Update config.yml

* Update config.yml

* Fix menu names

* PR feedback

* blank

* blank

* blank

* PR feedback

* Update config.yml

* PR feedback

Co-authored-by: Mattermod <mattermod@users.noreply.github.com>
2021-09-01 12:45:37 -04:00
Carlos Tadeu Panato Junior 58bb16fbb6
add no_output_timeout to 30m (default 10m) (#1716) 2021-09-01 10:18:59 -04:00
Devin Binnie 26bea631da
Add jobs for automatically building test builds for PRs (#1713)
* WIP

* WIP

* WIP

* WIP

* WIP

* WIP

* WIP

* WIP

* WIP

* WIP

* WIP

* WIP

* WIP

* WIP

* WIP

* WIP

* WIP

* WIP

* WIP

* WIP

* WIP
2021-08-31 08:57:24 -04:00
Dean Whillier ac61c66ce4
[MM-37090] Update loading screen branding (#1706)
* update loading screen branding

- background
- logo light mode colour

* linting

* build mac installer on pr

* use the actual branch name
2021-08-20 13:50:16 -04:00
Devin Binnie ea14159dcc
[MM-36793][MM-37954] Upgrade to Electron v13.2.0 (#1707)
* [MM-36793][MM-37954] Upgrade to Electron v13.2.0

* Update config.yml
2021-08-20 10:08:22 +02:00
Devin Binnie a79e7aeb4c
[MM-36428][MM-36434][MM-36435] Keyboard navigation and menu updates for new tab/dropdown layout (#1695)
* [MM-36428][MM-36434][MM-36435] Keyboard navigation and menu updates for new tab/dropdown layout

* Shortcuts for Windows/Linux

* Update config.yml

* Fixed up the shortcuts

* Fixed the new server modal popping up where there are GPO teams only
2021-08-16 09:17:45 -04:00
Devin Binnie 5964fc99ac
[MM-37661][MM-29878] Brand Updates for Desktop v5.0/MM v6.0 (#1691)
* WIP

* WIP

* Fixed the background

* Do the thing

* Merge'd?

* Adjust window height to completely show image
2021-08-11 16:49:36 -04:00
Devin Binnie d77b6f81a9
[MM-36423][MM-36427] Edit/Delete modals for dropdown (#1682)
* [MM-36423] Edit/Delete modals for dropdown

* [MM-36427] Remove Server Management from Settings modal

* Style fixes

* Hover states for edit/delete buttons

* Update config.yml

* Oops I broke something
2021-08-09 12:04:27 -04:00
Devin Binnie bdf83547fe
Fix mac installer (#1681)
* Fix mac installer

* Update config.yml

* Ignore issues updating to node v16
2021-08-04 16:02:14 -04:00
Devin Binnie e71c4ff9f0
[MM-36459] Drag and drop for dropdown (#1651)
* [MM-36459] Drag and drop for dropdown

* CircleCI build

* Drag and drop feedback from UX

* PR feedback

* PR feedback
2021-07-14 16:29:35 -04:00
Devin Binnie 880af87ddf
[MM-36421] Replace server tabs with dropdown menu (#1647)
* WIP

* WIP

* PoC for dropdown - logic stuff

* Most of the logic for the dropdown

* Working dropdown menu to pick servers

* Mentions, unreads and expired working. Many styles are working.

* Some more styles

* Dark mode and other stuff

* Some cleanup

* Generate build

* PR feedback

* More PR feedback
2021-07-07 18:49:48 -04:00
Devin Binnie 4130c2c37d
React bootstrap upgrade to v1, migrate to react-beautiful-dnd (#1639)
* Upgrade packages, fix errors, still WIP

* WIP

* Bootstrap v4 upgrade

* Switch to react-beautiful-dnd

* Fixed some issues

* Added to generate signed Mac build for UX

* PR feedback

* Missed one

* PR feedback
2021-07-05 21:19:11 -04:00
Devin Binnie 1b3d0eac8f
Migrate app to TypeScript (#1637)
* Initial setup and migrated src/common

* WIP

* WIP

* WIP

* Main module basically finished

* Renderer process migrated

* Added CI step and some fixes

* Fixed remainder of issues and added proper ESLint config

* Fixed a couple issues

* Progress!

* Some more fixes

* Fixed a test

* Fix build step

* PR feedback
2021-06-28 09:51:23 -04:00
Guillermo Vayá 2f65c987e1
[MM-35581] fix m1 rename not being persisted, add rpm to release (#1626)
* fix m1 rename not being persisted, add rpm to release

* testing, revert after test

* Revert "testing, revert after test"

This reverts commit 70dc9a702b0d166c159c30add836c695e7fdd278.
2021-06-11 19:59:35 +02:00
Guillermo Vayá 92906248ba
[MM-35581] Rename arm64 to m1 (#1620)
* add rename

* remove check so we can test it

* revert testing changes

Co-authored-by: = <=>
2021-06-09 10:57:45 +02:00
Guillermo Vayá 61c668d77b
fix wrong folder name for s3_daily (#1584) 2021-05-05 18:41:03 +02:00
Guillermo Vaya 273862874c fix apt install 2021-05-03 22:12:30 +02:00
Guillermo Vayá 8b53554753
make daily links in s3 look always the same to help with rainforest (#1568) 2021-04-27 10:42:26 +02:00