~自动打包内核优化,并增加premium内核
This commit is contained in:
@@ -53,11 +53,4 @@ jobs:
|
|||||||
prerelease: true
|
prerelease: true
|
||||||
files: |
|
files: |
|
||||||
./tmp/*
|
./tmp/*
|
||||||
- name: Commit and push version
|
|
||||||
run: |
|
|
||||||
sed -i "s/meta.a_v=.*/meta.a_v=$(./tmp/clash-linux-amd64 -v 2>/dev/null | head -n 1 | sed 's/ linux.*//;s/.* //')/" bin/version
|
|
||||||
rm -fr ./tmp
|
|
||||||
git config --global user.email "juewuy@126.com" && git config --global user.name "Bot"
|
|
||||||
git add . && git commit -m "更新Meta.Alpha内核至${download_version}" || exit 0
|
|
||||||
git push
|
|
||||||
|
|
||||||
|
|||||||
49
.github/workflows/update_premium.latest_core.yaml
vendored
Normal file
49
.github/workflows/update_premium.latest_core.yaml
vendored
Normal file
@@ -0,0 +1,49 @@
|
|||||||
|
name: Update Premium latest Core
|
||||||
|
on:
|
||||||
|
schedule:
|
||||||
|
- cron: "0 20 * * 1,3,5,6"
|
||||||
|
workflow_dispatch:
|
||||||
|
|
||||||
|
env:
|
||||||
|
download_version: latest
|
||||||
|
download_url: https://release.dreamacro.workers.dev
|
||||||
|
jobs:
|
||||||
|
Update:
|
||||||
|
runs-on: ubuntu-latest
|
||||||
|
steps:
|
||||||
|
- name: Clone Repository
|
||||||
|
uses: actions/checkout@main
|
||||||
|
- name: Init Dependencies
|
||||||
|
run: |
|
||||||
|
wget https://github.com/upx/upx/releases/download/v3.96/upx-3.96-amd64_linux.tar.xz
|
||||||
|
wget https://github.com/upx/upx/releases/download/v3.93/upx-3.93-amd64_linux.tar.xz
|
||||||
|
tar xf upx-3.96-amd64_linux.tar.xz
|
||||||
|
tar xf upx-3.93-amd64_linux.tar.xz
|
||||||
|
- name: Download Core
|
||||||
|
run: |
|
||||||
|
archs="386 amd64 armv5 armv7 arm64 mips-softfloat mipsle-hardfloat mipsle-softfloat"
|
||||||
|
mkdir tmp
|
||||||
|
for arch in ${archs};do
|
||||||
|
wget "${download_url}/${download_version}/clash-linux-${arch}-${download_version}.gz" -O - | gunzip -c > ./tmp/clash-linux-${arch}
|
||||||
|
chmod +x ./tmp/clash-linux-${arch}
|
||||||
|
if [ "${arch}" != "armv5" ];then
|
||||||
|
if [[ ${arch} == mips* ]];then
|
||||||
|
./upx-3.93-amd64_linux/upx ./tmp/clash-linux-${arch}
|
||||||
|
else
|
||||||
|
./upx-3.96-amd64_linux/upx ./tmp/clash-linux-${arch}
|
||||||
|
fi
|
||||||
|
fi
|
||||||
|
done
|
||||||
|
mv -f ./tmp/clash-linux-arm64 ./tmp/clash-linux-armv8
|
||||||
|
rm -fr upx*
|
||||||
|
- name: Create Release and Upload Release Asset
|
||||||
|
uses: softprops/action-gh-release@v1
|
||||||
|
with:
|
||||||
|
tag_name: clash.premium.latest
|
||||||
|
name: clash.premium.latest
|
||||||
|
body: "The latest version of clash.premium core \n这是clash.premium的最新版本内核文件\nhttps://github.com/Dreamacro/clash/releases/tag/premium \nZip by upx\n使用了upx进行压缩\nOnly support for ShellClash\n仅限于ShellClash项目使用"
|
||||||
|
draft: false
|
||||||
|
prerelease: true
|
||||||
|
files: |
|
||||||
|
./tmp/*
|
||||||
|
|
||||||
@@ -2,6 +2,5 @@ clashnet_v=v1.7.6
|
|||||||
clashpre_v=2022.11.25
|
clashpre_v=2022.11.25
|
||||||
clash_v=v1.7.1
|
clash_v=v1.7.1
|
||||||
meta_v=v1.14.2
|
meta_v=v1.14.2
|
||||||
meta.a_v=alpha-c2d1f71
|
|
||||||
GeoIP_v=20230408
|
GeoIP_v=20230408
|
||||||
versionsh=1.7.4f
|
versionsh=1.7.4f
|
||||||
|
|||||||
Reference in New Issue
Block a user