diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index 8261a64..afcfdfb 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -55,8 +55,13 @@ jobs: - name: Generate package run: make package + - name: Prepare Artifacts + run: | + cd build/release + echo "ARTIFACT_NAME=$(ls Neogurt*.dmg)" >> $GITHUB_ENV + - name: Upload build artifacts uses: actions/upload-artifact@v4 with: - name: Neogurt-${{ matrix.os-name }}-${{ matrix.arch }} - path: build/release/*.dmg + name: ${{ env.ARTIFACT_NAME }} + path: build/release/${{ env.ARTIFACT_NAME }} diff --git a/CmakeLists.txt b/CmakeLists.txt index dc8f3eb..7082d39 100644 --- a/CmakeLists.txt +++ b/CmakeLists.txt @@ -167,6 +167,10 @@ if (CMAKE_BUILD_TYPE MATCHES RelWithDebInfo) fixup_bundle(\"${APPS}\" \"\" \"${DIRS}\") ") + install(CODE " + execute_process(COMMAND codesign --force --deep --sign - \"${APPS}\") + ") + set(CPACK_GENERATOR DragNDrop) set(CPACK_PACKAGE_FILE_NAME "Neogurt-${PROJECT_VERSION}-${CMAKE_HOST_SYSTEM_PROCESSOR}") include(CPack)