From d4de146dbd7370f7f3ea50c6dab88f3785f39c19 Mon Sep 17 00:00:00 2001 From: linsui <2873532-linsui@users.noreply.gitlab.com> Date: Wed, 23 Jul 2025 18:03:51 +0800 Subject: [PATCH] SimpleXray: 1.6.1 --- metadata/com.simplexray.an.yml | 69 ++++++++++++++++++++++++++++++++++ srclibs/Xray-core.yml | 2 + 2 files changed, 71 insertions(+) create mode 100644 metadata/com.simplexray.an.yml create mode 100644 srclibs/Xray-core.yml diff --git a/metadata/com.simplexray.an.yml b/metadata/com.simplexray.an.yml new file mode 100644 index 0000000000..2f324e924a --- /dev/null +++ b/metadata/com.simplexray.an.yml @@ -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 diff --git a/srclibs/Xray-core.yml b/srclibs/Xray-core.yml new file mode 100644 index 0000000000..140d39d8fc --- /dev/null +++ b/srclibs/Xray-core.yml @@ -0,0 +1,2 @@ +RepoType: git +Repo: https://github.com/XTLS/Xray-core