1
0
mirror of synced 2024-11-12 02:00:52 +01:00

build: Move renaming of the macOS bundle to the CI

This commit is contained in:
WerWolv 2024-03-23 00:33:46 +01:00
parent d09f2c4f26
commit 5d0b474a7e
3 changed files with 4 additions and 4 deletions

View File

@ -226,6 +226,7 @@ jobs:
run: |
set -x
cd build/install
mv imhex.app ImHex.app
codesign --remove-signature ImHex.app
codesign --force --deep --sign - ImHex.app
@ -318,6 +319,7 @@ jobs:
run: |
set -x
cd out
mv imhex.app ImHex.app
codesign --remove-signature ImHex.app
codesign --force --deep --sign - ImHex.app

View File

@ -118,7 +118,7 @@ macro(configurePackingResources)
endif()
elseif (APPLE OR ${CMAKE_HOST_SYSTEM_NAME} MATCHES "Darwin")
set(IMHEX_ICON "${IMHEX_BASE_FOLDER}/resources/dist/macos/AppIcon.icns")
set(BUNDLE_NAME "ImHex.app")
set(BUNDLE_NAME "imhex.app")
if (IMHEX_GENERATE_PACKAGE)
set(APPLICATION_TYPE MACOSX_BUNDLE)
@ -257,8 +257,6 @@ macro(createPackage)
install(FILES ${IMHEX_ICON} DESTINATION "${CMAKE_INSTALL_PREFIX}/${BUNDLE_NAME}/Contents/Resources")
install(TARGETS main BUNDLE DESTINATION ".")
install(DIRECTORY "${CMAKE_INSTALL_PREFIX}/imhex.app/" DESTINATION "${CMAKE_INSTALL_PREFIX}/${BUNDLE_NAME}/" OPTIONAL)
# Update library references to make the bundle portable
postprocess_bundle(imhex_all main)

View File

@ -170,4 +170,4 @@ EOF
FROM scratch
COPY --from=build /mnt/ImHex/build/install/ImHex.app ImHex.app
COPY --from=build /mnt/ImHex/build/install/imhex.app imhex.app