第一个正式版本构建(修正工作流-运行权限)
All checks were successful
Deploy to Remote Server / deploy (push) Successful in 59s

This commit is contained in:
叁玖领域 2025-10-27 19:58:00 +08:00
parent 5b057e08b0
commit 630e195f25

View File

@ -82,6 +82,11 @@ jobs:
- name: Update pack.toml if initialized is true
if: steps.project-config.outputs.initialized == 'true'
run: |
echo "=== 更新所有模组 ==="
# 确保 packwiz 有执行权限
chmod +x ./packwiz
./packwiz update --all
echo "✅ 模组更新完成"
echo "=== 更新 pack.toml 版本 ==="
if [ -f "pack.toml" ]; then
echo "找到 pack.toml 文件,更新版本..."
@ -124,6 +129,11 @@ jobs:
echo "模组加载器版本: ${{ steps.project-config.outputs.modloader-version }}"
echo "索引文件: ${{ steps.project-config.outputs.index-file }}"
# 给 packwiz 添加执行权限
echo "=== 设置 packwiz 执行权限 ==="
chmod +x ./packwiz
ls -la ./packwiz
# 执行 packwiz 初始化命令
./packwiz init \
--name "${{ steps.project-config.outputs.name }}" \