Skip to content

Commit

Permalink
Add deprecation and future disabling of playstore builds warning to b…
Browse files Browse the repository at this point in the history
…anner
  • Loading branch information
agnostic-apollo committed Sep 8, 2021
1 parent 1c272f5 commit d1a911b
Show file tree
Hide file tree
Showing 3 changed files with 29 additions and 1 deletion.
4 changes: 3 additions & 1 deletion packages/termux-tools/build.sh
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,8 @@ TERMUX_PKG_ESSENTIAL=true
TERMUX_PKG_BREAKS="termux-keyring (<< 1.9)"
TERMUX_PKG_CONFLICTS="procps (<< 3.3.15-2)"
TERMUX_PKG_SUGGESTS="termux-api"
TERMUX_PKG_CONFFILES="etc/motd"
TERMUX_PKG_CONFFILES="etc/motd
etc/motd-playstore"

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

install -Dm600 $TERMUX_PKG_BUILDER_DIR/motd $TERMUX_PREFIX/etc/motd
install -Dm600 $TERMUX_PKG_BUILDER_DIR/motd-playstore $TERMUX_PREFIX/etc/motd-playstore
ln -sfr $TERMUX_PREFIX/bin/termux-open $TERMUX_PREFIX/bin/xdg-open

mkdir -p $TERMUX_PREFIX/share/man/man1
Expand Down
5 changes: 5 additions & 0 deletions packages/termux-tools/login
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,11 @@ else
unset TERMUX_HUSHLOGIN
fi

# 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.
if [ $# = 0 ] && [ -f @TERMUX_PREFIX@/etc/motd-playstore ] && [ -z "$TERMUX_VERSION" ] && [ "$PATH" = "@TERMUX_PREFIX@/bin:@TERMUX_PREFIX@/bin/applets" ]; then
printf '\033[0;31m'; cat @TERMUX_PREFIX@/etc/motd-playstore; printf '\033[0m'
fi

if [ -G ~/.termux/shell ]; then
export SHELL="`realpath ~/.termux/shell`"
else
Expand Down
21 changes: 21 additions & 0 deletions packages/termux-tools/motd-playstore
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@

You are likely using a very old version of Termux,
probably installed from the Google Play Store.
There are plans in the near future to remove the
Termux apps from the Play Store so that new users
cannot install them and to **disable** them for
existing users with app updates to prevent the use
of outdated app versions. Instead, you are
encouraged to move to F-Droid or Github sources
(see [1]). You can backup all your current Termux
data before uninstallation and then restore it later
by following instructions in the wiki [2]. Check
the changelog [3] for all the new features and fixes
that you are currently missing. Check [4] for why
this is being done.

[1] https://github.com/termux/termux-app#installation
[2] https://wiki.termux.com/wiki/Backing_up_Termux
[3] https://github.com/termux/termux-app/releases
[4] https://github.com/termux/termux-app#google-play-store-deprecated

0 comments on commit d1a911b

Please sign in to comment.