Michael Telatynski
386d6ec055
we don't need to install riot-web for react-sdk unit tests
2019-12-17 12:16:40 +00:00
Travis Ralston
20a615396b
Implementation of new potential skinning mechanism
...
With a switch to Only One Webpack™ we need a way to help developers generate the component index without a concurrent watch task. The best way to do this is to have developers import their components, but how do they do that when we support skins? The answer in this commit is to change skinning.
Skinning now expects to receive your list of overrides instead of the react-sdk+branded components. For Riot this means we send over *only* the Vector components and not Vector+react-sdk.
Components can then be annotated with the `replaceComponent` decorator to have them be skinnable. The decorator must take a string with the dot path of the component because we can't reliably calculate it ourselves, sadly.
The decorator does a call to `getComponent` which is where the important part of the branded components not including the react-sdk is important: if the branded app includes the react-sdk then the decorator gets executed before the skin has finished loading, leading to all kinds of fun errors. This is also why the skinner lazily loads the react-sdk components to avoid importing them too early, breaking the app.
The decorator will end up receiving null for a component because of the getComponent loop mentioned: the require() call is still in progress when the decorator is called, therefore we can't error out. All usages of getComponent() within the app are safe to not need such an error (the return won't be null, and developers shouldn't use getComponent() after this commit anyways).
The AuthPage, being a prominent component, has been converted to demonstrate this working. Changes to riot-web are required to have this work.
The reskindex script has also been altered to reflect these skinning changes - it no longer should set the react-sdk as a parent. The eventual end goal is to get rid of `getComponent()` entirely as it'll be easily replaced by imports.
2019-12-12 19:48:45 -07:00
David Baker
604745de96
Merge pull request #3698 from matrix-org/dbkr/chmod_ci
...
Make CI scripts executable
2019-12-05 11:39:58 +00:00
David Baker
c44cfff7cf
Remove logs before running end-to-end tests
...
Hopefully will stop the end-to-end tests failing when buildkite
re-uses an agent.
2019-12-04 11:17:41 +00:00
David Baker
c36950db23
Make CI scripts executable
...
and remove chmod line from pipeline
2019-12-04 10:30:37 +00:00
Travis Ralston
831522d02d
Update Lithuanian language name
...
By request: https://matrix.to/#/!yvhoprZiKmhjxKfNHa:matrix.org/$E_5Waedui4X866edAWmYVAjg6vv-vwAXRHN4h0DKY6s?via=matrix.eclabs.de&via=matrix.org&via=dodsorf.as
2019-12-03 23:14:40 -07:00
Travis Ralston
ea1ed19a92
Merge pull request #11592 from vector-im/travis/more-language
...
Enable more languages
2019-12-03 10:11:54 -07:00
Travis Ralston
e4bf84701d
Use ISO code table as a source instead
...
https://en.wikipedia.org/wiki/List_of_ISO_639-2_codes
2019-12-03 09:52:10 -07:00
Travis Ralston
a76f897171
Enable more languages
...
Enabled (riot-web % / react-sdk %):
* Lithuanian: 100% / 48.1% translated
* Hindi: 69.6% / 36.5% translated
* Ukrainian: 100% / 28.5% translated
* Icelandic: 43.5% / 27.7% translated
They aren't the highest languages, but they are more than our lowest translated & enabled languages.
2019-12-02 20:55:16 -07:00
Travis Ralston
726bf35b76
Fix Docker build for develop and publish a /version file
...
Fixes https://github.com/vector-im/riot-web/issues/10426
2019-12-02 16:58:50 -07:00
RiotRobot
b93b6b448e
Restore creation of the dist directory
2019-11-27 13:02:14 +00:00
RiotRobot
d0c8a6af50
Copy signed Windows installers to pub directory
2019-11-27 12:44:40 +00:00
RiotRobot
dd9305140b
Only log signing command when it fails
2019-11-27 12:22:51 +00:00
RiotRobot
cde5c9c027
Remove redundant Windows installer signing
...
The signing in `electron-package.sh` is no longer needed, since it's already
handled in the new sign script for `electron-builder`.
2019-11-27 12:15:05 +00:00
RiotRobot
99ee0fc72d
Fix Windows signing args
...
The hash arg seems to only accept the short `-h` form. In addition, the args in
the environment contained a fixed hash type which is removed here.
2019-11-27 11:54:33 +00:00
David Baker
070d5fc6e8
Sign all of the Windows executable files
...
We can actually just supply a custom signing module here to do our
signing rather than manually signing things in the afterSign hook.
This means all 4 executable files get signed (the main exe, the
stub exe, Update.exe and the installer).
2019-11-26 12:08:29 -07:00
David Baker
64c23ae18d
Fix error/exception in electron signing script
...
'Exception' isn't a thing: Error is
2019-11-19 15:55:03 +00:00
Bruno Windels
b03ebb964b
split up installing static webserver and riot copy
...
so we can just do the latter for the e2e tests on CI
2019-10-18 17:18:18 +02:00
David Baker
8e81685a9f
Merge pull request #11126 from vector-im/dbkr/windows_signing
...
Sign main Windows executable
2019-10-18 12:02:04 +01:00
David Baker
94e721acf2
Update cert name & do bash globbing correctly
2019-10-18 10:31:45 +01:00
David Baker
3545b2751d
typo
...
Co-Authored-By: Travis Ralston <travpc@gmail.com>
2019-10-18 10:08:43 +01:00
David Baker
21ea6c6283
Merge pull request #11119 from vector-im/dbkr/notarise
...
Notarise the macOS app
2019-10-11 15:48:04 +01:00
Nazım Can Altınova
dd9898e687
Fix the label of Turkish language
...
Türk means Turkish as nationality and Türkçe means Turkish as language.
2019-10-11 14:01:16 +02:00
David Baker
1ff06c4be4
Missing space
...
also don't print the signing command line as it has the token password
2019-10-11 12:21:28 +01:00
David Baker
5a7efcd738
Sign the main executable on windows
...
and automate the signing of the installers
2019-10-11 12:01:50 +01:00
David Baker
071223120b
Warn that this might be a while
2019-10-11 10:45:42 +01:00
David Baker
2bab328f8d
Check everything's in place for the notarising dance
...
...before we start the build process.
2019-10-10 15:32:17 +01:00
David Baker
7faba49f66
fix quotes
2019-10-10 11:53:49 +01:00
Bruno Windels
645a9d836f
install static webserver for server symlinked riot on CI
2019-10-10 11:40:04 +02:00
David Baker
bad97db302
remove random spaces
2019-10-09 16:40:31 +01:00
David Baker
ff70339aad
Working branch for notarisation
2019-10-09 16:29:24 +01:00
Bruno Windels
5b9bfae320
first attempt at running local e2e tests from CI
2019-10-09 17:03:01 +02:00
J. Ryan Stinnett
54767b5a65
Clean Yarn cache during Electron builds
2019-09-27 12:49:13 +01:00
Travis Ralston
6b07186078
Verify i18n in CI
2019-07-11 12:45:06 -06:00
Travis Ralston
f6af464fff
Verify i18n in CI
...
To protect developers from mistakes such as missing strings or getting them out of order.
2019-07-11 12:37:17 -06:00
J. Ryan Stinnett
aaceaf097c
Add Albanian language
2019-06-04 17:45:59 +01:00
J. Ryan Stinnett
1c42ee1a30
Add West Flemish language
2019-06-04 17:43:28 +01:00
Matthew Hodgson
4cbe6c1000
remove emojione
2019-05-19 21:26:11 +01:00
Matthew Hodgson
dbc6815abf
make EmojiProvider and stripped-emoji.json work
2019-05-19 20:48:18 +01:00
Matthew Hodgson
dc72641264
replace emojione with twemoji. completely untested & debugged & unoptimised
2019-05-19 15:23:43 +01:00
Travis Ralston
3123b429f7
Increase timeout for yarn install in Docker builds
...
Otherwise we run into problems where Docker Hub's limited machines timeout trying to download our dependencies
2019-05-15 16:24:25 -06:00
David Baker
a7756fc876
Respond quickly to buildkite pokes
...
Otherwise it thinks they have failed, as per comment.
2019-05-02 18:05:11 +01:00
Travis Ralston
9957149115
Merge pull request #9426 from vector-im/travis/dockerfile-continued
...
Add Dockerfile (part 2)
2019-05-01 10:42:21 -06:00
David Baker
77dff119db
Fix variable scope in redeployer
2019-04-26 16:26:48 +01:00
David Baker
0718d438b8
Fix more typos in redeployer
2019-04-26 16:19:49 +01:00
David Baker
3a2541d3bf
more logging for auto-deployer
2019-04-26 16:16:14 +01:00
David Baker
f49732b036
Link to buildkite webhook docs
2019-04-26 15:41:20 +01:00
J. Ryan Stinnett
73144c3493
Typing is hard
...
Co-Authored-By: dbkr <dbkr@users.noreply.github.com>
2019-04-26 15:40:23 +01:00
J. Ryan Stinnett
c5e7e82b46
I can't type buildkite
...
Co-Authored-By: dbkr <dbkr@users.noreply.github.com>
2019-04-26 15:40:05 +01:00
David Baker
af6ad9355d
Convert redeploy.py to buildkite
2019-04-26 15:26:03 +01:00