Skip to content

Commit d800a48

Browse files
Add deprecation and future disabling of playstore builds warning to banner
1 parent 1c272f5 commit d800a48

File tree

3 files changed

+29
-1
lines changed

3 files changed

+29
-1
lines changed

packages/termux-tools/build.sh

+3-1
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,8 @@ TERMUX_PKG_ESSENTIAL=true
1010
TERMUX_PKG_BREAKS="termux-keyring (<< 1.9)"
1111
TERMUX_PKG_CONFLICTS="procps (<< 3.3.15-2)"
1212
TERMUX_PKG_SUGGESTS="termux-api"
13-
TERMUX_PKG_CONFFILES="etc/motd"
13+
TERMUX_PKG_CONFFILES="etc/motd
14+
etc/motd-playstore"
1415

1516
# Some of these packages are not dependencies and used only to ensure
1617
# that core packages are installed after upgrading (we removed busybox
@@ -48,6 +49,7 @@ termux_step_make_install() {
4849
done
4950

5051
install -Dm600 $TERMUX_PKG_BUILDER_DIR/motd $TERMUX_PREFIX/etc/motd
52+
install -Dm600 $TERMUX_PKG_BUILDER_DIR/motd-playstore $TERMUX_PREFIX/etc/motd-playstore
5153
ln -sfr $TERMUX_PREFIX/bin/termux-open $TERMUX_PREFIX/bin/xdg-open
5254

5355
mkdir -p $TERMUX_PREFIX/share/man/man1

packages/termux-tools/login

+5
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,11 @@ else
77
unset TERMUX_HUSHLOGIN
88
fi
99

10+
# TERMUX_VERSION env variable has been exported since v0.107 and PATH was being set to following value in <0.104. Last playstore version was v0.101.
11+
if [ $# = 0 ] && [ -f @TERMUX_PREFIX@/etc/motd-playstore ] && [ -z "$TERMUX_VERSION" ] && [ "$PATH" = "@TERMUX_PREFIX@/bin:@TERMUX_PREFIX@/bin/applets" ]; then
12+
printf '\033[0;31m'; cat @TERMUX_PREFIX@/etc/motd-playstore; printf '\033[0m'
13+
fi
14+
1015
if [ -G ~/.termux/shell ]; then
1116
export SHELL="`realpath ~/.termux/shell`"
1217
else

packages/termux-tools/motd-playstore

+21
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,21 @@
1+
2+
You are likely using a very old version of Termux,
3+
probably installed from the Google Play Store.
4+
There are plans in the near future to remove the
5+
Termux apps from the Play Store so that new users
6+
cannot install them and to **disable** them for
7+
existing users with updates so that they do not
8+
continue using outdated versions. Instead, you
9+
are encouraged to move to F-Droid or Github sources
10+
(see [1]). You can backup all your current Termux
11+
data before uninstallation and then restore it later
12+
by following instructions in the wiki [2]. Check
13+
the changelog [3] for all the new features and fixes
14+
that you are currently missing. Check [4] for why
15+
this is being done.
16+
17+
[1] https://github.com/termux/termux-app#installation
18+
[2] https://wiki.termux.com/wiki/Backing_up_Termux
19+
[3] https://github.com/termux/termux-app/releases
20+
[4] https://github.com/termux/termux-app#google-play-store-deprecated
21+

0 commit comments

Comments
 (0)