/
apk_downloader.sh
executable file
·75 lines (69 loc) · 2.7 KB
/
apk_downloader.sh
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
#!/usr/bin/env bash
# Copyright (C) 2020 'icrunchbanger' icrunchbanger@gmail.com
# This software is licensed under the terms of the GNU General Public
# License version 2, as published by the Free Software Foundation, and
# may be copied, distributed, and modified under those terms.
# This program is distributed in the hope that it will be useful,
# but WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
# GNU General Public License for more details.
echo -e "
**************************
Downloading Slide For Reddit
**************************
"
package_name="me.ccrama.redditslide"
package_url="https://f-droid.org/en/packages/${package_name}/"
package_repo="https://f-droid.org/repo/"
package_ver="$(curl -s {$package_url} | grep Version | head -n 1 | cut -d '(' -f 2 | cut -d ')' -f 1)"
wget "${package_repo}${package_name}_${package_ver}.apk"
echo -e "
**************************
Downloading KeePass DX
**************************
"
package_name="com.kunzisoft.keepass.libre"
package_url="https://f-droid.org/en/packages/${package_name}/"
package_repo="https://f-droid.org/repo/"
package_ver="$(curl -s {$package_url} | grep Version | head -n 1 | cut -d '(' -f 2 | cut -d ')' -f 1)"
wget "${package_repo}${package_name}_${package_ver}.apk"
echo -e "
**************************
Downloading Forecastie
**************************
"
package_name="cz.martykan.forecastie"
package_url="https://f-droid.org/en/packages/${package_name}/"
package_repo="https://f-droid.org/repo/"
package_ver="$(curl -s {$package_url} | grep Version | head -n 1 | cut -d '(' -f 2 | cut -d ')' -f 1)"
wget "${package_repo}${package_name}_${package_ver}.apk"
echo -e "
**************************
Downloading Termux
**************************
"
package_name="com.termux"
package_url="https://f-droid.org/en/packages/${package_name}/"
package_repo="https://f-droid.org/repo/"
package_ver="$(curl -s {$package_url} | grep Version | head -n 1 | cut -d '(' -f 2 | cut -d ')' -f 1)"
wget "${package_repo}${package_name}_${package_ver}.apk"
echo -e "
**************************
Downloading QR Scanner
**************************
"
package_name="com.secuso.privacyFriendlyCodeScanner"
package_url="https://f-droid.org/en/packages/${package_name}/"
package_repo="https://f-droid.org/repo/"
package_ver="$(curl -s {$package_url} | grep Version | head -n 1 | cut -d '(' -f 2 | cut -d ')' -f 1)"
wget "${package_repo}${package_name}_${package_ver}.apk"
#echo -e "
#**************************
#Downloading Firefox Fenix
#**************************
#"
#curl -s https://api.github.com/repos/mozilla-mobile/fenix/releases/latest\
#| grep "browser_download_url.*arm64.apk"\
#| cut -d : -f 2,3 \
#| tr -d \" \
#| wget -qi -