Allow specifying config

This commit is contained in:
SpiritCroc 2020-09-02 11:43:22 +02:00
parent bd7c0a209d
commit f6fa1abf6d
3 changed files with 50 additions and 3 deletions

View File

@ -1,12 +1,19 @@
.PHONY: all web desktop desktop-common linux windows
CFGDIR ?= configs/sc
all: desktop
-include release.mk
web:
cp $(CFGDIR)/config.json element-web/
yarn --cwd element-web dist
desktop-common: web
yarn --cwd element-desktop run fetch --cfgdir ''
yarn --cwd element-desktop run fetch --cfgdir $(CFGDIR)
yarn --cwd element-desktop run build:native
desktop: windows linux
@ -16,5 +23,3 @@ linux: desktop-common
windows: desktop-common
yarn --cwd element-desktop run build64windows
-include release.mk

2
configs/.gitignore vendored Normal file
View File

@ -0,0 +1,2 @@
*
!sc

40
configs/sc/config.json Normal file
View File

@ -0,0 +1,40 @@
{
"update_base_url": null,
"default_server_name": "matrix.org",
"brand": "SchildiChat",
"integrations_ui_url": "https://scalar.vector.im/",
"integrations_rest_url": "https://scalar.vector.im/api",
"integrations_widgets_urls": [
"https://scalar.vector.im/_matrix/integrations/v1",
"https://scalar.vector.im/api",
"https://scalar-staging.vector.im/_matrix/integrations/v1",
"https://scalar-staging.vector.im/api",
"https://scalar-staging.riot.im/scalar/api"
],
"hosting_signup_link": "https://element.io/matrix-services?utm_source=element-web&utm_medium=web",
"bug_report_endpoint_url": "https://element.io/bugreports/submit",
"roomDirectory": {
"servers": [
"matrix.org"
]
},
"piwik": {
"url": "https://piwik.riot.im/",
"siteId": 1,
"policyUrl": "https://element.io/cookie-policy"
},
"enable_presence_by_hs_url": {
"https://matrix.org": false,
"https://matrix-client.matrix.org": false
},
"terms_and_conditions_links": [
{
"url": "https://element.io/privacy",
"text": "Privacy Policy"
},
{
"url": "https://element.io/cookie-policy",
"text": "Cookie Policy"
}
]
}