SimpleXray: 1.6.1

This commit is contained in:
linsui 2025-07-23 18:03:51 +08:00
parent 22b87337c2
commit d4de146dbd
2 changed files with 71 additions and 0 deletions

View file

@ -0,0 +1,69 @@
Categories:
- DNS & Hosts
- VPN & Proxy
License: MPL-2.0
AuthorName: lhear
SourceCode: https://github.com/lhear/SimpleXray
IssueTracker: https://github.com/lhear/SimpleXray/issues
Changelog: https://github.com/lhear/SimpleXray/releases
AutoName: SimpleXray
RepoType: git
Repo: https://github.com/lhear/SimpleXray
Binaries: https://github.com/lhear/SimpleXray/releases/download/v%v/simplexray-universal.apk
Builds:
- versionName: 1.6.1
versionCode: 13
commit: 78b8795c0ecd1600f29f727ba79afd8d5a361e36
subdir: app
submodules: true
sudo:
- apt-get update
- apt-get install -t bookworm-backports -y golang-go
- apt-get install -y gcc libc-dev make
gradle:
- yes
srclibs:
- Xray-core@v25.6.8
- go@go1.24.4
prebuild:
- sed -i -e '/enable true/d' build.gradle
- source ../version.properties
- git -C $$Xray-core$$ checkout -f $XRAY_CORE_VERSION
- git -C $$go$$ checkout -f go$GO_VERSION
build:
- source ../version.properties
- curl -Lo src/main/assets/geoip.dat https://github.com/lhear/v2ray-rules-dat/releases/download/$GEOIP_VERSION/geoip.dat
- curl -Lo src/main/assets/geosite.dat https://github.com/lhear/v2ray-rules-dat/releases/download/$GEOSITE_VERSION/geosite.dat
- sdkmanager "ndk;$NDK_VERSION"
- pushd $$go$$/src
- ./make.bash
- popd
- export GOPATH=$$go$$
- export PATH="$GOPATH/bin:$PATH"
- pushd $$Xray-core$$
- mkdir -p jniLibs/{arm64-v8a,x86_64}
- COMMID=$(git rev-parse HEAD | cut -c 1-7)
- export GOOS=android CGO_ENABLED=1
- export GOARCH=arm64
- export CC=$$SDK$$/ndk/$NDK_VERSION/toolchains/llvm/prebuilt/linux-x86_64/bin/aarch64-linux-android24-clang
- go build -o xray -trimpath -buildvcs=false -ldflags="-X github.com/xtls/xray-core/core.build=${COMMID}
-s -w -buildid=" -v ./main
- mv xray jniLibs/arm64-v8a/libxray.so
- export GOARCH=amd64
- export CC=$$SDK$$/ndk/$NDK_VERSION/toolchains/llvm/prebuilt/linux-x86_64/bin/x86_64-linux-android24-clang
- go build -o xray -trimpath -buildvcs=false -ldflags="-X github.com/xtls/xray-core/core.build=${COMMID}
-s -w -buildid=" -v ./main
- mv xray jniLibs/x86_64/libxray.so
- popd
- mv $$Xray-core$$/jniLibs src/main/
AllowedAPKSigningKeys: 7b78dbf42ed7346f51c705569072d6cc5821e54872186177eb3f4b245573a27e
AutoUpdateMode: Version
UpdateCheckMode: Tags
UpdateCheckData: version.properties|APP_VERSION_CODE=(\d+)|.|APP_VERSION_NAME=([\d.]+)
CurrentVersion: 1.6.1
CurrentVersionCode: 13

2
srclibs/Xray-core.yml Normal file
View file

@ -0,0 +1,2 @@
RepoType: git
Repo: https://github.com/XTLS/Xray-core