Skip to content

Commit

Permalink
fix corruption due to code signing
Browse files Browse the repository at this point in the history
  • Loading branch information
williamhCode committed Oct 29, 2024
1 parent 45a3378 commit 004b013
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 2 deletions.
9 changes: 7 additions & 2 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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 }}
4 changes: 4 additions & 0 deletions CmakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down

0 comments on commit 004b013

Please sign in to comment.