Skip to content

Commit

Permalink
Attempt to fix artifacts
Browse files Browse the repository at this point in the history
  • Loading branch information
tresf committed May 25, 2024
1 parent 25163d5 commit 8c98073
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 2 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -216,7 +216,7 @@ jobs:
- name: Upload artifacts
uses: actions/upload-artifact@v3
with:
name: macos
name: macos-arm
path: build/lmms-*.dmg
- name: Trim ccache and print statistics
run: |
Expand Down
9 changes: 8 additions & 1 deletion cmake/apple/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -19,8 +19,15 @@ CONFIGURE_FILE("lmms.plist.in" "${CMAKE_BINARY_DIR}/Info.plist")
CONFIGURE_FILE("install_apple.sh.in" "${CMAKE_BINARY_DIR}/install_apple.sh" @ONLY)
CONFIGURE_FILE("package_apple.json.in" "${CMAKE_BINARY_DIR}/package_apple.json" @ONLY)

# Append foriegn arch
IF(CMAKE_APPLE_SILICON_PROCESSOR)
SET(DMG_ARCH "-${CMAKE_APPLE_SILICON_PROCESSOR}")
ELSEIF(CMAKE_OSX_ARCHITECTURES)
SET(DMG_ARCH "-${CMAKE_OSX_ARCHITECTURES}")
ENDIF()

# DMG creation target
SET(DMG_FILE "${CMAKE_BINARY_DIR}/${CMAKE_PROJECT_NAME}-${VERSION}-mac${APPLE_OS_VER}.dmg")
SET(DMG_FILE "${CMAKE_BINARY_DIR}/${CMAKE_PROJECT_NAME}-${VERSION}-mac${APPLE_OS_VER}${DMG_ARCH}.dmg")
FILE(REMOVE "${DMG_FILE}")
ADD_CUSTOM_TARGET(removedmg
COMMAND touch "\"${DMG_FILE}\"" && rm "\"${DMG_FILE}\""
Expand Down

0 comments on commit 8c98073

Please sign in to comment.