Compare commits
5 Commits
78b9a06c07
...
aef6fe709e
Author | SHA1 | Date | |
---|---|---|---|
|
aef6fe709e | ||
|
6a637c5ce8 | ||
|
4236a079a9 | ||
|
002bd9b5f2 | ||
|
bfcebe2c48 |
26
.github/workflows/main.yml
vendored
Normal file
26
.github/workflows/main.yml
vendored
Normal file
@ -0,0 +1,26 @@
|
|||||||
|
# 根据上传的tag,打包发布至Github
|
||||||
|
|
||||||
|
name: Auto Release
|
||||||
|
|
||||||
|
on:
|
||||||
|
push:
|
||||||
|
tags:
|
||||||
|
- '*'
|
||||||
|
workflow_dispatch:
|
||||||
|
|
||||||
|
jobs:
|
||||||
|
publish-module:
|
||||||
|
runs-on: ubuntu-latest
|
||||||
|
steps:
|
||||||
|
- name: 1.检出代码
|
||||||
|
uses: actions/checkout@v2
|
||||||
|
|
||||||
|
- name: 2.下载打包脚本并执行
|
||||||
|
run: curl https://yatsuki.github.io/v2ray-release/release.sh | sh
|
||||||
|
|
||||||
|
- name: 3.发布
|
||||||
|
uses: ncipollo/release-action@v1
|
||||||
|
with:
|
||||||
|
token: ${{ secrets.GITHUB_TOKEN }}
|
||||||
|
body: "自动发布"
|
||||||
|
artifacts: "v2ray-magisk-android32.zip,v2ray-magisk-android64.zip"
|
11
README.md
11
README.md
@ -8,20 +8,27 @@
|
|||||||
|
|
||||||
## 包含内容
|
## 包含内容
|
||||||
|
|
||||||
- [V2Ray core](<https://github.com/v2fly/v2ray-core>): V2Ray核心代理程序
|
|
||||||
- 基于iptables的代理脚本
|
- 基于iptables的代理脚本
|
||||||
- [V2Manager](<https://github.com/yatsuki/v2manager>):管理核心程序以及iptables的APP
|
- [V2Manager](<https://github.com/yatsuki/v2manager>):管理核心程序以及iptables的APP
|
||||||
- [magisk-module-installer](https://github.com/topjohnwu/magisk-module-installer)
|
- [magisk-module-installer](https://github.com/topjohnwu/magisk-module-installer)
|
||||||
|
|
||||||
|
### 插件打包时一起打包的二进制文件
|
||||||
|
- [V2Ray core](<https://github.com/v2fly/v2ray-core>): V2Ray核心代理程序
|
||||||
|
- [v2ray-rules-dat](https://github.com/Loyalsoldier/v2ray-rules-dat): V2Ray 路由规则文件加强版
|
||||||
|
|
||||||
## 安装
|
## 安装
|
||||||
|
|
||||||
目前还未合并至Magisk官方模块仓库,下载[zip](https://github.com/yatsuki/v2ray/releases)后自行在`Magisk Manager`中从本地安装
|
下载[zip](https://github.com/yatsuki/v2ray/releases)后自行在`Magisk Manager`中从本地安装。
|
||||||
|
|
||||||
|
### 插件更新
|
||||||
|
Magisk更新至24.0+之后取消了线上仓库,插件需要在`module.prop`中指定`updateJson`来检查新版本。本插件将使用[v2ray-release](https://github.com/yatsuki/v2ray-release)来检查更新。由于有32/64平台的区分,`updateJson`会在插件发布打包时指定。
|
||||||
|
|
||||||
## 配置文件(底层)
|
## 配置文件(底层)
|
||||||
|
|
||||||
- `/data/v2ray/config.json` V2Ray配置文件
|
- `/data/v2ray/config.json` V2Ray配置文件
|
||||||
- `/data/v2ray/appid.list` 需要代理的APP列表
|
- `/data/v2ray/appid.list` 需要代理的APP列表
|
||||||
- `/data/v2ray/softap.list` 需要代理的子网
|
- `/data/v2ray/softap.list` 需要代理的子网
|
||||||
|
- `/data/v2ray/manual` 停用开机启动
|
||||||
|
|
||||||
## 使用方法
|
## 使用方法
|
||||||
|
|
||||||
|
2
app
2
app
@ -1 +1 @@
|
|||||||
Subproject commit 0908cc917dad5c3c8d988d0f8c24ca558260c320
|
Subproject commit 2eda7595dee3a0e0180af8b30c2d7e1561014f09
|
19
customize.sh
19
customize.sh
@ -38,16 +38,17 @@ unzip -j -o "${ZIPFILE}" "v2ray/etc/config.json.template" -d /data/v2ray >&2
|
|||||||
[ -f /data/v2ray/config.json ] || \
|
[ -f /data/v2ray/config.json ] || \
|
||||||
cp /data/v2ray/config.json.template /data/v2ray/config.json
|
cp /data/v2ray/config.json.template /data/v2ray/config.json
|
||||||
ln -s /data/v2ray/resolv.conf $MODPATH/system/etc/resolv.conf
|
ln -s /data/v2ray/resolv.conf $MODPATH/system/etc/resolv.conf
|
||||||
|
|
||||||
# generate module.prop
|
# generate module.prop
|
||||||
ui_print "- Generate module.prop"
|
# ui_print "- Generate module.prop"
|
||||||
rm -rf $MODPATH/module.prop
|
# rm -rf $MODPATH/module.prop
|
||||||
touch $MODPATH/module.prop
|
# touch $MODPATH/module.prop
|
||||||
echo "id=v2ray" > $MODPATH/module.prop
|
# echo "id=v2ray" > $MODPATH/module.prop
|
||||||
echo "name=V2ray for Android" >> $MODPATH/module.prop
|
# echo "name=V2ray for Android" >> $MODPATH/module.prop
|
||||||
echo "version=2.0.1" >> $MODPATH/module.prop
|
# echo "version=2.0.1" >> $MODPATH/module.prop
|
||||||
echo "versionCode=20220119" >> $MODPATH/module.prop
|
# echo "versionCode=20220119" >> $MODPATH/module.prop
|
||||||
echo "author=ohnoku" >> $MODPATH/module.prop
|
# echo "author=ohnoku" >> $MODPATH/module.prop
|
||||||
echo "description=V2ray core with service scripts for Android" >> $MODPATH/module.prop
|
# echo "description=V2ray core with service scripts for Android" >> $MODPATH/module.prop
|
||||||
|
|
||||||
inet_uid="3003"
|
inet_uid="3003"
|
||||||
net_raw_uid="3004"
|
net_raw_uid="3004"
|
||||||
|
@ -1,7 +1,6 @@
|
|||||||
id=v2ray
|
id=v2ray
|
||||||
name=V2ray for Android
|
name=V2ray for Android
|
||||||
version=2.0.1
|
version=2.0.1.02
|
||||||
versionCode=20220119
|
versionCode=20220223
|
||||||
author=ohnoku
|
author=ohnoku
|
||||||
description=V2ray core with service scripts for Android
|
description=V2ray core with service scripts for Android
|
||||||
updateJson=https://yatsuki.github.io/v2ray-release/release.json
|
|
Loading…
Reference in New Issue
Block a user