更新 .gitea/workflows/app_update.yml
This commit is contained in:
@@ -40,16 +40,26 @@ jobs:
|
|||||||
|
|
||||||
- name: 下载并解压Shadowsocks-Rust
|
- name: 下载并解压Shadowsocks-Rust
|
||||||
run: |
|
run: |
|
||||||
SS_RUST_VERSION=$(curl -s "https://api.github.com/repos/shadowsocks/shadowsocks-rust/releases/latest" \
|
SS_RUST_VERSION=$(curl -s "https://api.github.com/repos/shadowsocks/shadowsocks-rust/releases/latest" | grep '"tag_name":' | sed -E 's/.*"([^"]+)".*/\1/')
|
||||||
| grep '"tag_name":' | sed -E 's/.*"([^"]+)".*/\1/')
|
SS_RUST_URL="https://github.com/shadowsocks/shadowsocks-rust/releases/latest/download/shadowsocks-${SS_RUST_VERSION}.x86_64-unknown-linux-musl.tar.xz"
|
||||||
DOWNLOAD_URL="https://github.com/shadowsocks/shadowsocks-rust/releases/latest/download/shadowsocks-${SS_RUST_VERSION}.x86_64-unknown-linux-musl.tar.xz"
|
|
||||||
|
|
||||||
echo "下载版本: ${SS_RUST_VERSION}"
|
echo "下载版本: ${SS_RUST_VERSION}"
|
||||||
curl -L "${DOWNLOAD_URL}" -o "shadowsocks.tar.xz" --fail --silent --show-error
|
curl -L "${SS_RUST_URL}" -o "shadowsocks.tar.xz" --fail --silent --show-error
|
||||||
tar -xvf shadowsocks.tar.xz -C tmp/
|
tar -xvf shadowsocks.tar.xz -C tmp/
|
||||||
mv tmp/ssserver app/
|
mv tmp/ssserver app/
|
||||||
mv tmp/sslocal app/
|
mv tmp/sslocal app/
|
||||||
|
|
||||||
|
- name: 下载并解压Frp
|
||||||
|
run: |
|
||||||
|
FRP_VERSION=$(curl -s "https://api.github.com/repos/fatedier/frp/releases/latest" | grep '"tag_name":' | sed -E 's/.*"([^"]+)".*/\1/')
|
||||||
|
FRP_URL="https://github.com/fatedier/frp/releases/latest/download/frp_${FRP_VERSION#v}_linux_amd64.tar.gz"
|
||||||
|
|
||||||
|
echo "下载版本: ${FRP_VERSION}"
|
||||||
|
curl -L "${FRP_URL}" -o "frp.tar.gz" --fail --silent --show-error
|
||||||
|
tar -zxvf frp.tar.gz -C tmp/
|
||||||
|
mv tmp/frp_${FRP_VERSION#v}_linux_amd64/frps app/
|
||||||
|
mv tmp/frp_${FRP_VERSION#v}_linux_amd64/frpc app/
|
||||||
|
|
||||||
- name: 提交更改
|
- name: 提交更改
|
||||||
run: |
|
run: |
|
||||||
git config --local user.email "gitea-actions[bot]@users.noreply.nvme.cc"
|
git config --local user.email "gitea-actions[bot]@users.noreply.nvme.cc"
|
||||||
|
|||||||
Reference in New Issue
Block a user