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 ../../../