Skip to content

Commit

Permalink
🚧 CI
Browse files Browse the repository at this point in the history
  • Loading branch information
kitUIN committed Dec 5, 2024
1 parent 48ab979 commit 6d8965e
Showing 1 changed file with 13 additions and 1 deletion.
14 changes: 13 additions & 1 deletion matrix.sh
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,19 @@ for path in "${paths[@]}"; do
# 提取 mc-version 和 mc-loader 信息
mcVersion="${folderName//$path-/}"
mcLoader="$path"
allFolderObjects+=("{\"mc-version\": \"$mcVersion\", \"mc-loader\": \"$mcLoader\"}")
supportVersionFile="$mcLoader/$mcLoader-$mcVersion/support_version.txt"
if [[ -f "$supportVersionFile" ]]; then
supportVersion=$(cat "$supportVersionFile")
else
supportVersion="$mcVersion"
fi

if [ "$mcLoader" == "fabric" ]; then
publishLoaders="fabric quilt"
else
publishLoaders="$mcLoader"
fi
allFolderObjects+=("{\"mc-version\": \"$mcVersion\", \"mc-loader\": \"$mcLoader\", \"publish-loaders\": \"$publishLoaders\", \"publish-version\": \"$supportVersion\"}")
fi
done
done
Expand Down

0 comments on commit 6d8965e

Please sign in to comment.