Compare commits

...

113 commits

Author SHA1 Message Date
su-ex
e45b9c2479
Update submodules 2021-09-13 23:02:11 +02:00
su-ex
d39696f776
Merge pull request #92 from nyantec/makefile-mac-universal
fix macOS dmg output file in Make
2021-09-13 19:33:29 +02:00
Finn Behrens
1bf339dcb1 fix macOS dmg output file in Make
Signed-off-by: Finn Behrens <me@kloenk.dev>
2021-09-13 19:26:52 +02:00
su-ex
d730a87a59
New release v1.8.4-sc1 2021-09-13 19:14:56 +02:00
su-ex
e900562d5e
Fix flathub deploy script 2021-09-13 19:14:27 +02:00
su-ex
c827d5af18
readme: Correct typo 2021-09-13 16:13:20 +02:00
su-ex
d8af01d36a
Makefile: Add rpm targets 2021-09-13 16:09:53 +02:00
su-ex
519801c059
Add some new sc specific strings 2021-09-13 15:04:18 +02:00
su-ex
cf2ba283e8
Makefile: Add -f to bom.lock clean 2021-09-13 08:49:34 +02:00
su-ex
898ba1215e
Merge pull request #89 from nyantec/bom
add bom.lock makefile target
2021-09-12 10:51:55 +02:00
Finn Behrens
29abb3e567 add bom.lock makefile target
Signed-off-by: Finn Behrens <me@kloenk.dev>
2021-09-11 17:50:28 +02:00
su-ex
2294770442
Merge pull request #87 from yu-re-ka/feature-nix-flake
add Nix flake
2021-09-07 19:54:18 +02:00
Yureka
ab496bbf96
add Nix flake 2021-09-07 18:44:33 +02:00
Niels Bouma
8bcb23f52f Translated using Weblate (Dutch)
Currently translated at 100.0% (1 of 1 strings)

Translation: SchildiChat/element-desktop
Translate-URL: https://weblate.bubu1.eu/projects/schildichat/element-desktop/nl/
2021-09-07 13:06:15 +02:00
Niels Bouma
f9a9e091d3 Translated using Weblate (Dutch)
Currently translated at 100.0% (10 of 10 strings)

Translation: SchildiChat/matrix-react-sdk
Translate-URL: https://weblate.bubu1.eu/projects/schildichat/matrix-react-sdk/nl/
2021-09-07 13:06:14 +02:00
Nikita Epifanov
99d6a3790c Translated using Weblate (Russian)
Currently translated at 100.0% (1 of 1 strings)

Translation: SchildiChat/element-desktop
Translate-URL: https://weblate.bubu1.eu/projects/schildichat/element-desktop/ru/
2021-08-17 17:18:14 +02:00
Nikita Epifanov
2aedca9fb7 Translated using Weblate (Russian)
Currently translated at 100.0% (10 of 10 strings)

Translation: SchildiChat/matrix-react-sdk
Translate-URL: https://weblate.bubu1.eu/projects/schildichat/matrix-react-sdk/ru/
2021-08-17 17:18:14 +02:00
waclaw66
1a305bab96 Translated using Weblate (Czech)
Currently translated at 100.0% (10 of 10 strings)

Translation: SchildiChat/matrix-react-sdk
Translate-URL: https://weblate.bubu1.eu/projects/schildichat/matrix-react-sdk/cs/
2021-08-17 17:18:14 +02:00
su-ex
0206873c18
Change github release target to master 2021-08-17 17:16:52 +02:00
su-ex
7a61dc1da8
Merge pull request #83 from nyantec/makefile
add icns and mas target to makefile
2021-08-13 18:36:31 +02:00
Finn Behrens
98c8da3c34 add macOS signing info to README.md 2021-08-13 18:26:05 +02:00
su-ex
a4436f462a
Update submodules 2021-08-13 17:03:20 +02:00
Finn Behrens
17ae7bf98b add icns and mas target to makefile 2021-08-12 22:09:59 +02:00
su-ex
4aa0bbec25
Makefile: Let debian target only build Debian 2021-07-20 20:31:29 +02:00
su-ex
bdac1e4334
Update submodules 2021-07-20 20:25:36 +02:00
su-ex
b447e3f45d
Makefile: Fix renamed yarn script 2021-07-20 20:14:38 +02:00
su-ex
552ab5913f
i18n: Run yarn i18n in submodules for each before overlaying 2021-07-20 19:54:18 +02:00
Allan Nordhøy
046b7c02fd Translated using Weblate (Norwegian Bokmål)
Currently translated at 100.0% (10 of 10 strings)

Translation: SchildiChat/matrix-react-sdk
Translate-URL: https://weblate.bubu1.eu/projects/schildichat/matrix-react-sdk/nb_NO/
2021-07-20 17:55:16 +02:00
Allan Nordhøy
4a68ab4f94 Translated using Weblate (Norwegian Bokmål)
Currently translated at 100.0% (1 of 1 strings)

Translation: SchildiChat/element-desktop
Translate-URL: https://weblate.bubu1.eu/projects/schildichat/element-desktop/nb_NO/
2021-07-20 17:55:16 +02:00
Weblate
90195daa63 Added translation using Weblate (Norwegian Bokmål) 2021-07-20 03:32:41 +02:00
Weblate
54eaabde39 Added translation using Weblate (Norwegian Bokmål) 2021-07-20 03:32:39 +02:00
Allan Nordhøy
fa9153bbca Added translation using Weblate (Norwegian Bokmål) 2021-07-20 03:32:38 +02:00
Weblate
ca8629d4e5 Added translation using Weblate (Persian) 2021-07-12 11:25:42 +02:00
Weblate
b64bd20b15 Added translation using Weblate (Persian) 2021-07-12 11:25:39 +02:00
Weblate
e72dfceb12 Added translation using Weblate (Persian) 2021-07-12 11:25:37 +02:00
Frisk
9cc3cdc3dc Translated using Weblate (Polish)
Currently translated at 100.0% (1 of 1 strings)

Translation: SchildiChat/element-desktop
Translate-URL: https://weblate.bubu1.eu/projects/schildichat/element-desktop/pl/
2021-07-11 07:08:47 +02:00
Weblate
460458ca0a Added translation using Weblate (Polish) 2021-07-10 17:18:21 +02:00
Weblate
d56fac4ea7 Added translation using Weblate (Polish) 2021-07-10 17:18:20 +02:00
Frisk
2b06a6cbd8 Added translation using Weblate (Polish) 2021-07-10 17:18:11 +02:00
su-ex
cdf5812221
New release v1.7.32-sc1 2021-07-09 04:30:25 +02:00
su-ex
25148ec273
... and remove matrix.org 2021-07-08 17:40:58 +02:00
su-ex
2248eebef0
... and back to id but keep reordered server list 2021-07-08 17:36:12 +02:00
su-ex
505a21a022
Change update room id to alias 2021-07-08 17:24:03 +02:00
su-ex
89d385b7d4 Translated using Weblate (German)
Currently translated at 100.0% (10 of 10 strings)

Translation: SchildiChat/matrix-react-sdk
Translate-URL: https://weblate.bubu1.eu/projects/schildichat/matrix-react-sdk/de/
2021-07-08 11:21:20 +02:00
su-ex
4e01e1d57a Translated using Weblate (German)
Currently translated at 100.0% (9 of 9 strings)

Translation: SchildiChat/matrix-react-sdk
Translate-URL: https://weblate.bubu1.eu/projects/schildichat/matrix-react-sdk/de/
2021-07-08 11:21:20 +02:00
su-ex
7e2d84fc1c
Explain better what the different repos are for
Close #72
2021-07-08 11:21:16 +02:00
su-ex
c000ee1445
Allow "Don't ask again" being translated 2021-07-08 00:08:55 +02:00
su-ex
be3bb16e06
regenerate_i18n: Run yarn i18n in all repos 2021-07-07 18:06:57 +02:00
su-ex
817bdaf65b
Offer Windows and Apple users to join an update notification room 2021-07-07 17:29:30 +02:00
su-ex
d5fa475e8d
Move electron-builder args directly to the Makefile to avoid friction 2021-07-06 11:17:42 +02:00
SpiritCroc
7c4500e95f Deleted translation using Weblate (English (United States)) 2021-07-04 13:24:55 +02:00
SpiritCroc
e69c5bfb10 Deleted translation using Weblate (English (United States)) 2021-07-04 13:24:38 +02:00
SpiritCroc
ee760ab980 Deleted translation using Weblate (English (United States)) 2021-07-04 13:24:22 +02:00
Weblate
f82619b4cd Added translation using Weblate (English (United States)) 2021-07-04 12:59:50 +02:00
Weblate
7c2ad6457d Added translation using Weblate (English (United States)) 2021-07-04 12:59:49 +02:00
Weblate
ea528bb30d Added translation using Weblate (English (United States)) 2021-07-04 12:59:47 +02:00
J. Lavoie
8186dd8b40 Translated using Weblate (French)
Currently translated at 100.0% (7 of 7 strings)

Translation: SchildiChat/matrix-react-sdk
Translate-URL: https://weblate.bubu1.eu/projects/schildichat/matrix-react-sdk/fr/
2021-07-04 02:05:59 +02:00
J. Lavoie
9389687646 Translated using Weblate (French)
Currently translated at 100.0% (1 of 1 strings)

Translation: SchildiChat/element-desktop
Translate-URL: https://weblate.bubu1.eu/projects/schildichat/element-desktop/fr/
2021-07-04 02:05:59 +02:00
Govindas
91f8982678 Translated using Weblate (Lithuanian)
Currently translated at 71.4% (5 of 7 strings)

Translation: SchildiChat/matrix-react-sdk
Translate-URL: https://weblate.bubu1.eu/projects/schildichat/matrix-react-sdk/lt/
2021-07-01 15:05:52 +02:00
Govindas
28e4695a22 Translated using Weblate (Lithuanian)
Currently translated at 100.0% (1 of 1 strings)

Translation: SchildiChat/element-desktop
Translate-URL: https://weblate.bubu1.eu/projects/schildichat/element-desktop/lt/
2021-06-30 13:05:52 +02:00
Govindas
a808f3d496 Translated using Weblate (Lithuanian)
Currently translated at 42.8% (3 of 7 strings)

Translation: SchildiChat/matrix-react-sdk
Translate-URL: https://weblate.bubu1.eu/projects/schildichat/matrix-react-sdk/lt/
2021-06-30 13:05:52 +02:00
Weblate
343c2d79a2 Added translation using Weblate (French) 2021-06-27 18:02:50 +02:00
Weblate
f7c1d254c3 Added translation using Weblate (French) 2021-06-27 18:02:47 +02:00
Weblate
e95a8442b0 Added translation using Weblate (French) 2021-06-27 18:02:45 +02:00
su-ex
d631fa21eb Translated using Weblate (German)
Currently translated at 100.0% (7 of 7 strings)

Translation: SchildiChat/matrix-react-sdk
Translate-URL: https://weblate.bubu1.eu/projects/schildichat/matrix-react-sdk/de/
2021-06-25 23:05:50 +02:00
waclaw66
80e873dd66 Translated using Weblate (Czech)
Currently translated at 100.0% (7 of 7 strings)

Translation: SchildiChat/matrix-react-sdk
Translate-URL: https://weblate.bubu1.eu/projects/schildichat/matrix-react-sdk/cs/
2021-06-25 23:05:50 +02:00
su-ex
9bffd5bea9
Merge remote-tracking branch 'weblate/sc' into sc 2021-06-24 16:15:43 +02:00
su-ex
539a43b311
Add new string for unified room list 2021-06-24 16:13:56 +02:00
su-ex
047c95b578 Translated using Weblate (German)
Currently translated at 100.0% (6 of 6 strings)

Translation: SchildiChat/matrix-react-sdk
Translate-URL: https://weblate.bubu1.eu/projects/schildichat/matrix-react-sdk/de/
2021-06-14 23:33:46 +02:00
waclaw66
05f21f1707 Translated using Weblate (Czech)
Currently translated at 100.0% (6 of 6 strings)

Translation: SchildiChat/matrix-react-sdk
Translate-URL: https://weblate.bubu1.eu/projects/schildichat/matrix-react-sdk/cs/
2021-06-14 23:33:46 +02:00
su-ex
af4e841134
Revert "Translated using Weblate (Dutch)"
This reverts commit a7ef620132.
2021-06-12 22:33:36 +02:00
su-ex
6a2eb7e256
Remove unused string 2021-06-12 22:30:46 +02:00
su-ex
7163a74d24
Add some missing strings 2021-06-12 22:30:00 +02:00
Marcus
a7ef620132 Translated using Weblate (Dutch)
Currently translated at 0.0% (0 of 1 strings)

Translation: SchildiChat/element-desktop
Translate-URL: https://weblate.bubu1.eu/projects/schildichat/element-desktop/nl/
2021-06-10 15:33:44 +02:00
su-ex
8ad4a5e054 Translated using Weblate (Czech)
Currently translated at 100.0% (5 of 5 strings)

Translation: SchildiChat/matrix-react-sdk
Translate-URL: https://weblate.bubu1.eu/projects/schildichat/matrix-react-sdk/cs/
2021-06-08 23:33:43 +02:00
mondstern
df24897b75 Translated using Weblate (Estonian)
Currently translated at 100.0% (1 of 1 strings)

Translation: SchildiChat/element-desktop
Translate-URL: https://weblate.bubu1.eu/projects/schildichat/element-desktop/et/
2021-06-06 12:56:35 +02:00
mondstern
6b6fc8aba2 Translated using Weblate (Slovak)
Currently translated at 100.0% (5 of 5 strings)

Translation: SchildiChat/matrix-react-sdk
Translate-URL: https://weblate.bubu1.eu/projects/schildichat/matrix-react-sdk/sk/
2021-06-06 12:56:34 +02:00
mondstern
6bcf555b6a Translated using Weblate (Russian)
Currently translated at 100.0% (5 of 5 strings)

Translation: SchildiChat/matrix-react-sdk
Translate-URL: https://weblate.bubu1.eu/projects/schildichat/matrix-react-sdk/ru/
2021-06-06 12:56:34 +02:00
mondstern
7f78d7c5a0 Translated using Weblate (Portuguese (Brazil))
Currently translated at 100.0% (5 of 5 strings)

Translation: SchildiChat/matrix-react-sdk
Translate-URL: https://weblate.bubu1.eu/projects/schildichat/matrix-react-sdk/pt_BR/
2021-06-06 12:56:34 +02:00
mondstern
8783aad7fe Translated using Weblate (Dutch)
Currently translated at 100.0% (5 of 5 strings)

Translation: SchildiChat/matrix-react-sdk
Translate-URL: https://weblate.bubu1.eu/projects/schildichat/matrix-react-sdk/nl/
2021-06-06 12:56:34 +02:00
mondstern
a0b87afbd2 Translated using Weblate (Hungarian)
Currently translated at 100.0% (5 of 5 strings)

Translation: SchildiChat/matrix-react-sdk
Translate-URL: https://weblate.bubu1.eu/projects/schildichat/matrix-react-sdk/hu/
2021-06-06 12:56:34 +02:00
mondstern
e8f02cb065 Translated using Weblate (Basque)
Currently translated at 100.0% (5 of 5 strings)

Translation: SchildiChat/matrix-react-sdk
Translate-URL: https://weblate.bubu1.eu/projects/schildichat/matrix-react-sdk/eu/
2021-06-06 12:56:33 +02:00
mondstern
031c657ccb Translated using Weblate (Estonian)
Currently translated at 100.0% (5 of 5 strings)

Translation: SchildiChat/matrix-react-sdk
Translate-URL: https://weblate.bubu1.eu/projects/schildichat/matrix-react-sdk/et/
2021-06-06 12:56:33 +02:00
germe-fur
905374543d Translated using Weblate (Spanish)
Currently translated at 100.0% (1 of 1 strings)

Translation: SchildiChat/element-desktop
Translate-URL: https://weblate.bubu1.eu/projects/schildichat/element-desktop/es/
2021-06-05 14:27:52 +02:00
germe-fur
21c1a4d55a Translated using Weblate (Spanish)
Currently translated at 100.0% (5 of 5 strings)

Translation: SchildiChat/matrix-react-sdk
Translate-URL: https://weblate.bubu1.eu/projects/schildichat/matrix-react-sdk/es/
2021-06-05 14:27:52 +02:00
Weblate
17e988aac9 Added translation using Weblate (Slovak) 2021-06-05 11:14:31 +02:00
Weblate
6da7785919 Added translation using Weblate (Russian) 2021-06-05 11:14:30 +02:00
Weblate
b75788acf8 Added translation using Weblate (Portuguese (Brazil)) 2021-06-05 11:14:30 +02:00
Weblate
dbaf203a9d Added translation using Weblate (Dutch) 2021-06-05 11:14:29 +02:00
Weblate
3671fb2509 Added translation using Weblate (Lithuanian) 2021-06-05 11:14:29 +02:00
Weblate
d288d59851 Added translation using Weblate (Hungarian) 2021-06-05 11:14:28 +02:00
Weblate
f896a5cf9b Added translation using Weblate (Basque) 2021-06-05 11:14:28 +02:00
Weblate
013115c4b7 Added translation using Weblate (Estonian) 2021-06-05 11:14:28 +02:00
Weblate
54692fd5d5 Added translation using Weblate (Spanish) 2021-06-05 11:14:27 +02:00
Weblate
31626be179 Added translation using Weblate (Slovak) 2021-06-05 11:14:27 +02:00
Weblate
68c7fb216e Added translation using Weblate (Russian) 2021-06-05 11:14:26 +02:00
Weblate
1e063b4c45 Added translation using Weblate (Portuguese (Brazil)) 2021-06-05 11:14:26 +02:00
Weblate
0587d470ec Added translation using Weblate (Dutch) 2021-06-05 11:14:26 +02:00
Weblate
4162a4b0bb Added translation using Weblate (Lithuanian) 2021-06-05 11:14:25 +02:00
Weblate
1e65e1d6c2 Added translation using Weblate (Hungarian) 2021-06-05 11:14:25 +02:00
Weblate
ecf2ca9c95 Added translation using Weblate (Basque) 2021-06-05 11:14:24 +02:00
Weblate
ee9030b25e Added translation using Weblate (Estonian) 2021-06-05 11:14:24 +02:00
Weblate
c92de08179 Added translation using Weblate (Spanish) 2021-06-05 11:14:23 +02:00
Weblate
68f8de90a8 Added translation using Weblate (Slovak) 2021-06-05 11:14:22 +02:00
Weblate
b58ec71fab Added translation using Weblate (Russian) 2021-06-05 11:14:21 +02:00
Weblate
7d936b5dd6 Added translation using Weblate (Portuguese (Brazil)) 2021-06-05 11:14:19 +02:00
Weblate
245acd8666 Added translation using Weblate (Dutch) 2021-06-05 11:14:18 +02:00
Weblate
5ae89a1930 Added translation using Weblate (Lithuanian) 2021-06-05 11:14:17 +02:00
Weblate
75ce7c462b Added translation using Weblate (Hungarian) 2021-06-05 11:14:17 +02:00
Weblate
3c98777e16 Added translation using Weblate (Basque) 2021-06-05 11:14:16 +02:00
Weblate
d617678f3d Added translation using Weblate (Estonian) 2021-06-05 11:14:15 +02:00
Weblate
37e2a48648 Added translation using Weblate (Spanish) 2021-06-05 11:14:15 +02:00
su-ex
80a92a3c30
Add empty element-web en_EN.json base overlay file 2021-06-05 11:05:05 +02:00
60 changed files with 577 additions and 38 deletions

1
.gitignore vendored
View file

@ -1,3 +1,4 @@
release.mk release.mk
/release /release
/local-pkgbuild /local-pkgbuild
bom.lock

View file

@ -1,5 +1,6 @@
.PHONY: all setup regenerate-i18n reskindex web desktop-common linux debian pacman local-pkgbuild local-pkgbuild-install windows windows-portable .PHONY: all setup regenerate-i18n reskindex web desktop-common linux debian rpm pacman local-pkgbuild local-pkgbuild-install windows windows-portable
.PHONY: web-release debian-release pacman-release windows-setup-release windows-unpacked-release windows-portable-release windows-release .PHONY: web-release debian-release rpm-release pacman-release windows-setup-release windows-unpacked-release windows-portable-release windows-release
.PHONY: macos-common macos macos-mas macos-release macos-mas-release icns
.PHONY: clean .PHONY: clean
CFGDIR ?= configs/sc CFGDIR ?= configs/sc
@ -19,6 +20,7 @@ OUT_WEB := $(WEB_OUT)/$(WEB_APP_NAME)-$(WEB_OUT_DIST_VERSION).tar.gz
DESKTOP_OUT := element-desktop/dist DESKTOP_OUT := element-desktop/dist
OUT_DEB64 := $(DESKTOP_OUT)/$(DESKTOP_APP_NAME)_$(VERSION)_amd64.deb OUT_DEB64 := $(DESKTOP_OUT)/$(DESKTOP_APP_NAME)_$(VERSION)_amd64.deb
OUT_RPM64 := $(DESKTOP_OUT)/$(DESKTOP_APP_NAME)-$(VERSION).x86_64.rpm
OUT_PAC64 := $(DESKTOP_OUT)/$(DESKTOP_APP_NAME)-$(VERSION).pacman OUT_PAC64 := $(DESKTOP_OUT)/$(DESKTOP_APP_NAME)-$(VERSION).pacman
OUT_APPIMAGE64 := $(DESKTOP_OUT)/$(PRODUCT_NAME)-$(VERSION).AppImage OUT_APPIMAGE64 := $(DESKTOP_OUT)/$(PRODUCT_NAME)-$(VERSION).AppImage
OUT_TARXZ64 := $(DESKTOP_OUT)/$(DESKTOP_APP_NAME)-$(VERSION).tar.xz OUT_TARXZ64 := $(DESKTOP_OUT)/$(DESKTOP_APP_NAME)-$(VERSION).tar.xz
@ -27,17 +29,34 @@ OUT_WIN64_PORTABLE := $(DESKTOP_OUT)/$(PRODUCT_NAME)\ $(VERSION).exe
OUT_WIN64_BETTER_NAME := $(PRODUCT_NAME)_Setup_v$(VERSION).exe OUT_WIN64_BETTER_NAME := $(PRODUCT_NAME)_Setup_v$(VERSION).exe
OUT_WIN64_UNPACKED_BETTER_NAME := $(PRODUCT_NAME)_win-unpacked_v$(VERSION).zip OUT_WIN64_UNPACKED_BETTER_NAME := $(PRODUCT_NAME)_win-unpacked_v$(VERSION).zip
OUT_WIN64_PORTABLE_BETTER_NAME := $(PRODUCT_NAME)_win-portable_v$(VERSION) OUT_WIN64_PORTABLE_BETTER_NAME := $(PRODUCT_NAME)_win-portable_v$(VERSION)
OUT_MACOS := $(DESKTOP_OUT)/$(PRODUCT_NAME)-$(VERSION).dmg OUT_MACOS := $(DESKTOP_OUT)/$(PRODUCT_NAME)-$(VERSION)-universal.dmg
OUT_MACOS_MAS := $(DESKTOP_OUT)/mas-universal/$(PRODUCT_NAME).app
RELEASE_DIR := release RELEASE_DIR := release
CURRENT_RELEASE_DIR := $(RELEASE_DIR)/$(VERSION) CURRENT_RELEASE_DIR := $(RELEASE_DIR)/$(VERSION)
# macOS Codesigning
CSC_IDENTITY_AUTO_DISCOVERY ?= false
NOTARIZE_APPLE_ID ?=
CSC_NAME ?=
-include release.mk -include release.mk
setup: setup:
if [ ! -L "element-desktop/webapp" ]; then ./setup.sh; fi if [ ! -L "element-desktop/webapp" ]; then ./setup.sh; fi
element-desktop/build/SchildiChat.xcassets/SchildiChat.iconset: $(wildcard element-desktop/build/SchildiChat.xcassets/SchildiChat.iconset/*)
element-desktop/build/icon.icns: element-desktop/build/SchildiChat.xcassets/SchildiChat.iconset
iconutil -c icns -o $@ $<
element-desktop/build/SchildiChat.xcassets/SchildiChatDMG.iconset: $(wildcard element-desktop/build/SchildiChat.xcassets/SchildiChatDMG.iconset/*)
element-desktop/build/dmg.icns: element-desktop/build/SchildiChat.xcassets/SchildiChatDMG.iconset
iconutil -c icns -o $@ $<
icns: element-desktop/build/icon.icns element-desktop/build/dmg.icns
regenerate-i18n: setup regenerate-i18n: setup
./regenerate_i18n.sh ./regenerate_i18n.sh
@ -55,26 +74,41 @@ desktop-common: web
$(YARN) --cwd element-desktop run fetch --cfgdir '' $(YARN) --cwd element-desktop run fetch --cfgdir ''
$(YARN) --cwd element-desktop run build:native $(YARN) --cwd element-desktop run build:native
macos-common: web icns
$(YARN) --cwd element-desktop run fetch --cfgdir ''
$(YARN) --cwd element-desktop run build:native:universal
linux: desktop-common linux: desktop-common
$(YARN) --cwd element-desktop run build64linux $(YARN) --cwd element-desktop run build:64 --linux deb pacman tar.xz
debian: desktop-common debian: desktop-common
$(YARN) --cwd element-desktop run build64deb $(YARN) --cwd element-desktop run build:64 --linux deb
rpm: desktop-common
$(YARN) --cwd element-desktop run build:64 --linux rpm
pacman: desktop-common pacman: desktop-common
$(YARN) --cwd element-desktop run build64pacman $(YARN) --cwd element-desktop run build:64 --linux pacman
appimage: desktop-common appimage: desktop-common
$(YARN) --cwd element-desktop run build64appimage $(YARN) --cwd element-desktop run build:64 --linux AppImage
windows: desktop-common windows: desktop-common
$(YARN) --cwd element-desktop run build64windows $(YARN) --cwd element-desktop run build:64 --windows nsis
windows-portable: desktop-common windows-portable: desktop-common
$(YARN) --cwd element-desktop run build64windows-portable $(YARN) --cwd element-desktop run build:64 --windows portable
macos: desktop-common macos: macos-common
$(YARN) --cwd element-desktop run build --mac dmg -c.mac.identity=null export CSC_IDENTITY_AUTO_DISCOVERY
export NOTARIZE_APPLE_ID
export CSC_NAME
$(YARN) --cwd element-desktop run build:universal --mac dmg
macos-mas: macos-common
export NOTARIZE_APPLE_ID
export CSC_NAME
$(YARN) --cwd element-desktop run build:universal --mac mas
local-pkgbuild: debian local-pkgbuild: debian
./create_local_pkgbuild.sh $(VERSION) $(DESKTOP_APP_NAME) $(PRODUCT_NAME) $(OUT_DEB64) ./create_local_pkgbuild.sh $(VERSION) $(DESKTOP_APP_NAME) $(PRODUCT_NAME) $(OUT_DEB64)
@ -90,6 +124,10 @@ debian-release: debian
mkdir -p $(CURRENT_RELEASE_DIR) mkdir -p $(CURRENT_RELEASE_DIR)
cp $(OUT_DEB64) $(CURRENT_RELEASE_DIR) cp $(OUT_DEB64) $(CURRENT_RELEASE_DIR)
rpm-release: rpm
mkdir -p $(CURRENT_RELEASE_DIR)
cp $(OUT_RPM64) $(CURRENT_RELEASE_DIR)
pacman-release: pacman pacman-release: pacman
mkdir -p $(CURRENT_RELEASE_DIR) mkdir -p $(CURRENT_RELEASE_DIR)
cp $(OUT_PAC64) $(CURRENT_RELEASE_DIR) cp $(OUT_PAC64) $(CURRENT_RELEASE_DIR)
@ -115,6 +153,14 @@ macos-release: macos
mkdir -p $(CURRENT_RELEASE_DIR) mkdir -p $(CURRENT_RELEASE_DIR)
cp $(OUT_MACOS) $(CURRENT_RELEASE_DIR) cp $(OUT_MACOS) $(CURRENT_RELEASE_DIR)
macos-mas-release: macos-mas
mkdir -p $(CURRENT_RELEASE_DIR)
cp $(OUT_MACOS_MAS) $(CURRENT_RELEASE_DIR)
bom.lock: element-desktop/yarn.lock element-web/yarn.lock matrix-js-sdk/yarn.lock matrix-react-sdk/yarn.lock
./build-bom.sh
bom: bom.lock
clean: clean:
$(YARN) --cwd matrix-js-sdk clean $(YARN) --cwd matrix-js-sdk clean
$(YARN) --cwd matrix-react-sdk clean $(YARN) --cwd matrix-react-sdk clean
@ -123,3 +169,4 @@ clean:
rm -f element-desktop/webapp rm -f element-desktop/webapp
rm -rf element-web/dist rm -rf element-web/dist
rm -rf local-pkgbuild rm -rf local-pkgbuild
rm -f bom.lock

View file

@ -3,7 +3,7 @@
SchildiChat Web/Desktop is a fork of Element [Web](https://github.com/vector-im/element-web)/[Desktop](https://github.com/vector-im/element-desktop). SchildiChat Web/Desktop is a fork of Element [Web](https://github.com/vector-im/element-web)/[Desktop](https://github.com/vector-im/element-desktop).
The most important changes of SchildiChat Web/Desktop compared to Element Web/Desktop are: The most important changes of SchildiChat Web/Desktop compared to Element Web/Desktop are:
- A unifed chat list for both direct and group chats - A unified chat list for both direct and group chats
- Message bubbles - Message bubbles
- Bigger items in the room list - Bigger items in the room list
- &hellip; and more! - &hellip; and more!
@ -18,7 +18,14 @@ Feel free to [join the discussion on matrix](https://matrix.to/#/#schildichat-we
## Building SchildiChat Web/Desktop ## Building SchildiChat Web/Desktop
This particular repo is a wrapper project for element-desktop, element-web, matrix-react-sdk and matrix-js-sdk in order to build SchildiChat Web **and** Desktop. This particular repo is a wrapper project for element-desktop, element-web, matrix-react-sdk and matrix-js-sdk. It's the recommended starting point to build SchildiChat for Web **and** Desktop.
<pre><code><b>schildichat-desktop</b> <i>&lt;-- this repo</i> (recommended starting point to build SchildiChat for Web <b>and</b> Desktop)
|-- <a href="https://github.com/SchildiChat/element-desktop">element-desktop</a> (electron wrapper)
|-- <a href="https://github.com/SchildiChat/element-web">element-web</a> ("skin" for matrix-react-sdk)
|-- <a href="https://github.com/SchildiChat/matrix-react-sdk">matrix-react-sdk</a> (most of the development happens here)
`-- <a href="https://github.com/SchildiChat/matrix-js-sdk">matrix-js-sdk</a> (Matrix client js sdk)
</code></pre>
### Install dependencies ### Install dependencies
@ -57,6 +64,14 @@ $ source .bashrc
brew install tcl rust node gpg vim curl git yarn git make gcc brew install tcl rust node gpg vim curl git yarn git make gcc
``` ```
#### Signed macOS builds
To sign a macOS build set the environment or make variable `CSC_IDENTITY_AUTO_DISCOVERY` to true
or set `CSC_NAME` to your certificate name or id.
To notarize a build with Apple set `NOTARIZE_APPLE_ID` to your AppleID and set the keychain item
`NOTARIZE_CREDS` to an App specific AppleID password.
### Initial setup ### Initial setup
@ -81,6 +96,7 @@ After that these packages which belong to to their respective make target should
- `windows-setup`: _SchildiChat_Setup_v\<version\>.exe_: file ready for **installation** on a **Windows** system - `windows-setup`: _SchildiChat_Setup_v\<version\>.exe_: file ready for **installation** on a **Windows** system
- `windows-portable`: _SchildiChat_win-portable_v\<version\>.zip_: **portable** version for a **Windows** system take SchildiChat together with your login data around with you (the archive contains a readme with **instructions** and **notes**) - `windows-portable`: _SchildiChat_win-portable_v\<version\>.zip_: **portable** version for a **Windows** system take SchildiChat together with your login data around with you (the archive contains a readme with **instructions** and **notes**)
- `macos`: Build a *.dmg for macOS - `macos`: Build a *.dmg for macOS
- `macos-mas`: Build a *.pkg for release in the Mac App Store
#### Additional make targets not used for GitHub releases #### Additional make targets not used for GitHub releases
- `pacman`: file ready for installation on an **Arch Linux** (based) system via `pacman -U schildichat-desktop-<version>.pacman` - `pacman`: file ready for installation on an **Arch Linux** (based) system via `pacman -U schildichat-desktop-<version>.pacman`

46
build-bom.sh Executable file
View file

@ -0,0 +1,46 @@
# /usr/bin/env bash
cat element-desktop/yarn.lock > bom.lock
echo "" >> bom.lock
cat element-web/yarn.lock >> bom.lock
echo "" >> bom.lock
cat matrix-js-sdk/yarn.lock >> bom.lock
echo "" >> bom.lock
cat matrix-react-sdk/yarn.lock >> bom.lock
echo "" >> bom.lock
# matrix-seshat
cat << EOF >> bom.lock
matrix-seshat@2.3.0:
version "2.3.0"
resolved "https://github.com/matrix-org/seshat/archive/refs/heads/master.tar.gz"
integrity sha512-y4xtZViRX/h0zczl5hiqWyFNK7np0vVujQ/l47g1Mm7B7mDTHAneSSy/d5GADeUIsezZyvT3qKhSCwSSyqS8Xw==
dependencies:
sqlcipher "~m1"
openssl "~1.1.1f"
sqlcipher@m1:
version "m1"
resolved "https://github.com/SchildiChat/sqlcipher/archive/refs/heads/m1.tar.gz"
integrity sha512-1Nk7J0dQyVedFLqnxUJQWrf/VBsUsfC5vAYaHDH3LRbWarfKDGYduZrhdBuzgAF+kMA237HaDt9Tq+CcXV0EJA==
openssl@1.1.1f:
version "1.1.1f"
resolved "https://www.openssl.org/source/openssl-1.1.1f.tar.gz"
integrity sha512-sAvZta1SmPvO7sa7GcGrDBBspc+zEXhJfFi/fg4M8w/MGcIPhOI68xzBJr8kR9Pk+EYduXuvp7149pVhky8ADA==
EOF
echo "" >> bom.lock
# keytar
cat << EOF >> bom.lock
keytar@^5.6.0:
version "5.6.0"
resolved "https://github.com/atom/node-keytar/archive/refs/tags/v5.6.0.tar.gz"
integrity sha512-dPdXLrm8AlqooT0ZS7y/mYif0DmQXoGGrqomwfl6ugIEHlpL1D+hJYhjyMC00TK924vOGD1a6OhDS2+RKEffXA==
dependencies:
libsecret "~0.20.3"
libsecret@0.20.3:
version "0.20.3"
resolved "https://gitlab.gnome.org/GNOME/libsecret/-/archive/0.20.3/libsecret-0.20.3.tar.gz"
integrity sha512-tbD1jNKEEW9bPWuyd5YZ68eQjHhXOsy5PseVwleWYMEXgrrPPGnGGrLzSFUXRzNulFceLMeUG49Qr1rnyvfa1A==
EOF

View file

@ -26,5 +26,12 @@
"url": "https://schildi.chat/desktop/privacy", "url": "https://schildi.chat/desktop/privacy",
"text": "Privacy Policy" "text": "Privacy Policy"
} }
],
"sc_update_announcement_room": {
"room_id_or_alias": "!JwTYjASnrfLEJQGQvt:matrix.org",
"via_servers": [
"supercable.onl",
"spiritcroc.de"
] ]
}
} }

View file

@ -15,7 +15,7 @@ release_notes_file="/tmp/scrn.md"
owner=SchildiChat owner=SchildiChat
repo=schildichat-desktop repo=schildichat-desktop
target=sc target=master
# Define variables # Define variables
GH_API="https://api.github.com" GH_API="https://api.github.com"

View file

@ -13,7 +13,6 @@ repourl="git@github.com:flathub/chat.schildi.desktop.git"
downloadurl="https://github.com/SchildiChat/schildichat-desktop/releases/download/v${version}/schildichat-desktop_${version}_amd64.deb" downloadurl="https://github.com/SchildiChat/schildichat-desktop/releases/download/v${version}/schildichat-desktop_${version}_amd64.deb"
sha256sum=($(sha256sum $debpath)) sha256sum=($(sha256sum $debpath))
debsize=($(wc -c $debpath))
debdate=$(date +%Y-%m-%d -r $debpath) debdate=$(date +%Y-%m-%d -r $debpath)
[ -d "$repopath" ] || git clone $repourl $repopath [ -d "$repopath" ] || git clone $repourl $repopath
@ -23,20 +22,15 @@ pushd "$repopath" > /dev/null
git fetch git fetch
git reset --hard origin/master git reset --hard origin/master
jsonFile="chat.schildi.desktop.json" yamlFile="chat.schildi.desktop.yaml"
jsonString=$(jq -r "." $jsonFile)
xmlFile="chat.schildi.desktop.appdata.xml" xmlFile="chat.schildi.desktop.appdata.xml"
jsonString=$(echo $jsonString | jq -r ".modules[]? |= ((select(.name?==\"schildichat\") | .sources[0].url = \"${downloadurl}\") // .)") sed -i "s|url: .* #SC:url|url: $downloadurl #SC:url|" "$yamlFile"
jsonString=$(echo $jsonString | jq -r ".modules[]? |= ((select(.name?==\"schildichat\") | .sources[0].sha256 = \"${sha256sum}\") // .)") sed -i "s|sha256: .* #SC:sha256|sha256: $sha256sum #SC:sha256|" "$yamlFile"
jsonString=$(echo $jsonString | jq -r ".modules[]? |= ((select(.name?==\"schildichat\") | .sources[0].size = ${debsize}) // .)")
echo $jsonString | jq --indent 4 "." > $jsonFile sed -i "s|^\s\s<releases>$| <releases>\n <release version=\"$version\" date=\"$debdate\"/>|" "$xmlFile"
sed -i "s|^\s\s<releases>$| <releases>\n <release version=\"$version\" date=\"$debdate\"/>|" $xmlFile git add $yamlFile $xmlFile
git add $jsonFile $xmlFile
git commit -m "Bump version to v$version" git commit -m "Bump version to v$version"
git push git push

@ -1 +1 @@
Subproject commit 820d3496094c6396509d048a83b6cb3e99a51fb3 Subproject commit de5f137d4e37c7527596b4d910cb13a23b090dca

@ -1 +1 @@
Subproject commit 37703fbbcdd3b032361efa72ec6a8ae491e428df Subproject commit 615ecdc6d663431807884d4bb7c1d66ea684a3c9

26
flake.lock generated Normal file
View file

@ -0,0 +1,26 @@
{
"nodes": {
"nixpkgs": {
"locked": {
"lastModified": 1630504215,
"narHash": "sha256-H5pzwo7z3e7ZatwuwWY25oZSejchO+ZH/XtMi8/PXLw=",
"owner": "yu-re-ka",
"repo": "nixpkgs",
"rev": "979e5916df0e6830a2b1ee999632de9a9d2beb23",
"type": "github"
},
"original": {
"owner": "NixOS",
"repo": "nixpkgs",
"type": "github"
}
},
"root": {
"inputs": {
"nixpkgs": "nixpkgs"
}
}
},
"root": "root",
"version": 7
}

29
flake.nix Normal file
View file

@ -0,0 +1,29 @@
{
description = "The SchildiChat Matrix client";
inputs.nixpkgs.url = github:NixOS/nixpkgs;
outputs = { self, nixpkgs }: let
systems = [ "x86_64-linux" "i686-linux" "aarch64-linux" "x86_64-darwin" "aarch64-darwin" ];
forAllSystems = f: nixpkgs.lib.genAttrs systems (system: f system);
overlay = import ./nix/overlay.nix;
# Memoize nixpkgs for different platforms for efficiency.
nixpkgsFor = forAllSystems (system:
import nixpkgs {
inherit system;
overlays = [ overlay ];
});
in {
inherit overlay;
packages = builtins.mapAttrs (system: pkgs: {
inherit (pkgs)
schildichat-web
schildichat-desktop
schildichat-desktop-wayland
;
}) nixpkgsFor;
};
}

View file

@ -0,0 +1,3 @@
{
"Show": "Mostrar"
}

View file

@ -0,0 +1,3 @@
{
"Show": "Näita"
}

View file

@ -0,0 +1 @@
{}

View file

@ -0,0 +1 @@
{}

View file

@ -0,0 +1,3 @@
{
"Show": "Afficher"
}

View file

@ -0,0 +1 @@
{}

View file

@ -0,0 +1,3 @@
{
"Show": "Rodyti"
}

View file

@ -0,0 +1,3 @@
{
"Show": "Vis"
}

View file

@ -0,0 +1,3 @@
{
"Show": "Tonen"
}

View file

@ -0,0 +1,3 @@
{
"Show": "Pokaż"
}

View file

@ -0,0 +1 @@
{}

View file

@ -0,0 +1,3 @@
{
"Show": "Показать"
}

View file

@ -0,0 +1 @@
{}

View file

@ -0,0 +1 @@
{}

View file

@ -0,0 +1 @@
{}

View file

@ -0,0 +1 @@
{}

View file

@ -0,0 +1 @@
{}

View file

@ -0,0 +1 @@
{}

View file

@ -0,0 +1 @@
{}

View file

@ -0,0 +1 @@
{}

View file

@ -0,0 +1 @@
{}

View file

@ -0,0 +1 @@
{}

View file

@ -0,0 +1 @@
{}

View file

@ -0,0 +1 @@
{}

View file

@ -0,0 +1 @@
{}

View file

@ -0,0 +1 @@
{}

View file

@ -0,0 +1 @@
{}

View file

@ -1,7 +1,13 @@
{ {
"Enable layout with message bubbles": "Povolit bubliny zpráv", "Enable layout with message bubbles": "Povolit bubliny zpráv",
"Show message bubbles on one side only": "Bubliny zpráv zobrazit pouze na jedné straně", "Show message bubbles on one side only": "Bubliny zpráv zobrazit pouze na jedné straně",
"Show message bubbles depending on the width either on both sides or only on one side": "Bubliny zpráv zobrazit v závislosti na šířce stránky buď na obou stranách, nebo pouze na jedné straně.", "Show message bubbles depending on the width either on both sides or only on one side": "Bubliny zpráv zobrazit v závislosti na šířce stránky buď na obou stranách, nebo pouze na jedné straně",
"Message bubbles": "Bubliny zpráv", "Message bubbles": "Bubliny zpráv",
"Normal priority": "Normální priorita" "Normal priority": "Normální priorita",
"Message layout": "Vzhled zpráv",
"Modern": "Moderní",
"Show people and rooms in a combined list": "Zobrazit lidi a místnosti v kombinovaném seznamu",
"Update notifications": "Aktualizace oznámení",
"Do you want to join a room notifying you about new releases? This is especially useful if your platform doesn't support automatic updates for SchildiChat (e.g. Windows and macOS).": "Chcete se připojit k místnosti, která vás bude informovat o nových verzích? To je užitečné zejména v případě, že vaše platforma nepodporuje automatické aktualizace SchildiChatu (např. Windows a macOS).",
"Don't ask again": "Neptat se znovu"
} }

View file

@ -103,5 +103,11 @@
"Unable to look up phone number": "Telefonnummer kann nicht gefunden werden", "Unable to look up phone number": "Telefonnummer kann nicht gefunden werden",
"The widget will verify your user ID, but won't be able to perform actions for you:": "Das Widget überprüft deine Benutzer-ID, kann jedoch keine Aktionen für dich ausführen:", "The widget will verify your user ID, but won't be able to perform actions for you:": "Das Widget überprüft deine Benutzer-ID, kann jedoch keine Aktionen für dich ausführen:",
"Abort": "Abbrechen", "Abort": "Abbrechen",
"Add existing room": "Existierenden Raum hinzufügen" "Add existing room": "Existierenden Raum hinzufügen",
"Message layout": "Nachrichtenlayout",
"Modern": "Modern",
"Show people and rooms in a combined list": "Personen und Räume in einer gemeinsamen Liste anzeigen",
"Update notifications": "Updatebenachrichtigungen",
"Do you want to join a room notifying you about new releases? This is especially useful if your platform doesn't support automatic updates for SchildiChat (e.g. Windows and macOS).": "Möchtest du einem Raum beitreten, der dich über neue Updates informiert? Das ist besonders nützlich, wenn deine Plattform keine automatischen Updates für SchildiChat unterstützt (z. B. Windows und macOS).",
"Don't ask again": "Nicht erneut fragen"
} }

View file

@ -1,7 +1,18 @@
{ {
"Enable layout with message bubbles": "Enable layout with message bubbles",
"Show message bubbles on one side only": "Show message bubbles on one side only", "Show message bubbles on one side only": "Show message bubbles on one side only",
"Show message bubbles depending on the width either on both sides or only on one side": "Show message bubbles depending on the width either on both sides or only on one side", "Show message bubbles depending on the width either on both sides or only on one side": "Show message bubbles depending on the width either on both sides or only on one side",
"Message bubbles": "Message bubbles", "Message bubbles": "Message bubbles",
"Normal priority": "Normal priority" "Normal priority": "Normal priority",
"Message layout": "Message layout",
"Modern": "Modern",
"Show people and rooms in a combined list": "Show people and rooms in a combined list",
"Update notifications": "Update notifications",
"Do you want to join a room notifying you about new releases? This is especially useful if your platform doesn't support automatic updates for SchildiChat (e.g. Windows and macOS).": "Do you want to join a room notifying you about new releases? This is especially useful if your platform doesn't support automatic updates for SchildiChat (e.g. Windows and macOS).",
"Don't ask again": "Don't ask again",
"System": "System",
"Add custom theme": "Add custom theme",
"Add theme": "Add theme",
"Theme in use": "Theme in use",
"Light theme": "Light theme",
"Dark theme": "Dark theme"
} }

View file

@ -0,0 +1,7 @@
{
"Show message bubbles on one side only": "mostrar las burbujas de mensajes en un solo lado",
"Message bubbles": "Burbujas de mensajes",
"Normal priority": "Prioridad normal",
"Enable layout with message bubbles": "Activar diseño con mensajes de burbujas",
"Show message bubbles depending on the width either on both sides or only on one side": "Mostrar mensajes de burbuja dependiendo del tamaño tanto en ambos lados o solo en un lado"
}

View file

@ -0,0 +1,7 @@
{
"Enable layout with message bubbles": "Sõnumimullidega paigutuse lubamine",
"Show message bubbles on one side only": "Näita sõnumimulle ainult ühel poolel",
"Show message bubbles depending on the width either on both sides or only on one side": "Näita sõnumimullid sõltuvalt laiusest kas mõlemal või ainult ühel küljel",
"Normal priority": "Tavaline prioriteet",
"Message bubbles": "Sõnumimullid"
}

View file

@ -0,0 +1,7 @@
{
"Show message bubbles on one side only": "Erakutsi mezu burbuilak alde batetik bakarrik",
"Message bubbles": "Mezu burbuilak",
"Normal priority": "Normala lehentasuna",
"Enable layout with message bubbles": "Gaitu diseinua batera mezua burbuilak",
"Show message bubbles depending on the width either on both sides or only on one side": "Erakutsi mezu burbuilak arabera zabalera bai, bi aldeetatik edo alde batetik bakarrik"
}

View file

@ -0,0 +1 @@
{}

View file

@ -0,0 +1,9 @@
{
"Show message bubbles on one side only": "Afficher les bulles de message sur un seul côté",
"Show message bubbles depending on the width either on both sides or only on one side": "Afficher les bulles de message selon la largeur soit sur un seul côté, soit sur les deux",
"Message bubbles": "Bulles de message",
"Normal priority": "Priorité normale",
"Message layout": "Disposition des messages",
"Modern": "Moderne",
"Show people and rooms in a combined list": "Afficher les personnes et les salons dans une liste combinée"
}

View file

@ -0,0 +1,7 @@
{
"Enable layout with message bubbles": "Üzenetbuborékos elrendezés engedélyezése",
"Show message bubbles on one side only": "Üzenetbuborékok megjelenítése csak az egyik oldalon",
"Message bubbles": "Üzenet buborékok",
"Show message bubbles depending on the width either on both sides or only on one side": "Üzenetbuborékok megjelenítése a szélességtől függően mindkét oldalon vagy csak az egyik oldalon",
"Normal priority": "Normál prioritás"
}

View file

@ -0,0 +1,7 @@
{
"Normal priority": "Normalaus prioriteto",
"Modern": "Modernus",
"Message bubbles": "Žinučių burbulai",
"Message layout": "Žinučių išdėstymas",
"Show people and rooms in a combined list": "Asmenų ir kambarių rodymas bendrame sąraše"
}

View file

@ -0,0 +1,12 @@
{
"Message bubbles": "Meldingsbobler",
"Normal priority": "Normal prioritet",
"Message layout": "Meldingsvisning",
"Modern": "Moderne",
"Show people and rooms in a combined list": "Vis folk og rom i kombinert liste",
"Update notifications": "Oppdater merknader",
"Show message bubbles on one side only": "Vis meldingsbobler kun på én side",
"Show message bubbles depending on the width either on both sides or only on one side": "Vis meldingsbobler avhengig av bredden enten på begge sider eller kun på én side",
"Don't ask again": "Ikke spør igjen",
"Do you want to join a room notifying you about new releases? This is especially useful if your platform doesn't support automatic updates for SchildiChat (e.g. Windows and macOS).": "Ønsker du at et rom skal gi deg merknader om nye utgivelser? Dette er spesielt nyttig hvis din plattform ikke støtter automatiske oppdateringer for SchildiChat (f.eks. Windows og macOS)."
}

View file

@ -0,0 +1,13 @@
{
"Show message bubbles on one side only": "Boodschappenbubbels slechts aan één kant tonen",
"Show message bubbles depending on the width either on both sides or only on one side": "Toon berichtbubbels, afhankelijk van de breedte, aan beide zijden of slechts aan één zijde",
"Message bubbles": "Boodschap bellen",
"Normal priority": "Normale prioriteit",
"Enable layout with message bubbles": "Schakel lay-out in met tekstballonnen",
"Update notifications": "Update meldingen",
"Do you want to join a room notifying you about new releases? This is especially useful if your platform doesn't support automatic updates for SchildiChat (e.g. Windows and macOS).": "Wilt u lid worden van een kamer waarin u wordt geïnformeerd over nieuwe releases? Dit is vooral handig als uw platform geen automatische updates voor SchildiChat ondersteunt (bijv. Windows en macOS).",
"Don't ask again": "Niet nogmaals vragen",
"Modern": "Modern",
"Message layout": "Berichtlayout",
"Show people and rooms in a combined list": "Toon personen en kamers in een gecombineerde lijst"
}

View file

@ -0,0 +1 @@
{}

View file

@ -0,0 +1,7 @@
{
"Enable layout with message bubbles": "Habilitar layout com bolhas de mensagem",
"Message bubbles": "Bolhas de mensagens",
"Normal priority": "Prioridade normal",
"Show message bubbles on one side only": "Mostrar bolhas de mensagem em apenas um lado",
"Show message bubbles depending on the width either on both sides or only on one side": "Mostrar bolhas de mensagem dependendo da largura de ambos os lados ou somente de um lado"
}

View file

@ -0,0 +1,13 @@
{
"Message bubbles": "Пузырьки сообщений",
"Normal priority": "Нормальный приоритет",
"Enable layout with message bubbles": "Включение макета с пузырьками сообщений",
"Show message bubbles on one side only": "Показывайте пузырьки с сообщениями только на одной стороне",
"Show message bubbles depending on the width either on both sides or only on one side": "Показывать пузырьки сообщений в зависимости от ширины либо с обеих сторон, либо только с одной стороны",
"Modern": "Современное",
"Message layout": "Оформление сообщений",
"Do you want to join a room notifying you about new releases? This is especially useful if your platform doesn't support automatic updates for SchildiChat (e.g. Windows and macOS).": "Вы хотите присоединиться к комнате, уведомляющей вас о новых релизах? Это особенно полезно, если ваша платформа не поддерживает автоматические обновления для SchildiChat (например, Windows и macOS).",
"Show people and rooms in a combined list": "Показать людей и комнаты в объединенном списке",
"Update notifications": "Уведомления об обновлениях",
"Don't ask again": "Не спрашивать больше"
}

View file

@ -0,0 +1,7 @@
{
"Enable layout with message bubbles": "Povolenie rozloženia s bublinami správ",
"Show message bubbles on one side only": "Zobrazenie bublín správ len na jednej strane",
"Show message bubbles depending on the width either on both sides or only on one side": "Zobrazenie bublín správ v závislosti od šírky buď na oboch stranách, alebo len na jednej strane",
"Message bubbles": "Bubliny správ",
"Normal priority": "Normálna priorita"
}

@ -1 +1 @@
Subproject commit a563025c04de1b3ee164c4985fe998054fd997f2 Subproject commit 4bc4575eb65aa68ea8080f5de2072a5949ca8c6d

@ -1 +1 @@
Subproject commit 60ac2184de12b7705820db02da6c909c6318c92e Subproject commit 55874eaa27ac68daa1fd67f739945cf51551f4ef

View file

@ -6,6 +6,8 @@ i18n_helper_path="$SCHILDI_ROOT/i18n-helper/index.js"
i18n_path="src/i18n/strings" i18n_path="src/i18n/strings"
i18n_overlay_path="$SCHILDI_ROOT/i18n-overlays" i18n_overlay_path="$SCHILDI_ROOT/i18n-overlays"
yarn=yarnpkg
add_upstream() { add_upstream() {
if git remote | grep -q upstream; then if git remote | grep -q upstream; then
echo "Remote named upstream already exists!" echo "Remote named upstream already exists!"
@ -101,18 +103,24 @@ automatic_i18n_reversion() {
} }
automatic_i18n_adjustment() { automatic_i18n_adjustment() {
node "$i18n_helper_path" "$SCHILDI_ROOT/matrix-react-sdk/$i18n_path" "$i18n_overlay_path/matrix-react-sdk" # matrix-react-sdk
pushd "$SCHILDI_ROOT/matrix-react-sdk" > /dev/null pushd "$SCHILDI_ROOT/matrix-react-sdk" > /dev/null
$yarn i18n
node "$i18n_helper_path" "$SCHILDI_ROOT/matrix-react-sdk/$i18n_path" "$i18n_overlay_path/matrix-react-sdk"
apply_i18n_changes "$i18n_path" apply_i18n_changes "$i18n_path"
popd > /dev/null popd > /dev/null
node "$i18n_helper_path" "$SCHILDI_ROOT/element-web/$i18n_path" "$i18n_overlay_path/element-web" # element-web
pushd "$SCHILDI_ROOT/element-web" > /dev/null pushd "$SCHILDI_ROOT/element-web" > /dev/null
$yarn i18n
node "$i18n_helper_path" "$SCHILDI_ROOT/element-web/$i18n_path" "$i18n_overlay_path/element-web"
apply_i18n_changes "$i18n_path" apply_i18n_changes "$i18n_path"
popd > /dev/null popd > /dev/null
node "$i18n_helper_path" "$SCHILDI_ROOT/element-desktop/$i18n_path" "$i18n_overlay_path/element-desktop" # element-desktop
pushd "$SCHILDI_ROOT/element-desktop" > /dev/null pushd "$SCHILDI_ROOT/element-desktop" > /dev/null
$yarn i18n
node "$i18n_helper_path" "$SCHILDI_ROOT/element-desktop/$i18n_path" "$i18n_overlay_path/element-desktop"
apply_i18n_changes "$i18n_path" apply_i18n_changes "$i18n_path"
popd > /dev/null popd > /dev/null
} }

17
nix/overlay.nix Normal file
View file

@ -0,0 +1,17 @@
final: prev: {
cleanSchildichatDesktopSource = src: with final.lib; cleanSourceWith {
filter = name: type: cleanSourceFilter name type
&& !(hasInfix "/node_modules/" name)
&& !(hasInfix "/nix/" name && hasSuffix ".nix" name)
;
inherit src;
};
schildichat-web = final.callPackage ./schildichat-web.nix {};
schildichat-desktop = final.callPackage ./schildichat-desktop.nix {
inherit (final.darwin.apple_sdk.frameworks) Security AppKit CoreServices;
};
schildichat-desktop-wayland = final.callPackage ./schildichat-desktop.nix {
inherit (final.darwin.apple_sdk.frameworks) Security AppKit CoreServices;
useWayland = true;
};
}

109
nix/schildichat-desktop.nix Normal file
View file

@ -0,0 +1,109 @@
{ lib
, stdenv
, fetchFromGitHub
, makeWrapper
, makeDesktopItem
, mkYarnPackage
, electron
, element-desktop # for native modules
, schildichat-web
, callPackage
, Security
, AppKit
, CoreServices
, useWayland ? false
, cleanSchildichatDesktopSource
, schildichat-desktop-src ? ../.
}:
let
packageJSON = schildichat-desktop-src + "/element-desktop/package.json";
yarnLock = schildichat-desktop-src + "/element-desktop/yarn.lock";
package = builtins.fromJSON (builtins.readFile packageJSON);
pname = "schildichat-desktop";
version = package.version;
executableName = pname;
electron_exec = if stdenv.isDarwin then "${electron}/Applications/Electron.app/Contents/MacOS/Electron" else "${electron}/bin/electron";
in mkYarnPackage rec {
inherit pname version packageJSON;
src = cleanSchildichatDesktopSource (schildichat-desktop-src + "/element-desktop");
nativeBuildInputs = [ makeWrapper ];
inherit (element-desktop) seshat keytar;
buildPhase = ''
runHook preBuild
export HOME=$(mktemp -d)
pushd deps/schildichat-desktop/
npx tsc
yarn run i18n
node ./scripts/copy-res.js
popd
rm -rf node_modules/matrix-seshat node_modules/keytar
ln -s $keytar node_modules/keytar
ln -s $seshat node_modules/matrix-seshat
runHook postBuild
'';
installPhase = ''
runHook preInstall
# resources
mkdir -p "$out/share/element"
ln -s '${schildichat-web}' "$out/share/element/webapp"
cp -r './deps/schildichat-desktop' "$out/share/element/electron"
cp -r './deps/schildichat-desktop/res/img' "$out/share/element"
rm "$out/share/element/electron/node_modules"
cp -r './node_modules' "$out/share/element/electron"
cp $out/share/element/electron/lib/i18n/strings/en_EN.json $out/share/element/electron/lib/i18n/strings/en-us.json
ln -s $out/share/element/electron/lib/i18n/strings/en{-us,}.json
# icons
for icon in $out/share/element/electron/build/icons/*.png; do
mkdir -p "$out/share/icons/hicolor/$(basename $icon .png)/apps"
ln -s "$icon" "$out/share/icons/hicolor/$(basename $icon .png)/apps/element.png"
done
# desktop item
mkdir -p "$out/share"
ln -s "${desktopItem}/share/applications" "$out/share/applications"
# executable wrapper
makeWrapper '${electron_exec}' "$out/bin/${executableName}" \
--add-flags "$out/share/element/electron${lib.optionalString useWayland " --enable-features=UseOzonePlatform --ozone-platform=wayland"}"
runHook postInstall
'';
# Do not attempt generating a tarball for element-web again.
# note: `doDist = false;` does not work.
distPhase = ''
true
'';
# The desktop item properties should be kept in sync with data from upstream:
# https://github.com/vector-im/element-desktop/blob/develop/package.json
desktopItem = makeDesktopItem {
name = "schildichat-desktop";
exec = "${executableName} %u";
icon = "schildichat";
desktopName = "SchildiChat";
genericName = "Matrix Client";
categories = "Network;InstantMessaging;Chat;";
extraEntries = ''
StartupWMClass=schildichat
MimeType=x-scheme-handler/element;
'';
};
}

75
nix/schildichat-web.nix Normal file
View file

@ -0,0 +1,75 @@
{ stdenv
, mkYarnModules
, nodejs
, cleanSchildichatDesktopSource
, schildichat-desktop-src ? ../.
, ...
}:
let
packageJSON = schildichat-desktop-src + "/element-web/package.json";
yarnLock = schildichat-desktop-src + "/element-web/yarn.lock";
package = builtins.fromJSON (builtins.readFile packageJSON);
pname = "schildichat-web";
version = package.version;
modules = mkYarnModules {
name = "${pname}-modules-${version}";
inherit pname version packageJSON yarnLock;
};
in stdenv.mkDerivation {
inherit pname version;
src = cleanSchildichatDesktopSource schildichat-desktop-src;
buildInputs = [ nodejs ];
postPatch = ''
patchShebangs .
'';
configurePhase = ''
runHook preConfigure
cp configs/sc/config.json element-web/
cp -r ${modules}/node_modules node_modules
chmod u+rwX -R node_modules
rm -rf node_modules/matrix-react-sdk
ln -s $PWD/matrix-react-sdk node_modules/
ln -s $PWD/node_modules matrix-react-sdk/
ln -s $PWD/node_modules element-web/
runHook postConfigure
'';
buildPhase = ''
runHook preBuild
pushd matrix-react-sdk
node_modules/.bin/reskindex -h ../element-web/src/header
popd
pushd element-web
node scripts/copy-res.js
node_modules/.bin/reskindex -h ../element-web/src/header
node_modules/.bin/webpack --progress --mode production
popd
runHook postBuild
'';
installPhase = ''
runHook preInstall
cp -r element-web/webapp $out
runHook postInstall
'';
passthru = {
inherit modules;
};
}