From 270dae4367060a2a4e3898ce06532045ec864a63 Mon Sep 17 00:00:00 2001 From: Color_yr <402067010@qq.com> Date: Mon, 16 Sep 2024 14:04:57 +0800 Subject: [PATCH] =?UTF-8?q?up=20macos=20=C2=A0=E7=AD=BE=E5=90=8D?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .github/workflows/dotnet-build.yml | 2 +- build/build-macos.sh | 1 + 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/.github/workflows/dotnet-build.yml b/.github/workflows/dotnet-build.yml index c24f8ad0a..3f2f1d639 100644 --- a/.github/workflows/dotnet-build.yml +++ b/.github/workflows/dotnet-build.yml @@ -175,7 +175,7 @@ jobs: path: build_out/colormc-linux-${{ env.MAINVERSION }}${{ env.VERSION }}-min-x86_64.AppImage build-macos: - runs-on: ubuntu-latest + runs-on: macos-latest steps: - uses: actions/checkout@v3 - name: 设置.NET Core diff --git a/build/build-macos.sh b/build/build-macos.sh index a2aac4797..ea34b3bc3 100755 --- a/build/build-macos.sh +++ b/build/build-macos.sh @@ -49,6 +49,7 @@ build_osx() chmod a+x $dir/ColorMC.Launcher cd ./src/build_out/$1-dotnet + codesign --force --deep --sign - ColorMC.app zip -r $zip_name ./ColorMC.app mv $zip_name ../../../build_out/$zip_name cd ../../../