update
This commit is contained in:
Executable
+27
@@ -0,0 +1,27 @@
|
||||
#!/bin/bash
|
||||
|
||||
# 获取最新 release 中所有文件的名称
|
||||
files=$(curl -s https://api.github.com/repos/Souma-Sumire/FFXIVChnTextPatch-Souma/releases/latest | jq -r '.assets[].name')
|
||||
|
||||
# 打印文件列表
|
||||
echo "Files to download:"
|
||||
echo "$files"
|
||||
|
||||
# 检查本地是否已经存在这些文件
|
||||
for file in $files; do
|
||||
if [ ! -f "$file" ]; then
|
||||
# 如果本地不存在文件,则下载
|
||||
echo "Downloading $file..."
|
||||
curl -LO "https://github.com/Souma-Sumire/FFXIVChnTextPatch-Souma/releases/latest/download/$file"
|
||||
fi
|
||||
done
|
||||
|
||||
# 将下载的文件添加到 Git 仓库中
|
||||
git add .
|
||||
|
||||
# 提交变更
|
||||
git commit -m "Add latest release files"
|
||||
|
||||
# 推送到远程仓库
|
||||
git push origin master # 如果你的分支不是 master,请根据实际情况修改
|
||||
|
||||
Reference in New Issue
Block a user