mirror of
https://github.com/chatmail/core.git
synced 2026-04-05 23:22:11 +03:00
This change removes OAuth2 for Gmail as Delta Chat does not have a working client ID anymore. Tests are adjusted to test against Yandex and MX queries for OAuth2 are always disabled because they were only used to detect Google Workspace.
23 lines
631 B
Bash
Executable File
23 lines
631 B
Bash
Executable File
#!/usr/bin/env bash
|
|
# Updates provider database.
|
|
# Returns 1 if the database is changed, 0 otherwise.
|
|
set -euo pipefail
|
|
|
|
export TZ=UTC
|
|
|
|
# Provider database revision.
|
|
REV=77cbf92a8565fdf1bcaba10fa93c1455c750a1e9
|
|
|
|
CORE_ROOT="$PWD"
|
|
TMP="$(mktemp -d)"
|
|
git clone --filter=blob:none https://github.com/deltachat/provider-db.git "$TMP"
|
|
cd "$TMP"
|
|
git checkout "$REV"
|
|
DATE=$(git show -s --format=%cs)
|
|
"$CORE_ROOT"/scripts/create-provider-data-rs.py "$TMP/_providers" "$DATE" >"$CORE_ROOT/src/provider/data.rs"
|
|
rustfmt "$CORE_ROOT/src/provider/data.rs"
|
|
rm -fr "$TMP"
|
|
|
|
cd "$CORE_ROOT"
|
|
test -z "$(git status --porcelain src/provider/data.rs)"
|