Update README.md and little hint to download (#191)

* refactor: add tip if DATADIR missing

* doc: tune README.md for new verison
This commit is contained in:
Katьka authored and GitHub committed 2026-06-14 10:03:47 +08:00
1 parent d8b77508a5
commit 85f272f37c
2 files changed
+6 -1

No files matched your search

+1 -1
View File
@@ -10,4 +10,4 @@
1. `git clone [repo] && cd AndroidLibXrayLite`
2. `gomobile init`
3. `go mod tidy -v`
4. `gomobile bind -v -androidapi 21 -ldflags='-s -w' ./`
4. `gomobile bind -v -androidapi 24 -trimpath -ldflags='-s -w -buildid= -checklinkname=0' ./`
+5
View File
@@ -21,6 +21,11 @@ check_dependencies() {
# Download data function
download_dat() {
if [[ ! -d "$DATADIR" ]]; then
echo "Downloading failed \"$DATADIR\" does not exists"
exit 1
fi
echo "Downloading geoip.dat..."
curl -sL https://github.com/Loyalsoldier/v2ray-rules-dat/releases/latest/download/geoip.dat -o "$DATADIR/geoip.dat"