diff --git a/.containerignore b/.containerignore deleted file mode 100644 index ae02570..0000000 --- a/.containerignore +++ /dev/null @@ -1 +0,0 @@ -release/ \ No newline at end of file diff --git a/.github/workflows/stale.yml b/.github/workflows/stale.yml deleted file mode 100644 index 674a67d..0000000 --- a/.github/workflows/stale.yml +++ /dev/null @@ -1,17 +0,0 @@ -name: 'Close stale issues' -on: - schedule: - - cron: '30 1 * * *' - -jobs: - stale: - runs-on: ubuntu-latest - steps: - - uses: actions/stale@v6 - with: - stale-issue-message: 'This issue is stale because it has been open 150 days with no activity. Remove stale label or comment or this will be closed in 14 days.' - days-before-issue-stale: 150 - days-before-issue-close: 14 - days-before-pr-stale: -1 - days-before-pr-close: -1 - exempt-issue-labels: 'longterm,enhancement,parity-with-android,prio:medium,prio:high,electron issue,encrypted room search,build infrastructure' diff --git a/Containerfile.debian b/Containerfile.debian deleted file mode 100644 index 041c64e..0000000 --- a/Containerfile.debian +++ /dev/null @@ -1,30 +0,0 @@ -ARG NODE_VERSION -FROM node:${NODE_VERSION} - -RUN apt-get -qq update && apt-get -qq install --no-install-recommends -y \ - curl \ - g++ \ - gcc \ - git \ - jq \ - libarchive-tools \ - libsecret-1-dev \ - libsqlcipher-dev \ - libssl-dev \ - make \ - openssl \ - pkg-config \ - python \ - tcl \ - vim - -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 - -COPY . /project -WORKDIR /project - -# There might be remnants of the host which break the build -RUN make fixup \ No newline at end of file diff --git a/Containerfile.fedora b/Containerfile.fedora deleted file mode 100644 index a61578c..0000000 --- a/Containerfile.fedora +++ /dev/null @@ -1,20 +0,0 @@ -FROM fedora:latest - -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 - -# node setup -ARG NODE_VERSION -RUN mkdir -p /usr/local/n -RUN mkdir -p /usr/local/bin /usr/local/lib /usr/local/include /usr/local/share -RUN curl -L https://raw.githubusercontent.com/tj/n/master/bin/n -o n -RUN bash n ${NODE_VERSION} -RUN npm install -g n -RUN npm install -g yarn -RUN npm install -g node-gyp -RUN gem install --no-user-install --no-document fpm - -COPY . /project -WORKDIR /project - -# There might be remnants of the host which break the build -RUN make fixup diff --git a/Makefile b/Makefile index 205cea9..21c3bf4 100644 --- a/Makefile +++ b/Makefile @@ -1,18 +1,13 @@ .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: clean undo_setup fixup -.PHONY: fix_yarn_cache CFGDIR ?= configs/sc all: web YARN ?= yarnpkg -CONTAINER_ENGINE ?= podman -NODE_VERSION ?= 16 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|') @@ -37,9 +32,6 @@ OUT_WIN64_PORTABLE_BETTER_NAME := $(PRODUCT_NAME)_win-portable_v$(VERSION) OUT_MACOS := $(DESKTOP_OUT)/$(PRODUCT_NAME)-$(VERSION)-universal.dmg OUT_MACOS_MAS := $(DESKTOP_OUT)/mas-universal/$(PRODUCT_NAME).app -CONTAINER_IMAGE_DEBIAN := schildichat-desktop-containerbuild-debian -CONTAINER_IMAGE_FEDORA := schildichat-desktop-containerbuild-fedora - RELEASE_DIR := release CURRENT_RELEASE_DIR := $(RELEASE_DIR)/$(VERSION) @@ -161,31 +153,10 @@ macos-mas-release: macos-mas mkdir -p $(CURRENT_RELEASE_DIR) 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-build-fedora: - $(CONTAINER_ENGINE) build -t $(CONTAINER_IMAGE_FEDORA) -f Containerfile.fedora --build-arg NODE_VERSION=$(NODE_VERSION) . - -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-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-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-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 - 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 -fix_yarn_cache: - $(YARN) cache list || $(YARN) cache clean - clean: $(YARN) --cwd matrix-js-sdk clean $(YARN) --cwd matrix-react-sdk clean @@ -199,7 +170,7 @@ clean: undo_setup: rm -rf element-desktop/node_modules element-web/node_modules matrix-react-sdk/node_modules matrix-js-sdk/node_modules i18n-helper/node_modules element-desktop/.hak -fixup: undo_setup fix_yarn_cache +fixup: undo_setup make setup make clean make setup diff --git a/configs/sc/config.json b/configs/sc/config.json index 0402a78..2916dee 100644 --- a/configs/sc/config.json +++ b/configs/sc/config.json @@ -1,11 +1,6 @@ { "update_base_url": null, - "default_server_config": { - "m.homeserver": { - "base_url": "https://matrix-client.matrix.org", - "server_name": "matrix.org" - } - }, + "default_server_name": "matrix.org", "brand": "SchildiChat", "integrations_ui_url": "https://scalar.vector.im/", "integrations_rest_url": "https://scalar.vector.im/api", @@ -16,13 +11,10 @@ "https://scalar-staging.vector.im/api", "https://scalar-staging.riot.im/scalar/api" ], - "show_labs_settings": true, - "room_directory": { + "showLabsSettings": true, + "roomDirectory": { "servers": [ - "matrix.org", - "gitter.im", - "libera.chat", - "schildi.chat" + "matrix.org" ] }, "enable_presence_by_hs_url": { diff --git a/element-desktop b/element-desktop index 16d3620..07d1283 160000 --- a/element-desktop +++ b/element-desktop @@ -1 +1 @@ -Subproject commit 16d3620517cd22e92b52807bc7eb6cc8b4414780 +Subproject commit 07d1283f2388a1c748f6d5848740730ad6b7ee00 diff --git a/element-web b/element-web index e5afedf..d7e4930 160000 --- a/element-web +++ b/element-web @@ -1 +1 @@ -Subproject commit e5afedfac20168e491fc9a2b59cd1c8a07c3c35c +Subproject commit d7e4930ab4efced752493957b37c1afb0aeb9d0b diff --git a/hard_reset_repos.sh b/hard_reset_repos.sh deleted file mode 100755 index 4e17e2a..0000000 --- a/hard_reset_repos.sh +++ /dev/null @@ -1,15 +0,0 @@ -#!/bin/bash - -set -e - -mydir="$(dirname "$(realpath "$0")")" - -cd "$mydir" - -source ./merge_helpers.sh - -# Note: this doesn't delete files starting with a dot, -# and in particular not the '.git' directory, which we -# want to keep -forall_repos bash -c 'rm -rf *' -forall_repos git reset HEAD --hard diff --git a/i18n-helper/index.js b/i18n-helper/index.js index 11e3fc4..f226e47 100644 --- a/i18n-helper/index.js +++ b/i18n-helper/index.js @@ -35,13 +35,7 @@ function writeStrings(p, strings) { let strings = readStrings(p); for (const key of Object.keys(strings)) { - strings[key] = strings[key] - .replace(/Element/g, "SchildiChat") - .replace(/element\.io/g, "schildi.chat") - - // It's still Element Call - .replace(/SchildiChat Call/g, "Element Call") - .replace(/SchildiChat-Call/g, "Element-Call"); + strings[key] = strings[key].replace(/Element/g, "SchildiChat").replace(/element\.io/g, "schildi.chat"); } if (overlayPath) { diff --git a/i18n-overlays/element-desktop/hu.json b/i18n-overlays/element-desktop/hu.json index 8598663..0967ef4 100644 --- a/i18n-overlays/element-desktop/hu.json +++ b/i18n-overlays/element-desktop/hu.json @@ -1,3 +1 @@ -{ - "Show": "Mutat" -} +{} diff --git a/i18n-overlays/matrix-react-sdk/cs.json b/i18n-overlays/matrix-react-sdk/cs.json index a0816fc..861e944 100644 --- a/i18n-overlays/matrix-react-sdk/cs.json +++ b/i18n-overlays/matrix-react-sdk/cs.json @@ -21,8 +21,8 @@ "MXID": "MXID", "In group chats": "Ve skupinových chatech", "In public rooms": "Ve veřejných místnostech", - "All rooms you're in will appear in Home.": "Všechny místnosti, ve kterých se nacházíte, se zobrazí v Úvodu.", - "Show all rooms in Home": "Zobrazit všechny místnosti v Úvodu", + "All rooms you're in will appear in Home.": "Všechny místnosti, ve kterých se nacházíte, se zobrazí v domovském zobrazení.", + "Show all rooms in Home": "Ukázat všechny místnosti v domovském zobrazení", "Show people in spaces": "Ukázat lidi v prostorech", "Show notification badges for People in Spaces": "Zobrazit odznaky oznámení pro Lidé v prostorech", "Return to the room previously opened in a space": "Návrat do dříve otevřené místnosti v prostoru", @@ -50,6 +50,5 @@ "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", - "React with \"%(reaction)s\"": "Reagovat pomocí \"%(reaction)s\"" + "Classic: The same sharp sounds as Element": "Klasické: Stejně ostré zvuky jako Element" } diff --git a/i18n-overlays/matrix-react-sdk/en_EN.json b/i18n-overlays/matrix-react-sdk/en_EN.json index 2c59706..7732df7 100644 --- a/i18n-overlays/matrix-react-sdk/en_EN.json +++ b/i18n-overlays/matrix-react-sdk/en_EN.json @@ -49,6 +49,5 @@ "Mixed": "Mixed", "Sound pack": "Sound pack", "Schildi: Softer sounds for reduced anxiety": "Schildi: Softer sounds for reduced anxiety", - "Classic: The same sharp sounds as Element": "Classic: The same sharp sounds as Element", - "React with \"%(reaction)s\"": "React with \"%(reaction)s\"" + "Classic: The same sharp sounds as Element": "Classic: The same sharp sounds as Element" } diff --git a/i18n-overlays/matrix-react-sdk/hu.json b/i18n-overlays/matrix-react-sdk/hu.json index cde030f..a048d36 100644 --- a/i18n-overlays/matrix-react-sdk/hu.json +++ b/i18n-overlays/matrix-react-sdk/hu.json @@ -3,27 +3,5 @@ "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", - "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" + "Normal priority": "Normál prioritás" } diff --git a/i18n-overlays/matrix-react-sdk/id.json b/i18n-overlays/matrix-react-sdk/id.json index 3324b6f..c0d5cbb 100644 --- a/i18n-overlays/matrix-react-sdk/id.json +++ b/i18n-overlays/matrix-react-sdk/id.json @@ -49,6 +49,5 @@ "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", - "React with \"%(reaction)s\"": "Reaksi dengan \"%(reaction)s\"" + "Classic: The same sharp sounds as Element": "Klasik: Suara keras yang biasa seperti Element" } diff --git a/i18n-overlays/matrix-react-sdk/it.json b/i18n-overlays/matrix-react-sdk/it.json index 187e9c4..72a5b3a 100644 --- a/i18n-overlays/matrix-react-sdk/it.json +++ b/i18n-overlays/matrix-react-sdk/it.json @@ -9,26 +9,5 @@ "Light theme": "Tema chiaro", "Dark theme": "Tema scuro", "Normal priority": "Priorità normale", - "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).": "Vuoi entrare in una stanza che ti notificherà riguardo nuove release? Sarebbe comodo particolarmente se la tua piattaforma non supporta aggiornamenti automatici (Come per esempio Windows o MacOS.)", - "Show message bubbles on one side only": "Visualizza bolle messaggi su un lato solo", - "Show message bubbles depending on the width either on both sides or only on one side": "Visualizza bolle messaggi in base alla lunghezza di entrambi i lati o di uno solo", - "User name color mode": "Modalità colore nome utente", - "Room list style": "Stile lista stanze", - "Theme": "Tema", - "Show all rooms in Home": "Visualizza tutte le stanze nella Home", - "All rooms you're in will appear in Home.": "Tutte le stanze in cui partecipi appariranno nella Home.", - "For people": "Per le persone", - "Room list": "Lista stanze", - "Show advanced theme settings": "Visualizza impostazioni avanzate tema", - "Mark rooms as unread": "Permetti di segnare le chat come non lette", - "Message bubbles": "Bolle messaggi", - "Message layout": "Impaginazione messaggi", - "Mark as unread": "Segna come non letto", - "Uniform": "Uniforme", - "Show people in spaces": "Visualizza persone negli spazi", - "MXID": "MXID", - "In public rooms": "Nelle stanze pubbliche", - "In group chats": "Nelle chat di gruppo", - "Font size and typeface": "Dimensione e tipo carattere", - "Hide advanced theme settings": "Nascondi impostazioni avanzate tema" + "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).": "Vuoi entrare in una stanza che ti notificherà riguardo nuove release? Sarebbe comodo particolarmente se la tua piattaforma non supporta aggiornamenti automatici (Come per esempio Windows o MacOS.)" } diff --git a/i18n-overlays/matrix-react-sdk/pt_BR.json b/i18n-overlays/matrix-react-sdk/pt_BR.json index 1b4c8af..5bac536 100644 --- a/i18n-overlays/matrix-react-sdk/pt_BR.json +++ b/i18n-overlays/matrix-react-sdk/pt_BR.json @@ -40,6 +40,5 @@ "Room list style": "Estilo da lista de salas", "Mark rooms as unread": "Permitir markar conversas como não lidos", "Mark as unread": "Markar como não lido", - "Mark as read": "Markar como lido", - "Collapse additional buttons": "Recolher botões adicionais" + "Mark as read": "Markar como lido" } diff --git a/i18n-overlays/matrix-react-sdk/zh_Hans.json b/i18n-overlays/matrix-react-sdk/zh_Hans.json index e3e332a..aef112a 100644 --- a/i18n-overlays/matrix-react-sdk/zh_Hans.json +++ b/i18n-overlays/matrix-react-sdk/zh_Hans.json @@ -42,13 +42,5 @@ "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": "折叠额外的按钮", - "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": "边缘" + "Collapse additional buttons": "折叠额外的按钮" } diff --git a/matrix-js-sdk b/matrix-js-sdk index 255144e..1474204 160000 --- a/matrix-js-sdk +++ b/matrix-js-sdk @@ -1 +1 @@ -Subproject commit 255144ef2c9e141a171101e18091961f1be6db7f +Subproject commit 14742043de61ac9844c78204ffb93a783fa2c676 diff --git a/matrix-react-sdk b/matrix-react-sdk index 9994f86..c9fb6bb 160000 --- a/matrix-react-sdk +++ b/matrix-react-sdk @@ -1 +1 @@ -Subproject commit 9994f867123a10b78fae014c3fa1ef919d89487e +Subproject commit c9fb6bbbb8bf97802277127601163618669acdee diff --git a/merge_upstream.sh b/merge_upstream.sh index e772262..cfbea1f 100755 --- a/merge_upstream.sh +++ b/merge_upstream.sh @@ -23,13 +23,7 @@ automatic_i18n_reversion automatic_packagejson_reversion # Merge upstream - -# Check if specific version to merge passed -if [ -z "$1" ]; then - get_latest_upstream_tag -else - latest_upstream_tag="$1" -fi +get_latest_upstream_tag forelement_repos git merge "$latest_upstream_tag" get_current_mxsdk_tags