build: Move renaming of the macOS bundle to the CI
This commit is contained in:
parent
d09f2c4f26
commit
5d0b474a7e
2
.github/workflows/build.yml
vendored
2
.github/workflows/build.yml
vendored
@ -226,6 +226,7 @@ jobs:
|
|||||||
run: |
|
run: |
|
||||||
set -x
|
set -x
|
||||||
cd build/install
|
cd build/install
|
||||||
|
mv imhex.app ImHex.app
|
||||||
codesign --remove-signature ImHex.app
|
codesign --remove-signature ImHex.app
|
||||||
codesign --force --deep --sign - ImHex.app
|
codesign --force --deep --sign - ImHex.app
|
||||||
|
|
||||||
@ -318,6 +319,7 @@ jobs:
|
|||||||
run: |
|
run: |
|
||||||
set -x
|
set -x
|
||||||
cd out
|
cd out
|
||||||
|
mv imhex.app ImHex.app
|
||||||
codesign --remove-signature ImHex.app
|
codesign --remove-signature ImHex.app
|
||||||
codesign --force --deep --sign - ImHex.app
|
codesign --force --deep --sign - ImHex.app
|
||||||
|
|
||||||
|
@ -118,7 +118,7 @@ macro(configurePackingResources)
|
|||||||
endif()
|
endif()
|
||||||
elseif (APPLE OR ${CMAKE_HOST_SYSTEM_NAME} MATCHES "Darwin")
|
elseif (APPLE OR ${CMAKE_HOST_SYSTEM_NAME} MATCHES "Darwin")
|
||||||
set(IMHEX_ICON "${IMHEX_BASE_FOLDER}/resources/dist/macos/AppIcon.icns")
|
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)
|
if (IMHEX_GENERATE_PACKAGE)
|
||||||
set(APPLICATION_TYPE MACOSX_BUNDLE)
|
set(APPLICATION_TYPE MACOSX_BUNDLE)
|
||||||
@ -257,8 +257,6 @@ macro(createPackage)
|
|||||||
install(FILES ${IMHEX_ICON} DESTINATION "${CMAKE_INSTALL_PREFIX}/${BUNDLE_NAME}/Contents/Resources")
|
install(FILES ${IMHEX_ICON} DESTINATION "${CMAKE_INSTALL_PREFIX}/${BUNDLE_NAME}/Contents/Resources")
|
||||||
install(TARGETS main BUNDLE DESTINATION ".")
|
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
|
# Update library references to make the bundle portable
|
||||||
postprocess_bundle(imhex_all main)
|
postprocess_bundle(imhex_all main)
|
||||||
|
|
||||||
|
2
dist/macOS/arm64.Dockerfile
vendored
2
dist/macOS/arm64.Dockerfile
vendored
@ -170,4 +170,4 @@ EOF
|
|||||||
|
|
||||||
|
|
||||||
FROM scratch
|
FROM scratch
|
||||||
COPY --from=build /mnt/ImHex/build/install/ImHex.app ImHex.app
|
COPY --from=build /mnt/ImHex/build/install/imhex.app imhex.app
|
||||||
|
Loading…
x
Reference in New Issue
Block a user