forked from michael.heier/citadel-core
Prepare for beta channel
This commit is contained in:
parent
1be4357cc2
commit
1e8e1aad8a
9
events/triggers/use-beta-builds
Executable file
9
events/triggers/use-beta-builds
Executable file
|
@ -0,0 +1,9 @@
|
||||||
|
#!/usr/bin/env bash
|
||||||
|
|
||||||
|
# SPDX-FileCopyrightText: 2021-2022 Citadel and contributors
|
||||||
|
#
|
||||||
|
# SPDX-License-Identifier: GPL-3.0-or-later
|
||||||
|
|
||||||
|
CITADEL_ROOT="$(readlink -f $(dirname "${BASH_SOURCE[0]}")/../..)"
|
||||||
|
|
||||||
|
"${CITADEL_ROOT}/scripts/set-update-channel" beta
|
9
events/triggers/use-stable-builds
Executable file
9
events/triggers/use-stable-builds
Executable file
|
@ -0,0 +1,9 @@
|
||||||
|
#!/usr/bin/env bash
|
||||||
|
|
||||||
|
# SPDX-FileCopyrightText: 2021-2022 Citadel and contributors
|
||||||
|
#
|
||||||
|
# SPDX-License-Identifier: GPL-3.0-or-later
|
||||||
|
|
||||||
|
CITADEL_ROOT="$(readlink -f $(dirname "${BASH_SOURCE[0]}")/../..)"
|
||||||
|
|
||||||
|
"${CITADEL_ROOT}/scripts/set-update-channel" stable
|
16
scripts/set-update-channel
Executable file
16
scripts/set-update-channel
Executable file
|
@ -0,0 +1,16 @@
|
||||||
|
#!/usr/bin/env bash
|
||||||
|
|
||||||
|
# SPDX-FileCopyrightText: 2021-2022 Citadel and contributors
|
||||||
|
#
|
||||||
|
# SPDX-License-Identifier: GPL-3.0-or-later
|
||||||
|
|
||||||
|
NODE_ROOT="$(readlink -f $(dirname "${BASH_SOURCE[0]}")/../..)"
|
||||||
|
|
||||||
|
# IN ${NODE_ROOT}/.env, change the UPDATE_CHANNEL to the desired channel ($1)
|
||||||
|
# If $1 is not given, fail
|
||||||
|
if [ -z "$1" ]; then
|
||||||
|
echo "Usage: $0 <channel>"
|
||||||
|
echo "Channel can currently either be 'stable' or 'beta'"
|
||||||
|
exit 1
|
||||||
|
fi
|
||||||
|
sed -i "s/UPDATE_CHANNEL=.*/UPDATE_CHANNEL=${1}/" "${NODE_ROOT}/.env"
|
Loading…
Reference in New Issue
Block a user