Skip to content

Commit

Permalink
ci: 完成打包
Browse files Browse the repository at this point in the history
  • Loading branch information
Ljzd-PRO committed Apr 4, 2024
1 parent bffbed8 commit b8dc204
Showing 1 changed file with 6 additions and 3 deletions.
9 changes: 6 additions & 3 deletions .github/workflows/github-release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -30,10 +30,13 @@ jobs:
for dir in */; do
dir_name=$(basename "$dir")
new_dir_name="${dir_name}-$(basename ${{ github.ref }})"
zip_file_name="${dir_name}-$(basename ${{ github.ref }}).zip"
zip_file_name="${new_dir_name}.zip"
mkdir ${new_dir_name}
find ${dir} -type f -name '*.dll' ! -name 'Assembly-CSharp.dll' ! -name 'UnityEngine.dll' ! -name 'MelonLoader.dll' -exec mv ${dir}/{} ${new_dir_name} \;
zip -r "${zip_file_name}" "${new_dir_name}"
mkdir ${new_dir_name}/Mods
find ${dir} -type f -name '*.dll' ! -name 'Assembly-CSharp.dll' ! -name 'UnityEngine.dll' ! -name 'MelonLoader.dll' -exec cp {} ${new_dir_name}/Mods \;
cd ${new_dir_name}
zip -r ../${zip_file_name} Mods
cd ..
done
cd ..
Expand Down

0 comments on commit b8dc204

Please sign in to comment.