This commit is contained in:
2024-03-02 16:12:08 +08:00
parent 35fdd08915
commit 7cde465be0
Executable
+27
View File
@@ -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,请根据实际情况修改