diff --git a/Makefile b/Makefile index e99ffc08..075d283a 100644 --- a/Makefile +++ b/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" diff --git a/img/android-app/akaunting.png b/img/android-app/akaunting.png new file mode 100644 index 00000000..ac3e3320 Binary files /dev/null and b/img/android-app/akaunting.png differ diff --git a/img/android-app/bludit.png b/img/android-app/bludit.png new file mode 100644 index 00000000..b1a69662 Binary files /dev/null and b/img/android-app/bludit.png differ diff --git a/img/android-app/conversations.png b/img/android-app/conversations.png new file mode 100644 index 00000000..ebed60ef Binary files /dev/null and b/img/android-app/conversations.png differ diff --git a/img/android-app/dlna.png b/img/android-app/dlna.png new file mode 100644 index 00000000..f4e32b60 Binary files /dev/null and b/img/android-app/dlna.png differ diff --git a/img/android-app/dokuwiki.png b/img/android-app/dokuwiki.png new file mode 100644 index 00000000..a1f49956 Binary files /dev/null and b/img/android-app/dokuwiki.png differ diff --git a/img/android-app/edith.png b/img/android-app/edith.png new file mode 100644 index 00000000..a36334bb Binary files /dev/null and b/img/android-app/edith.png differ diff --git a/img/android-app/etherpad.png b/img/android-app/etherpad.png new file mode 100644 index 00000000..46e73321 Binary files /dev/null and b/img/android-app/etherpad.png differ diff --git a/img/android-app/fedwiki.png b/img/android-app/fedwiki.png new file mode 100644 index 00000000..613ede18 Binary files /dev/null and b/img/android-app/fedwiki.png differ diff --git a/img/android-app/friendica.png b/img/android-app/friendica.png new file mode 100644 index 00000000..e44c8e83 Binary files /dev/null and b/img/android-app/friendica.png differ diff --git a/img/android-app/gnusocial.png b/img/android-app/gnusocial.png new file mode 100644 index 00000000..6c03bc6d Binary files /dev/null and b/img/android-app/gnusocial.png differ diff --git a/img/android-app/gogs.png b/img/android-app/gogs.png new file mode 100644 index 00000000..34385535 Binary files /dev/null and b/img/android-app/gogs.png differ diff --git a/img/android-app/htmly.png b/img/android-app/htmly.png new file mode 100644 index 00000000..7443580e Binary files /dev/null and b/img/android-app/htmly.png differ diff --git a/img/android-app/hubzilla.png b/img/android-app/hubzilla.png new file mode 100644 index 00000000..6d72f774 Binary files /dev/null and b/img/android-app/hubzilla.png differ diff --git a/img/android-app/irc.png b/img/android-app/irc.png new file mode 100644 index 00000000..c3e74524 Binary files /dev/null and b/img/android-app/irc.png differ diff --git a/img/android-app/kanboard.png b/img/android-app/kanboard.png new file mode 100644 index 00000000..0c9e998d Binary files /dev/null and b/img/android-app/kanboard.png differ diff --git a/img/android-app/koel.png b/img/android-app/koel.png new file mode 100644 index 00000000..ba3d90c6 Binary files /dev/null and b/img/android-app/koel.png differ diff --git a/img/android-app/lychee.png b/img/android-app/lychee.png new file mode 100644 index 00000000..c7c10db5 Binary files /dev/null and b/img/android-app/lychee.png differ diff --git a/img/android-app/mailpile.png b/img/android-app/mailpile.png new file mode 100644 index 00000000..57a4078c Binary files /dev/null and b/img/android-app/mailpile.png differ diff --git a/img/android-app/matrix.png b/img/android-app/matrix.png new file mode 100644 index 00000000..21246756 Binary files /dev/null and b/img/android-app/matrix.png differ diff --git a/img/android-app/mediagoblin.png b/img/android-app/mediagoblin.png new file mode 100644 index 00000000..eb4f4b35 Binary files /dev/null and b/img/android-app/mediagoblin.png differ diff --git a/img/android-app/movim.png b/img/android-app/movim.png new file mode 100644 index 00000000..a6a7e668 Binary files /dev/null and b/img/android-app/movim.png differ diff --git a/img/android-app/mumble.png b/img/android-app/mumble.png new file mode 100644 index 00000000..78dff692 Binary files /dev/null and b/img/android-app/mumble.png differ diff --git a/img/android-app/nextcloud.png b/img/android-app/nextcloud.png new file mode 100644 index 00000000..9d9dc1b8 Binary files /dev/null and b/img/android-app/nextcloud.png differ diff --git a/img/android-app/peertube.png b/img/android-app/peertube.png new file mode 100644 index 00000000..8a0e99a4 Binary files /dev/null and b/img/android-app/peertube.png differ diff --git a/img/android-app/postactiv.png b/img/android-app/postactiv.png new file mode 100644 index 00000000..d1621289 Binary files /dev/null and b/img/android-app/postactiv.png differ diff --git a/img/android-app/privatebin.png b/img/android-app/privatebin.png new file mode 100644 index 00000000..766a5da9 Binary files /dev/null and b/img/android-app/privatebin.png differ diff --git a/img/android-app/rocketchat.png b/img/android-app/rocketchat.png new file mode 100644 index 00000000..c6f1e9c8 Binary files /dev/null and b/img/android-app/rocketchat.png differ diff --git a/img/android-app/searx.png b/img/android-app/searx.png new file mode 100644 index 00000000..e9f54f64 Binary files /dev/null and b/img/android-app/searx.png differ diff --git a/img/android-app/syncthing.png b/img/android-app/syncthing.png new file mode 100644 index 00000000..786423f2 Binary files /dev/null and b/img/android-app/syncthing.png differ diff --git a/img/android-app/tahoelafs.png b/img/android-app/tahoelafs.png new file mode 100644 index 00000000..cb25e69d Binary files /dev/null and b/img/android-app/tahoelafs.png differ diff --git a/img/android-app/turtl.png b/img/android-app/turtl.png new file mode 100644 index 00000000..a389f5b9 Binary files /dev/null and b/img/android-app/turtl.png differ diff --git a/src/freedombone-app-akaunting b/src/freedombone-app-akaunting index e6ae32a9..a0f697f9 100755 --- a/src/freedombone-app-akaunting +++ b/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 diff --git a/src/freedombone-app-bludit b/src/freedombone-app-bludit index 7405d2f7..52c7ca1f 100755 --- a/src/freedombone-app-bludit +++ b/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 diff --git a/src/freedombone-app-dlna b/src/freedombone-app-dlna index b7f62c73..f77aef45 100755 --- a/src/freedombone-app-dlna +++ b/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 diff --git a/src/freedombone-app-dokuwiki b/src/freedombone-app-dokuwiki index d06263ae..4b5905fb 100755 --- a/src/freedombone-app-dokuwiki +++ b/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 diff --git a/src/freedombone-app-edith b/src/freedombone-app-edith index cc5fa069..9627f4d1 100755 --- a/src/freedombone-app-edith +++ b/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 diff --git a/src/freedombone-app-etherpad b/src/freedombone-app-etherpad index 4c5c919c..b0a007c6 100755 --- a/src/freedombone-app-etherpad +++ b/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 diff --git a/src/freedombone-app-fedwiki b/src/freedombone-app-fedwiki index 5b7ed8a2..5299cc67 100755 --- a/src/freedombone-app-fedwiki +++ b/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 diff --git a/src/freedombone-app-friendica b/src/freedombone-app-friendica index aa8325d9..9b095326 100755 --- a/src/freedombone-app-friendica +++ b/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 diff --git a/src/freedombone-app-gnusocial b/src/freedombone-app-gnusocial index 324625c6..f22e7f8c 100755 --- a/src/freedombone-app-gnusocial +++ b/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 diff --git a/src/freedombone-app-gogs b/src/freedombone-app-gogs index b9c0d80a..c3a6c7f3 100755 --- a/src/freedombone-app-gogs +++ b/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 diff --git a/src/freedombone-app-htmly b/src/freedombone-app-htmly index e5ca0b01..72baacbd 100755 --- a/src/freedombone-app-htmly +++ b/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 diff --git a/src/freedombone-app-hubzilla b/src/freedombone-app-hubzilla index 1c234758..e5a085d8 100755 --- a/src/freedombone-app-hubzilla +++ b/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 diff --git a/src/freedombone-app-icecast b/src/freedombone-app-icecast index e0772daa..b0d848be 100755 --- a/src/freedombone-app-icecast +++ b/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 diff --git a/src/freedombone-app-irc b/src/freedombone-app-irc index a89f12df..feb635c8 100755 --- a/src/freedombone-app-irc +++ b/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 diff --git a/src/freedombone-app-jitsi b/src/freedombone-app-jitsi index 97893818..948ba601 100755 --- a/src/freedombone-app-jitsi +++ b/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 diff --git a/src/freedombone-app-kanboard b/src/freedombone-app-kanboard index 66a2bf56..c3db22c9 100755 --- a/src/freedombone-app-kanboard +++ b/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 diff --git a/src/freedombone-app-koel b/src/freedombone-app-koel index f43b408d..a02adfa3 100755 --- a/src/freedombone-app-koel +++ b/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 diff --git a/src/freedombone-app-lychee b/src/freedombone-app-lychee index a52cb132..e8b9efc0 100755 --- a/src/freedombone-app-lychee +++ b/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 diff --git a/src/freedombone-app-mailpile b/src/freedombone-app-mailpile index 0e4e189a..8824bae6 100755 --- a/src/freedombone-app-mailpile +++ b/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 diff --git a/src/freedombone-app-matrix b/src/freedombone-app-matrix index 696c1d0a..8b5eed6f 100755 --- a/src/freedombone-app-matrix +++ b/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 diff --git a/src/freedombone-app-mediagoblin b/src/freedombone-app-mediagoblin index a70399d9..117cc4d4 100755 --- a/src/freedombone-app-mediagoblin +++ b/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 diff --git a/src/freedombone-app-movim b/src/freedombone-app-movim index b32d5648..02d3bcd8 100755 --- a/src/freedombone-app-movim +++ b/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 diff --git a/src/freedombone-app-mumble b/src/freedombone-app-mumble index a5f43609..51424f50 100755 --- a/src/freedombone-app-mumble +++ b/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 diff --git a/src/freedombone-app-nextcloud b/src/freedombone-app-nextcloud index 83bc8576..b626a62f 100755 --- a/src/freedombone-app-nextcloud +++ b/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 diff --git a/src/freedombone-app-peertube b/src/freedombone-app-peertube index f87761c7..eaaed73b 100755 --- a/src/freedombone-app-peertube +++ b/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 diff --git a/src/freedombone-app-pleroma b/src/freedombone-app-pleroma index a56054bf..848851a0 100755 --- a/src/freedombone-app-pleroma +++ b/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 diff --git a/src/freedombone-app-postactiv b/src/freedombone-app-postactiv index 15556470..d26de180 100755 --- a/src/freedombone-app-postactiv +++ b/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 diff --git a/src/freedombone-app-privatebin b/src/freedombone-app-privatebin index a8669ce9..1ff4f856 100755 --- a/src/freedombone-app-privatebin +++ b/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 diff --git a/src/freedombone-app-rocketchat b/src/freedombone-app-rocketchat index b10fddb8..e07d7619 100755 --- a/src/freedombone-app-rocketchat +++ b/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 diff --git a/src/freedombone-app-syncthing b/src/freedombone-app-syncthing index 93ef2b3c..41aba63e 100755 --- a/src/freedombone-app-syncthing +++ b/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 diff --git a/src/freedombone-app-turtl b/src/freedombone-app-turtl index 9fd0e9a8..80c4f66a 100755 --- a/src/freedombone-app-turtl +++ b/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 diff --git a/src/freedombone-app-xmpp b/src/freedombone-app-xmpp index 56df3431..213c75e1 100755 --- a/src/freedombone-app-xmpp +++ b/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 diff --git a/src/freedombone-syncthing b/src/freedombone-syncthing index ab6c0244..f4b240ea 100755 --- a/src/freedombone-syncthing +++ b/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 { diff --git a/src/freedombone-template b/src/freedombone-template index 42ff37ff..305f54c6 100755 --- a/src/freedombone-template +++ b/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" diff --git a/src/freedombone-utils-android b/src/freedombone-utils-android index 86205fa4..8c3ad5a9 100755 --- a/src/freedombone-utils-android +++ b/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