update: download core file with `dsaltares/fetch-gh-release-asset`
This commit is contained in:
parent
196cdc831e
commit
1c04ee57eb
|
@ -26,6 +26,15 @@ jobs:
|
|||
with:
|
||||
go-version: 1.19.x
|
||||
|
||||
- name: download meta core
|
||||
uses: dsaltares/fetch-gh-release-asset@master
|
||||
with:
|
||||
repo: 'MetaCubeX/Clash.Meta'
|
||||
regex: true
|
||||
file: "darwin.*\\.gz"
|
||||
target: 'clash.meta/'
|
||||
token: ${{ secrets.GITHUB_TOKEN }}
|
||||
|
||||
- name: install deps
|
||||
run: bash install_dependency.sh
|
||||
|
||||
|
|
|
@ -1,14 +1,8 @@
|
|||
#!/bin/bash
|
||||
set -e
|
||||
|
||||
echo "Download meta core"
|
||||
rm -rf clash.meta
|
||||
mkdir clash.meta
|
||||
cd clash.meta
|
||||
curl -s https://api.github.com/repos/MetaCubeX/Clash.Meta/releases/latest | grep -wo "https.*darwin.*.gz" > meta.txt
|
||||
cat meta.txt
|
||||
wget -i meta.txt
|
||||
echo "Unzip core files"
|
||||
cd clash.meta
|
||||
gzip -d *.gz
|
||||
echo "Create Universal core"
|
||||
lipo -create -output com.metacubex.ClashX.ProxyConfigHelper.meta Clash.Meta-darwin-amd64* Clash.Meta-darwin-arm64*
|
||||
|
|
Loading…
Reference in New Issue