Skip to content

Commit

Permalink
feat: ask for donations during december
Browse files Browse the repository at this point in the history
Recently KDE just did a really good fundraiser by asking for donations
using a one-time notification which they plan on having once every
December. In future this should likely be moved directly to the Termux
app. Donation requests can be made during year end and when new major
releases are made. Also, we are probably late, but probably not very
late :)

Currently motd.sh.in has the logic encoded within to only ask for
donations in December, but the static motd file can't hold any such
logic. So this file needs to be reverted back to it's original form
after December.

KDE fundraiser: https://kde.org/fundraisers/yearend2024/
  • Loading branch information
thunder-coding committed Dec 20, 2024
1 parent f8d0419 commit 47d8d85
Show file tree
Hide file tree
Showing 2 changed files with 17 additions and 2 deletions.
2 changes: 2 additions & 0 deletions motds/Makefile.am
Original file line number Diff line number Diff line change
Expand Up @@ -69,3 +69,5 @@ motd:

@echo "" >> motd
@echo "Report issues at https://termux.dev/issues" >> motd
@echo "Consider donating at https://termux.dev/en/donate" >> motd
@echo "Consider donating at https://termux.dev/en/donate" >> motd
17 changes: 15 additions & 2 deletions motds/motd.sh.in
Original file line number Diff line number Diff line change
Expand Up @@ -24,8 +24,12 @@ else
\e[1mWelcome to Termux!\e[0m
\e[1mDocs:\e[0m \e[4mhttps://termux.dev/docs\e[0m
\e[1mDonate:\e[0m \e[4mhttps://termux.dev/donate\e[0m
\e[1mCommunity:\e[0m \e[4mhttps://termux.dev/community\e[0m
"
if [ "$(date +%m)" != "12" ]; then
motd+="\e[1mDonate:\e[0m \e[4mhttps://termux.dev/donate\e[0m
"
fi
motd+="\e[1mCommunity:\e[0m \e[4mhttps://termux.dev/community\e[0m
\e[1mTermux version:\e[0m ${TERMUX_VERSION-Unknown}
"
Expand Down Expand Up @@ -58,4 +62,13 @@ motd+="
${motd_indent}Report issues at \e[4mhttps://termux.dev/issues\e[0m
"

if [ "$(date +%m)" = "12" ]; then

motd+="
\e[1m\e[31mTermux needs your help! Donations help fund development and infrastructure import for Termux's continued existence\e[0m
\e[1mConsider donating at \e[34mhttps://termux.dev/en/donate\e[0m
"

fi

echo -e "$motd"

0 comments on commit 47d8d85

Please sign in to comment.