Browse Source

Icons for android app

stretch
Bob Mottram 2 years ago
parent
commit
95d11130de
67 changed files with 16 additions and 40 deletions
  1. + 2
    - 0
      Makefile
  2. BIN
      img/android-app/akaunting.png
  3. BIN
      img/android-app/bludit.png
  4. BIN
      img/android-app/conversations.png
  5. BIN
      img/android-app/dlna.png
  6. BIN
      img/android-app/dokuwiki.png
  7. BIN
      img/android-app/edith.png
  8. BIN
      img/android-app/etherpad.png
  9. BIN
      img/android-app/fedwiki.png
  10. BIN
      img/android-app/friendica.png
  11. BIN
      img/android-app/gnusocial.png
  12. BIN
      img/android-app/gogs.png
  13. BIN
      img/android-app/htmly.png
  14. BIN
      img/android-app/hubzilla.png
  15. BIN
      img/android-app/irc.png
  16. BIN
      img/android-app/kanboard.png
  17. BIN
      img/android-app/koel.png
  18. BIN
      img/android-app/lychee.png
  19. BIN
      img/android-app/mailpile.png
  20. BIN
      img/android-app/matrix.png
  21. BIN
      img/android-app/mediagoblin.png
  22. BIN
      img/android-app/movim.png
  23. BIN
      img/android-app/mumble.png
  24. BIN
      img/android-app/nextcloud.png
  25. BIN
      img/android-app/peertube.png
  26. BIN
      img/android-app/postactiv.png
  27. BIN
      img/android-app/privatebin.png
  28. BIN
      img/android-app/rocketchat.png
  29. BIN
      img/android-app/searx.png
  30. BIN
      img/android-app/syncthing.png
  31. BIN
      img/android-app/tahoelafs.png
  32. BIN
      img/android-app/turtl.png
  33. + 0
    - 1
      src/freedombone-app-akaunting
  34. + 0
    - 1
      src/freedombone-app-bludit
  35. + 0
    - 1
      src/freedombone-app-dlna
  36. + 0
    - 1
      src/freedombone-app-dokuwiki
  37. + 0
    - 1
      src/freedombone-app-edith
  38. + 0
    - 1
      src/freedombone-app-etherpad
  39. + 0
    - 1
      src/freedombone-app-fedwiki
  40. + 0
    - 1
      src/freedombone-app-friendica
  41. + 0
    - 1
      src/freedombone-app-gnusocial
  42. + 0
    - 1
      src/freedombone-app-gogs
  43. + 0
    - 1
      src/freedombone-app-htmly
  44. + 0
    - 1
      src/freedombone-app-hubzilla
  45. + 0
    - 1
      src/freedombone-app-icecast
  46. + 0
    - 1
      src/freedombone-app-irc
  47. + 0
    - 1
      src/freedombone-app-jitsi
  48. + 0
    - 1
      src/freedombone-app-kanboard
  49. + 0
    - 1
      src/freedombone-app-koel
  50. + 0
    - 1
      src/freedombone-app-lychee
  51. + 0
    - 1
      src/freedombone-app-mailpile
  52. + 0
    - 1
      src/freedombone-app-matrix
  53. + 1
    - 2
      src/freedombone-app-mediagoblin
  54. + 0
    - 1
      src/freedombone-app-movim
  55. + 0
    - 1
      src/freedombone-app-mumble
  56. + 0
    - 1
      src/freedombone-app-nextcloud
  57. + 0
    - 1
      src/freedombone-app-peertube
  58. + 0
    - 1
      src/freedombone-app-pleroma
  59. + 0
    - 1
      src/freedombone-app-postactiv
  60. + 0
    - 1
      src/freedombone-app-privatebin
  61. + 0
    - 1
      src/freedombone-app-rocketchat
  62. + 0
    - 1
      src/freedombone-app-syncthing
  63. + 0
    - 1
      src/freedombone-app-turtl
  64. + 0
    - 1
      src/freedombone-app-xmpp
  65. + 0
    - 1
      src/freedombone-syncthing
  66. + 0
    - 1
      src/freedombone-template
  67. + 13
    - 5
      src/freedombone-utils-android

+ 2
- 0
Makefile

@ -20,6 +20,7 @@ install:
mkdir -p ${DESTDIR}${PREFIX}/bin
mkdir -p ${DESTDIR}/usr/share/${APP}/base
mkdir -p ${DESTDIR}/usr/share/${APP}/apps
mkdir -p ${DESTDIR}/usr/share/${APP}/android-app
mkdir -p ${DESTDIR}/usr/share/${APP}/utils
mkdir -p ${DESTDIR}/usr/share/${APP}/avatars
mkdir -p ${DESTDIR}/etc/${APP}
@ -46,6 +47,7 @@ install:
cp man/*.1.gz ${DESTDIR}${PREFIX}/share/man/man1
cp man/${APP}-backup-local.1.gz ${DESTDIR}${PREFIX}/share/man/man1/backup.1.gz
cp man/${APP}-restore-local.1.gz ${DESTDIR}${PREFIX}/share/man/man1/restore.1.gz
cp img/android-app/*.png ${DESTDIR}/usr/share/${APP}/android-app
chown -R root: /usr/share/${APP}
chmod -R +r /usr/share/${APP}
# bash -c "./translate install"

BIN
img/android-app/akaunting.png

Before After
Width: 200  |  Height: 200  |  Size: 7.2 KiB

BIN
img/android-app/bludit.png

Before After
Width: 200  |  Height: 200  |  Size: 7.5 KiB

BIN
img/android-app/conversations.png

Before After
Width: 256  |  Height: 256  |  Size: 30 KiB

BIN
img/android-app/dlna.png

Before After
Width: 219  |  Height: 219  |  Size: 9.4 KiB

BIN
img/android-app/dokuwiki.png

Before After
Width: 64  |  Height: 64  |  Size: 3.7 KiB

BIN
img/android-app/edith.png

Before After
Width: 256  |  Height: 256  |  Size: 2.2 KiB

BIN
img/android-app/etherpad.png

Before After
Width: 163  |  Height: 163  |  Size: 9.9 KiB

BIN
img/android-app/fedwiki.png

Before After
Width: 200  |  Height: 200  |  Size: 22 KiB

BIN
img/android-app/friendica.png

Before After
Width: 63  |  Height: 61  |  Size: 11 KiB

BIN
img/android-app/gnusocial.png

Before After
Width: 256  |  Height: 256  |  Size: 15 KiB

BIN
img/android-app/gogs.png

Before After
Width: 256  |  Height: 256  |  Size: 28 KiB

BIN
img/android-app/htmly.png

Before After
Width: 91  |  Height: 87  |  Size: 4.8 KiB

BIN
img/android-app/hubzilla.png

Before After
Width: 92  |  Height: 82  |  Size: 9.2 KiB

BIN
img/android-app/irc.png

Before After
Width: 100  |  Height: 100  |  Size: 12 KiB

BIN
img/android-app/kanboard.png

Before After
Width: 256  |  Height: 183  |  Size: 18 KiB

BIN
img/android-app/koel.png

Before After
Width: 222  |  Height: 194  |  Size: 7.4 KiB

BIN
img/android-app/lychee.png

Before After
Width: 36  |  Height: 30  |  Size: 9.3 KiB

BIN
img/android-app/mailpile.png

Before After
Width: 256  |  Height: 256  |  Size: 30 KiB

BIN
img/android-app/matrix.png

Before After
Width: 300  |  Height: 300  |  Size: 7.7 KiB

BIN
img/android-app/mediagoblin.png

Before After
Width: 256  |  Height: 255  |  Size: 68 KiB

BIN
img/android-app/movim.png

Before After
Width: 256  |  Height: 256  |  Size: 13 KiB

BIN
img/android-app/mumble.png

Before After
Width: 400  |  Height: 400  |  Size: 46 KiB

BIN
img/android-app/nextcloud.png

Before After
Width: 256  |  Height: 221  |  Size: 33 KiB

BIN
img/android-app/peertube.png

Before After
Width: 124  |  Height: 124  |  Size: 5.8 KiB

BIN
img/android-app/postactiv.png

Before After
Width: 163  |  Height: 44  |  Size: 7.1 KiB

BIN
img/android-app/privatebin.png

Before After
Width: 111  |  Height: 114  |  Size: 17 KiB

BIN
img/android-app/rocketchat.png

Before After
Width: 102  |  Height: 87  |  Size: 12 KiB

BIN
img/android-app/searx.png

Before After
Width: 256  |  Height: 235  |  Size: 13 KiB

BIN
img/android-app/syncthing.png

Before After
Width: 256  |  Height: 256  |  Size: 20 KiB

BIN
img/android-app/tahoelafs.png

Before After
Width: 300  |  Height: 333  |  Size: 37 KiB

BIN
img/android-app/turtl.png

Before After
Width: 124  |  Height: 124  |  Size: 24 KiB

+ 0
- 1
src/freedombone-app-akaunting

@ -42,7 +42,6 @@ AKAUNTING_BACKGROUND_IMAGE_URL=
AKAUNTING_SHORT_DESCRIPTION=$'Personal accounting'
AKAUNTING_DESCRIPTION=$'Personal or small business accounting'
AKAUNTING_ICON_URL=
AKAUNTING_MOBILE_APP_URL=
akaunting_variables=(ONION_ONLY

+ 0
- 1
src/freedombone-app-bludit

@ -37,7 +37,6 @@ BLUDIT_COMMIT='0e27e31a84421b3e6bd000a77bc89c2dff3c446a'
BLUDIT_SHORT_DESCRIPTION=$'Bludit Blog'
BLUDIT_DESCRIPTION=$'Simple Markdown blogging'
BLUDIT_ICON_URL=
BLUDIT_MOBILE_APP_URL=
bludit_variables=(ONION_ONLY

+ 0
- 1
src/freedombone-app-dlna

@ -33,7 +33,6 @@ SHOW_ON_ABOUT=0
DLNA_SHORT_DESCRIPTION=$'DLNA media'
DLNA_DESCRIPTION=$'DLNA media'
DLNA_ICON_URL=
DLNA_MOBILE_APP_URL=
dlna_variables=(SYSTEM_TYPE

+ 0
- 1
src/freedombone-app-dokuwiki

@ -42,7 +42,6 @@ DOKUWIKI_COMMIT='be15c01c0b982cf1a75b5af031bf077143c63f39'
DOKUWIKI_SHORT_DESCRIPTION=$'Dokuwiki'
DOKUWIKI_DESCRIPTION=$'Dokuwiki databaseless wiki'
DOKUWIKI_ICON_URL=
DOKUWIKI_MOBILE_APP_URL=
dokuwiki_variables=(ONION_ONLY

+ 0
- 1
src/freedombone-app-edith

@ -40,7 +40,6 @@ EDITH_LOGIN_TEXT=$"Edith login"
EDITH_SHORT_DESCRIPTION=$'Edith Notes'
EDITH_DESCRIPTION=$'Extremely simple note taking'
EDITH_ICON_URL=
EDITH_MOBILE_APP_URL=
edith_variables=(MY_USERNAME

+ 0
- 1
src/freedombone-app-etherpad

@ -44,7 +44,6 @@ ETHERPAD_WELCOME_MESSAGE=$"Welcome to ${ETHERPAD_TITLE}!\\n\\nThis pad text is s
ETHERPAD_SHORT_DESCRIPTION=$'Etherpad'
ETHERPAD_DESCRIPTION=$'Etherpad'
ETHERPAD_ICON_URL=
ETHERPAD_MOBILE_APP_URL=
etherpad_variables=(ONION_ONLY

+ 0
- 1
src/freedombone-app-fedwiki

@ -44,7 +44,6 @@ FEDWIKI_COOKIE=
FEDWIKI_SHORT_DESCRIPTION=$'FedWiki'
FEDWIKI_DESCRIPTION=$'Federated Wiki'
FEDWIKI_ICON_URL=
FEDWIKI_MOBILE_APP_URL=
fedwiki_variables=(FEDWIKI_DOMAIN_NAME

+ 0
- 1
src/freedombone-app-friendica

@ -42,7 +42,6 @@ FRIENDICA_ADDONS_COMMIT='7cb9dbdda7f227462895c07be3c968405561d40e'
FRIENDICA_SHORT_DESCRIPTION=$'Friendica'
FRIENDICA_DESCRIPTION=$'Friendica federated social network'
FRIENDICA_ICON_URL=
FRIENDICA_MOBILE_APP_URL=
friendica_variables=(ONION_ONLY

+ 0
- 1
src/freedombone-app-gnusocial

@ -48,7 +48,6 @@ GNUSOCIAL_EXPIRE_MONTHS=3
GNUSOCIAL_SHORT_DESCRIPTION=$'GNU Social'
GNUSOCIAL_DESCRIPTION=$'GNU Social federated microblogging'
GNUSOCIAL_ICON_URL=
GNUSOCIAL_MOBILE_APP_URL='https://f-droid.org/packages/org.mariotaku.twidere/'
gnusocial_variables=(ONION_ONLY

+ 0
- 1
src/freedombone-app-gogs

@ -43,7 +43,6 @@ GOGS_PORT=3145
GOGS_SHORT_DESCRIPTION=$'Gogs'
GOGS_DESCRIPTION=$'Gogs git repo management'
GOGS_ICON_URL=
GOGS_MOBILE_APP_URL=
gogs_variables=(ONION_ONLY

+ 0
- 1
src/freedombone-app-htmly

@ -41,7 +41,6 @@ HTMLY_SUBTITLE="Another ${PROJECT_NAME} blog"
HTMLY_SHORT_DESCRIPTION=$'HTMLy'
HTMLY_DESCRIPTION=$'HTMLy databaseless blogging'
HTMLY_ICON_URL=
HTMLY_MOBILE_APP_URL=
htmly_variables=(HTMLY_REPO

+ 0
- 1
src/freedombone-app-hubzilla

@ -43,7 +43,6 @@ HUBZILLA_ADMIN_PASSWORD=
HUBZILLA_SHORT_DESCRIPTION=$'Hubzilla'
HUBZILLA_DESCRIPTION=$'Hubzilla'
HUBZILLA_ICON_URL=
HUBZILLA_MOBILE_APP_URL=
hubzilla_variables=(ONION_ONLY

+ 0
- 1
src/freedombone-app-icecast

@ -46,7 +46,6 @@ ICECAST_LOGIN_TEXT=$"Icecast login"
ICECAST_SHORT_DESCRIPTION=$'Icecast'
ICECAST_DESCRIPTION=$'Icecast'
ICECAST_ICON_URL=
ICECAST_MOBILE_APP_URL=
icecast_variables=(MY_USERNAME

+ 0
- 1
src/freedombone-app-irc

@ -43,7 +43,6 @@ IRC_BUFFER_LENGTH=300
IRC_SHORT_DESCRIPTION=$'IRC'
IRC_DESCRIPTION=$'IRC'
IRC_ICON_URL=
IRC_MOBILE_APP_URL='https://f-droid.org/packages/org.yaaic'
irc_variables=(MY_USERNAME

+ 0
- 1
src/freedombone-app-jitsi

@ -46,7 +46,6 @@ JITSI_ONION_HOSTNAME=
JITSI_SHORT_DESCRIPTION=$'Jitsi'
JITSI_DESCRIPTION=$'Jitsi'
JITSI_ICON_URL=
JITSI_MOBILE_APP_URL=
jitsi_variables=(ONION_ONLY

+ 0
- 1
src/freedombone-app-kanboard

@ -40,7 +40,6 @@ KANBOARD_ADMIN_PASSWORD=
KANBOARD_SHORT_DESCRIPTION=$'Kanboard'
KANBOARD_DESCRIPTION=$'Kanboard kanban'
KANBOARD_ICON_URL=
KANBOARD_MOBILE_APP_URL=
kanboard_variables=(ONION_ONLY

+ 0
- 1
src/freedombone-app-koel

@ -42,7 +42,6 @@ KOEL_ADMIN_PASSWORD=
KOEL_SHORT_DESCRIPTION=$'Koel music'
KOEL_DESCRIPTION=$'Koel music player'
KOEL_ICON_URL=
KOEL_MOBILE_APP_URL=
koel_variables=(ONION_ONLY

+ 0
- 1
src/freedombone-app-lychee

@ -39,7 +39,6 @@ LYCHEE_COMMIT='27f207dcbac8488629ffc3b5a9cac78ae123bee9'
LYCHEE_SHORT_DESCRIPTION=$'Lychee photos'
LYCHEE_DESCRIPTION=$'Lychee photos'
LYCHEE_ICON_URL=
LYCHEE_MOBILE_APP_URL=
lychee_variables=(LYCHEE_REPO

+ 0
- 1
src/freedombone-app-mailpile

@ -40,7 +40,6 @@ MAILPILE_PORT=33411
MAILPILE_SHORT_DESCRIPTION=$'Mailpile'
MAILPILE_DESCRIPTION=$'Mailpile email client'
MAILPILE_ICON_URL=
MAILPILE_MOBILE_APP_URL=
mailpile_variables=(MAILPILE_REPO

+ 0
- 1
src/freedombone-app-matrix

@ -55,7 +55,6 @@ MATRIX_EXPIRE_MONTHS=1
MATRIX_SHORT_DESCRIPTION=$'Matrix chat'
MATRIX_DESCRIPTION=$'Matrix chat'
MATRIX_ICON_URL=
MATRIX_MOBILE_APP_URL='https://f-droid.org/packages/im.vector.alpha'
matrix_variables=(ONION_ONLY

+ 1
- 2
src/freedombone-app-mediagoblin

@ -35,14 +35,13 @@ MEDIAGOBLIN_DOMAIN_NAME=
MEDIAGOBLIN_ADMIN_PASSWORD=
MEDIAGOBLIN_CODE=
MEDIAGOBLIN_ONION_PORT=8108
MEDIAGOBLIN_REPO="http://git.savannah.gnu.org/r/mediagoblin.git"
MEDIAGOBLIN_REPO="https://git.savannah.gnu.org/git/mediagoblin.git"
MEDIAGOBLIN_COMMIT='c4d3293dfa4076719e60fe9e052add07426f9a9a'
MEDIAGOBLIN_BASE_DIR=/var/www/mediagoblin.local/htdocs
MEDIAGOBLIN_PORT=6543
MEDIAGOBLIN_SHORT_DESCRIPTION=$'Mediagoblin'
MEDIAGOBLIN_DESCRIPTION=$'Mediagoblin'
MEDIAGOBLIN_ICON_URL=
MEDIAGOBLIN_MOBILE_APP_URL=
mediagoblin_variables=(ONION_ONLY

+ 0
- 1
src/freedombone-app-movim

@ -41,7 +41,6 @@ MOVIM_DAEMON_PORT=8880
MOVIM_SHORT_DESCRIPTION=$'Movim'
MOVIM_DESCRIPTION=$'Movim'
MOVIM_ICON_URL=
MOVIM_MOBILE_APP_URL='https://f-droid.org/packages/com.movim.movim'
movim_variables=(ONION_ONLY

+ 0
- 1
src/freedombone-app-mumble

@ -42,7 +42,6 @@ MUMBLE_CONFIG_FILE="mumble-server.ini"
MUMBLE_SHORT_DESCRIPTION=$'Mumble'
MUMBLE_DESCRIPTION=$'Mumble'
MUMBLE_ICON_URL=
MUMBLE_MOBILE_APP_URL='https://f-droid.org/packages/com.morlunk.mumbleclient'
mumble_variables=(MY_USERNAME

+ 0
- 1
src/freedombone-app-nextcloud

@ -44,7 +44,6 @@ NEXTCLOUD_SERVER_SIDE_ENCRYPTION=1
NEXTCLOUD_SHORT_DESCRIPTION=$'NextCloud'
NEXTCLOUD_DESCRIPTION=$'NextCloud'
NEXTCLOUD_ICON_URL=
NEXTCLOUD_MOBILE_APP_URL='https://f-droid.org/packages/com.nextcloud.client'
nextcloud_variables=(ONION_ONLY

+ 0
- 1
src/freedombone-app-peertube

@ -46,7 +46,6 @@ PEERTUBE_DIR=/etc/peertube
PEERTUBE_SHORT_DESCRIPTION=$'PeerTube'
PEERTUBE_DESCRIPTION=$'PeerTube'
PEERTUBE_ICON_URL=
PEERTUBE_MOBILE_APP_URL=
peertube_variables=(PEERTUBE_DOMAIN_NAME

+ 0
- 1
src/freedombone-app-pleroma

@ -53,7 +53,6 @@ blocking_script_file=/usr/bin/pleroma-blocking
PLEROMA_SHORT_DESCRIPTION=$'Pleroma'
PLEROMA_DESCRIPTION=$'Pleroma federated microblogging'
PLEROMA_ICON_URL=
PLEROMA_MOBILE_APP_URL='https://f-droid.org/packages/com.keylesspalace.tusky'
pleroma_variables=(ONION_ONLY

+ 0
- 1
src/freedombone-app-postactiv

@ -47,7 +47,6 @@ POSTACTIV_EXPIRE_MONTHS=3
POSTACTIV_SHORT_DESCRIPTION=$'PostActiv'
POSTACTIV_DESCRIPTION=$'PostActiv federated microblogging'
POSTACTIV_ICON_URL=
POSTACTIV_MOBILE_APP_URL='https://f-droid.org/packages/org.mariotaku.twidere/'
postactiv_variables=(ONION_ONLY

+ 0
- 1
src/freedombone-app-privatebin

@ -40,7 +40,6 @@ PRIVATEBIN_ADMIN_PASSWORD=
PRIVATEBIN_SHORT_DESCRIPTION=$'PrivateBin'
PRIVATEBIN_DESCRIPTION=$'PrivateBin zero knowledge pastebin'
PRIVATEBIN_ICON_URL=
PRIVATEBIN_MOBILE_APP_URL=
privatebin_variables=(ONION_ONLY

+ 0
- 1
src/freedombone-app-rocketchat

@ -38,7 +38,6 @@ ROCKETCHAT_PORT_INTERNAL=3000
ROCKETCHAT_SHORT_DESCRIPTION=$'Rocketchat'
ROCKETCHAT_DESCRIPTION=$'Rocketchat'
ROCKETCHAT_ICON_URL=
ROCKETCHAT_MOBILE_APP_URL=
rocketchat_variables=(ONION_ONLY

+ 0
- 1
src/freedombone-app-syncthing

@ -42,7 +42,6 @@ SYNCTHING_USER_IDS_FILE='.syncthingids'
SYNCTHING_SHORT_DESCRIPTION=$'Syncthing'
SYNCTHING_DESCRIPTION=$'Syncthing file synchronization'
SYNCTHING_ICON_URL=
SYNCTHING_MOBILE_APP_URL='https://f-droid.org/packages/com.nutomic.syncthingandroid'
syncthing_variables=(SYNCTHING_ID

+ 0
- 1
src/freedombone-app-turtl

@ -50,7 +50,6 @@ turtl_users_file=$TURTL_BASE_DIR/api/controllers/users.lisp
TURTL_SHORT_DESCRIPTION=$'Turtl'
TURTL_DESCRIPTION=$'Turtl notes'
TURTL_ICON_URL=
TURTL_MOBILE_APP_URL=
turtl_variables=(ONION_ONLY

+ 0
- 1
src/freedombone-app-xmpp

@ -55,7 +55,6 @@ xmpp_encryption_warning=$"For security reasons, OMEMO or PGP encryption is requi
XMPP_SHORT_DESCRIPTION=$'XMPP chat'
XMPP_DESCRIPTION=$'XMPP chat'
XMPP_ICON_URL=
XMPP_MOBILE_APP_URL='https://f-droid.org/packages/eu.siacs.conversations'
xmpp_variables=(ONION_ONLY

+ 0
- 1
src/freedombone-syncthing

@ -57,7 +57,6 @@ TEMP_IDS_FILE=/root/.synthingids
SYNCTHING_SHORT_DESCRIPTION=$'File Synchronization'
SYNCTHING_DESCRIPTION=$'File Synchronization'
SYNCTHING_ICON_URL=
SYNCTHING_MOBILE_APP_URL='https://f-droid.org/packages/com.nutomic.syncthingandroid'
function remove_user_syncthing {

+ 0
- 1
src/freedombone-template

@ -283,7 +283,6 @@ echo ''
echo $'# These parameters are used by the FreedomBox mobile app'
echo "${app_name_upper}_SHORT_DESCRIPTION="
echo "${app_name_upper}_DESCRIPTION="
echo "${app_name_upper}_ICON_URL="
echo "${app_name_upper}_MOBILE_APP_URL="
echo ''
echo "${app_name}_variables=(ONION_ONLY"

+ 13
- 5
src/freedombone-utils-android

@ -37,6 +37,9 @@ function android_update_apps {
if [ ! -d "/var/www/${local_hostname}/htdocs/plinth/api" ]; then
mkdir -p "/var/www/${local_hostname}/htdocs/plinth/api"
fi
if [ ! -d "/var/www/${local_hostname}/htdocs/icons" ]; then
mkdir -p "/var/www/${local_hostname}/htdocs/icons"
fi
echo '{' > "$plinth_api"
echo ' "shortcuts": [' >> "$plinth_api"
@ -50,10 +53,17 @@ function android_update_apps {
app_name=${APPS_INSTALLED_NAMES[$app_index]}
app_filename="/usr/share/${PROJECT_NAME}/apps/${PROJECT_NAME}-app-${app_name}"
if [ -f "$app_filename" ]; then
# get the icon for the app
icon_filename="/usr/share/${PROJECT_NAME}/android-app/${app_name}.png"
if [ -f "$icon_filename" ]; then
cp "$icon_filename" "/var/www/${local_hostname}/htdocs/icons/${app_name}.png"
else
icon_filename=
fi
app_name_upper=$(echo "$app_name" | awk '{print toupper($0)}')
SHORT_DESCRIPTION=
DESCRIPTION=
ICON_URL=
MOBILE_APP_URL=
if ! grep -q "${app_name_upper}_SHORT_DESCRIPTION=" "$app_filename"; then
@ -67,9 +77,6 @@ function android_update_apps {
if grep -q "${app_name_upper}_DESCRIPTION=" "$app_filename"; then
DESCRIPTION="$(grep "${app_name_upper}_DESCRIPTION=" "$app_filename" | head -n 1 | sed 's|\$||g' | sed "s|'||g" | sed 's|\"||g' | awk -F '=' '{print $2}')"
fi
if grep -q "${app_name_upper}_ICON_URL=" "$app_filename"; then
ICON_URL="$(grep "${app_name_upper}_ICON_URL=" "$app_filename" | head -n 1 | sed 's|\$||g' | sed 's|\$||g' | sed "s|'||g" | sed 's|\"||g' | awk -F '=' '{print $2}')"
fi
if grep -q "${app_name_upper}_MOBILE_APP_URL=" "$app_filename"; then
MOBILE_APP_URL="$(grep "${app_name_upper}_MOBILE_APP_URL=" "$app_filename" | head -n 1 | sed 's|\$||g' | sed 's|\$||g' | sed "s|'||g" | sed 's|\"||g' | awk -F '=' '{print $2}')"
fi
@ -82,7 +89,7 @@ function android_update_apps {
echo " \"name\": \"${app_name}\",";
echo " \"short_description\": \"$SHORT_DESCRIPTION\",";
echo " \"description\": \"$DESCRIPTION\",";
echo " \"icon_url\": \"$ICON_URL\",";
echo " \"icon_url\": \"/icons/${app_name}.png\",";
echo " \"clients\": ["; } >> "$plinth_api"
read_config_param "${app_name_upper}_DOMAIN_NAME"
@ -143,6 +150,7 @@ function android_update_apps {
echo '}'; } >> "$plinth_api"
chown -R www-data:www-data "/var/www/${local_hostname}/htdocs/plinth"
chown -R www-data:www-data "/var/www/${local_hostname}/htdocs/icons"
}
# NOTE: deliberately no exit 0

Loading…
Cancel
Save