Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

update master branch #237

Merged
merged 23 commits into from
Feb 28, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
23 commits
Select commit Hold shift + click to select a range
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 2 additions & 6 deletions Containerfile.debian
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
ARG NODE_VERSION
FROM node:${NODE_VERSION}
FROM docker.io/node:${NODE_VERSION}-buster

RUN apt-get -qq update && apt-get -qq install --no-install-recommends -y \
curl \
Expand All @@ -23,8 +23,4 @@ ENV RUSTUP_HOME=/usr/local/rustup \
PATH=/usr/local/cargo/bin:$PATH
RUN curl --proto '=https' --tlsv1.2 -sSf https://sh.rustup.rs | sh -s -- -y --no-modify-path --profile minimal

COPY . /project
WORKDIR /project

# There might be remnants of the host which break the build
RUN make fixup
WORKDIR /project
13 changes: 7 additions & 6 deletions Containerfile.fedora
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
FROM fedora:latest
FROM docker.io/fedora:38

RUN dnf install -y openssl openssl-devel rust cargo llvm libsecret libsecret-devel g++ ruby-devel gcc make rpm-build libffi-devel tcl libxcrypt-compat
RUN dnf install -y openssl openssl-devel cargo llvm libsecret libsecret-devel sqlcipher sqlcipher-devel g++ ruby-devel gcc make rpm-build libffi-devel tcl libxcrypt-compat pkgconf perl

# node setup
ARG NODE_VERSION
Expand All @@ -13,8 +13,9 @@ RUN npm install -g yarn
RUN npm install -g node-gyp
RUN gem install --no-user-install --no-document fpm

COPY . /project
WORKDIR /project
ENV RUSTUP_HOME=/usr/local/rustup \
CARGO_HOME=/usr/local/cargo \
PATH=/usr/local/cargo/bin:$PATH
RUN curl --proto '=https' --tlsv1.2 -sSf https://sh.rustup.rs | sh -s -- -y --no-modify-path --profile minimal

# There might be remnants of the host which break the build
RUN make fixup
WORKDIR /project
13 changes: 13 additions & 0 deletions Containerfile.windows
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
ARG CONTAINER_IMAGE_DEBIAN
FROM ${CONTAINER_IMAGE_DEBIAN}:latest

RUN dpkg --add-architecture i386 && apt-get update && apt-get install --no-install-recommends -y \
wine \
wine32 \
wine64 \
libwine \
libwine:i386 \
fonts-wine \
zip

WORKDIR /project
34 changes: 24 additions & 10 deletions Makefile
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
.PHONY: all setup regenerate-i18n web desktop-common linux debian rpm pacman local-pkgbuild local-pkgbuild-install windows windows-portable
.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: container-build-debian container-build-fedora
.PHONY: container-web-release container-debian-release container-rpm-release container-appimage-release
.PHONY: container-build-debian container-build-fedora container-build-windows
.PHONY: container-web-release container-debian-release container-rpm-release container-appimage-release container-windows-release container-release container-local-pkgbuild
.PHONY: clean undo_setup fixup
.PHONY: fix_yarn_cache

Expand All @@ -12,7 +12,7 @@ all: web

YARN ?= yarnpkg
CONTAINER_ENGINE ?= podman
NODE_VERSION ?= 16
NODE_VERSION ?= 18

VERSION := $(shell grep version element-desktop/package.json | sed 's|.*: \"\(.*\)\",|\1|')
WEB_APP_NAME := $(shell grep '"name"' element-web/package.json | head -n 1 | sed 's|.*: \"\(.*\)\",|\1|')
Expand All @@ -39,6 +39,7 @@ OUT_MACOS_MAS := $(DESKTOP_OUT)/mas-universal/$(PRODUCT_NAME).app

CONTAINER_IMAGE_DEBIAN := schildichat-desktop-containerbuild-debian
CONTAINER_IMAGE_FEDORA := schildichat-desktop-containerbuild-fedora
CONTAINER_IMAGE_WINDOWS := schildichat-desktop-containerbuild-windows

RELEASE_DIR := release
CURRENT_RELEASE_DIR := $(RELEASE_DIR)/$(VERSION)
Expand Down Expand Up @@ -76,7 +77,7 @@ web: setup

desktop-common: web
$(YARN) --cwd element-desktop run fetch --cfgdir ''
SQLCIPHER_STATIC=1 $(YARN) --cwd element-desktop run build:native
SQLCIPHER_BUNDLED=1 $(YARN) --cwd element-desktop run build:native

macos-common: web icns
$(YARN) --cwd element-desktop run fetch --cfgdir ''
Expand Down Expand Up @@ -162,22 +163,35 @@ macos-mas-release: macos-mas
cp $(OUT_MACOS_MAS) $(CURRENT_RELEASE_DIR)

container-build-debian:
$(CONTAINER_ENGINE) build -t $(CONTAINER_IMAGE_DEBIAN) -f Containerfile.debian --build-arg NODE_VERSION=$(NODE_VERSION) .
$(CONTAINER_ENGINE) build --security-opt seccomp=unconfined --security-opt label=disable -t $(CONTAINER_IMAGE_DEBIAN) -f Containerfile.debian --build-arg NODE_VERSION=$(NODE_VERSION) .

container-build-fedora:
$(CONTAINER_ENGINE) build -t $(CONTAINER_IMAGE_FEDORA) -f Containerfile.fedora --build-arg NODE_VERSION=$(NODE_VERSION) .
$(CONTAINER_ENGINE) build --security-opt seccomp=unconfined --security-opt label=disable -t $(CONTAINER_IMAGE_FEDORA) -f Containerfile.fedora --build-arg NODE_VERSION=$(NODE_VERSION) .

container-build-windows: container-build-debian
$(CONTAINER_ENGINE) build --security-opt seccomp=unconfined --security-opt label=disable -t $(CONTAINER_IMAGE_WINDOWS) -f Containerfile.windows --build-arg CONTAINER_IMAGE_DEBIAN=$(CONTAINER_IMAGE_DEBIAN) .

container-web-release: container-build-debian
$(CONTAINER_ENGINE) run --rm -ti -v $(PWD)/release:/project/release --security-opt label=disable $(CONTAINER_IMAGE_DEBIAN):latest make web-release
$(CONTAINER_ENGINE) run --rm -ti -v $(PWD):/project --security-opt seccomp=unconfined --security-opt label=disable $(CONTAINER_IMAGE_DEBIAN):latest make web-release

container-debian-release: container-build-debian
$(CONTAINER_ENGINE) run --rm -ti -v $(PWD)/release:/project/release --security-opt label=disable $(CONTAINER_IMAGE_DEBIAN):latest make debian-release
$(CONTAINER_ENGINE) run --rm -ti -v $(PWD):/project --security-opt seccomp=unconfined --security-opt label=disable $(CONTAINER_IMAGE_DEBIAN):latest make debian-release

container-rpm-release: container-build-fedora
$(CONTAINER_ENGINE) run --rm -ti -v $(PWD)/release:/project/release --security-opt label=disable $(CONTAINER_IMAGE_FEDORA):latest make rpm-release
$(CONTAINER_ENGINE) run --rm -ti -v $(PWD):/project --security-opt seccomp=unconfined --security-opt label=disable $(CONTAINER_IMAGE_FEDORA):latest make rpm-release

container-appimage-release: container-build-debian
$(CONTAINER_ENGINE) run --rm -ti -v $(PWD)/release:/project/release --security-opt label=disable $(CONTAINER_IMAGE_DEBIAN):latest make appimage-release
$(CONTAINER_ENGINE) run --rm -ti -v $(PWD):/project --security-opt seccomp=unconfined --security-opt label=disable $(CONTAINER_IMAGE_DEBIAN):latest make appimage-release

container-windows-release: container-build-windows
$(CONTAINER_ENGINE) run --rm -ti -v $(PWD):/project --security-opt seccomp=unconfined --security-opt label=disable $(CONTAINER_IMAGE_WINDOWS):latest make windows-release

container-release: container-build-windows container-build-fedora
$(CONTAINER_ENGINE) run --rm -ti -v $(PWD):/project --security-opt seccomp=unconfined --security-opt label=disable $(CONTAINER_IMAGE_WINDOWS):latest make web-release debian-release appimage-release windows-setup-release windows-portable-release
$(CONTAINER_ENGINE) run --rm -ti -v $(PWD):/project --security-opt seccomp=unconfined --security-opt label=disable $(CONTAINER_IMAGE_FEDORA):latest make rpm-release

container-local-pkgbuild: container-build-debian
$(CONTAINER_ENGINE) run --rm -ti -v $(PWD):/project --security-opt seccomp=unconfined --security-opt label=disable $(CONTAINER_IMAGE_DEBIAN):latest make local-pkgbuild

bom.lock: element-desktop/yarn.lock element-web/yarn.lock matrix-js-sdk/yarn.lock matrix-react-sdk/yarn.lock
./build-bom.sh
Expand Down
2 changes: 1 addition & 1 deletion element-desktop
Submodule element-desktop updated 94 files
+76 −0 .github/ISSUE_TEMPLATE/bug-desktop.yml
+1 −0 .github/ISSUE_TEMPLATE/config.yml
+36 −0 .github/ISSUE_TEMPLATE/enhancement.yml
+0 −10 .github/ISSUE_TEMPLATE/please-don-t-file-issues-here---use-the-element-web-project.md
+1 −1 .github/workflows/backport.yml
+14 −5 .github/workflows/build_and_deploy.yaml
+17 −10 .github/workflows/build_and_test.yaml
+73 −24 .github/workflows/build_linux.yaml
+6 −3 .github/workflows/build_macos.yaml
+26 −2 .github/workflows/build_prepare.yaml
+4 −4 .github/workflows/build_windows.yaml
+3 −3 .github/workflows/dockerbuild.yaml
+262 −0 CHANGELOG.md
+1 −1 dockerbuild/Dockerfile
+3 −0 dockerbuild/aarch64/.cargo/config.toml
+11 −0 dockerbuild/aarch64/.env
+3 −3 docs/native-node-modules.md
+9 −1 element.io/nightly/config.json
+0 −12 element.io/nightly/control.template
+0 −9 element.io/nightly/riot-nightly_2020071502_all/DEBIAN/control
+8 −0 element.io/release/config.json
+0 −14 element.io/release/control.template
+0 −9 element.io/release/riot-desktop_1.7.0_all/DEBIAN/control
+1 −1 hak/keytar/build.ts
+14 −273 hak/matrix-seshat/build.ts
+3 −18 hak/matrix-seshat/check.ts
+0 −131 hak/matrix-seshat/fetchDeps.ts
+1 −7 hak/matrix-seshat/hak.json
+0 −14 hak/matrix-seshat/sqlcipher-4.3.0-win.patch
+1 −1 hak/tsconfig.json
+44 −34 package.json
+19 −18 scripts/generate-builder-config.ts
+25 −0 scripts/get-version.ts
+0 −1 scripts/hak/README.md
+1 −1 scripts/hak/clean.ts
+2 −2 scripts/hak/copy.ts
+1 −1 scripts/hak/fetchDeps.ts
+1 −5 scripts/hak/hakEnv.ts
+4 −4 scripts/hak/index.ts
+1 −1 scripts/tsconfig.json
+1 −1 src/electron-main.ts
+0 −1 src/i18n/strings/ar.json
+0 −1 src/i18n/strings/be.json
+0 −1 src/i18n/strings/bg.json
+0 −1 src/i18n/strings/bn.json
+0 −1 src/i18n/strings/ca.json
+1 −1 src/i18n/strings/cs.json
+1 −1 src/i18n/strings/de.json
+3 −2 src/i18n/strings/el.json
+1 −1 src/i18n/strings/en_EN.json
+0 −1 src/i18n/strings/en_US.json
+0 −1 src/i18n/strings/eo.json
+0 −1 src/i18n/strings/es.json
+1 −1 src/i18n/strings/et.json
+0 −1 src/i18n/strings/fa.json
+0 −1 src/i18n/strings/fi.json
+0 −1 src/i18n/strings/fr.json
+0 −1 src/i18n/strings/fy.json
+0 −1 src/i18n/strings/gl.json
+0 −1 src/i18n/strings/he.json
+0 −1 src/i18n/strings/hu.json
+1 −1 src/i18n/strings/id.json
+0 −1 src/i18n/strings/is.json
+1 −1 src/i18n/strings/it.json
+0 −1 src/i18n/strings/ja.json
+0 −1 src/i18n/strings/lo.json
+0 −1 src/i18n/strings/lt.json
+0 −1 src/i18n/strings/lv.json
+0 −1 src/i18n/strings/nb_NO.json
+0 −1 src/i18n/strings/nl.json
+3 −2 src/i18n/strings/nn.json
+10 −9 src/i18n/strings/pl.json
+0 −1 src/i18n/strings/pt_BR.json
+0 −1 src/i18n/strings/ro.json
+5 −5 src/i18n/strings/ru.json
+0 −1 src/i18n/strings/si.json
+2 −2 src/i18n/strings/sk.json
+1 −1 src/i18n/strings/sv.json
+0 −1 src/i18n/strings/ta.json
+0 −1 src/i18n/strings/tr.json
+46 −1 src/i18n/strings/uk.json
+6 −5 src/i18n/strings/vi.json
+0 −1 src/i18n/strings/zh_Hans.json
+1 −1 src/i18n/strings/zh_Hant.json
+1 −1 src/ipc.ts
+2 −2 src/seshat.ts
+17 −13 src/squirrelhooks.ts
+34 −4 src/updater.ts
+3 −2 src/vectormenu.ts
+1 −0 src/webcontents-handler.ts
+3 −3 test/launch-test.ts
+1 −1 test/tsconfig.json
+1 −1 tsconfig.json
+1,417 −1,147 yarn.lock
2 changes: 1 addition & 1 deletion element-web
Submodule element-web updated 119 files
6 changes: 3 additions & 3 deletions flake.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

3 changes: 2 additions & 1 deletion i18n-overlays/matrix-react-sdk/cs.json
Original file line number Diff line number Diff line change
Expand Up @@ -50,5 +50,6 @@
"Mixed": "Smíšené",
"Sound pack": "Balíček zvuků",
"Schildi: Softer sounds for reduced anxiety": "Schildi: Jemnější zvuky pro snížení úzkosti",
"Classic: The same sharp sounds as Element": "Klasické: Stejně ostré zvuky jako Element"
"Classic: The same sharp sounds as Element": "Klasické: Stejně ostré zvuky jako Element",
"React with \"%(reaction)s\"": "Reagovat pomocí \"%(reaction)s\""
}
24 changes: 23 additions & 1 deletion i18n-overlays/matrix-react-sdk/hu.json
Original file line number Diff line number Diff line change
Expand Up @@ -3,5 +3,27 @@
"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"
"Normal priority": "Normál prioritás",
"Show people and rooms in a combined list": "Személyek és szobák megjelenítése egy egyesített listában",
"Update notifications": "Értesítések frissítése",
"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).": "Szeretne csatlakozni olyan szobához, amely értesíti Önt az új megjelenésekről? Ez különösen akkor hasznos, ha az Ön platformja nem támogatja a SchildiChat automatikus frissítéseit (pl. Windows és macOS).",
"System": "Rendszer",
"Show all rooms in Home": "Az összes szoba megjelenítése a kezdőoldalon",
"All rooms you're in will appear in Home.": "Az összes szoba, amelyben tartózkodik, megjelenik a Kezdőlapon.",
"Mark as read": "Olvasottnak jelöl",
"Enable YouTube embed player": "YouTube beágyazott lejátszó engedélyezése",
"Home is useful for getting an overview of everything. Keep in mind that disabling it could leave you unable to see certain rooms.": "A Kezdőlap hasznos ahhoz, hogy mindenről áttekintést kapjunk. Ne feledje, hogy a kikapcsolásával bizonyos szobákat nem fog látni.",
"Schildi: Softer sounds for reduced anxiety": "Schildi: Lágyabb hangok a kevesebb stresszért",
"Sound pack": "Hangcsomag",
"Classic: The same sharp sounds as Element": "Klasszikus: Ugyanazok az éles hangok, mint az Elementnél",
"Don't ask again": "Ne kérdezze újra",
"Light theme": "Világos téma",
"Dark theme": "Sötét téma",
"Mark as unread": "Olvasatlannak jelöl",
"Collapse additional buttons": "További gombok összecsukása",
"Theme": "Téma",
"Room list": "Szobák listája",
"Font size and typeface": "Betűméret és betűtípus",
"Message layout": "Üzenetek elrendezése",
"Modern": "Modern"
}
3 changes: 2 additions & 1 deletion i18n-overlays/matrix-react-sdk/id.json
Original file line number Diff line number Diff line change
Expand Up @@ -49,5 +49,6 @@
"Mixed": "Campur",
"Sound pack": "Paket suara",
"Schildi: Softer sounds for reduced anxiety": "Schildi: Suara lebih lembut untuk mengurangi kecemasan",
"Classic: The same sharp sounds as Element": "Klasik: Suara keras yang biasa seperti Element"
"Classic: The same sharp sounds as Element": "Klasik: Suara keras yang biasa seperti Element",
"React with \"%(reaction)s\"": "Reaksi dengan \"%(reaction)s\""
}
10 changes: 9 additions & 1 deletion i18n-overlays/matrix-react-sdk/zh_Hans.json
Original file line number Diff line number Diff line change
Expand Up @@ -42,5 +42,13 @@
"Mark as unread": "标记为未读",
"Home is useful for getting an overview of everything. Keep in mind that disabling it could leave you unable to see certain rooms.": "主页对于概览所有消息来说非常有用。请注意:禁用主页可能会让您无法看到某些房间。",
"Enable YouTube embed player": "启用 YouTube 嵌入式播放器",
"Collapse additional buttons": "折叠额外的按钮"
"Collapse additional buttons": "折叠额外的按钮",
"Round": "圆角",
"React with \"%(reaction)s\"": "与 \"%(reaction)s\" 互动",
"Schildi: Softer sounds for reduced anxiety": "Schildi: 舒缓音效以减少焦虑",
"Mixed": "混合",
"Extra round": "超圆角",
"Sound pack": "音频包",
"Classic: The same sharp sounds as Element": "Classic: 与 Element 相同的尖锐声音",
"Corners": "边缘"
}
2 changes: 1 addition & 1 deletion matrix-js-sdk
Submodule matrix-js-sdk updated 177 files
2 changes: 1 addition & 1 deletion matrix-react-sdk
Submodule matrix-react-sdk updated 1294 files
8 changes: 7 additions & 1 deletion merge_upstream.sh
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,13 @@ automatic_i18n_reversion
automatic_packagejson_reversion

# Merge upstream
get_latest_upstream_tag

# Check if specific version to merge passed
if [ -z "$1" ]; then
get_latest_upstream_tag
else
latest_upstream_tag="$1"
fi
forelement_repos git merge "$latest_upstream_tag"

get_current_mxsdk_tags
Expand Down
Loading