Install Apple specifics

master
Melroy van den Berg 2022-02-09 22:46:58 +01:00
parent e831e2983a
commit 71c237b9da
No known key found for this signature in database
GPG Key ID: 71D11FF23454B9D7
2 changed files with 12 additions and 5 deletions

View File

@ -65,10 +65,15 @@ endif()
# Additional install files
if(WIN32)
# Windows specific
# Microsoft Windows specific
install(DIRECTORY packaging_win/ DESTINATION .)
install(PROGRAMS go-ipfs/ipfs.exe DESTINATION bin)
else()
elseif(APPLE)
# Apple macOS specific
# TODO: Check what kind of packaging do we additional need?
# I guess Adwaita & hicolor icons should be enough
install(PROGRAMS go-ipfs/ipfs-darwin DESTINATION bin)
elseif(UNIX)
# UNIX specific
install(FILES misc/libreweb-browser.desktop DESTINATION share/applications)
install(PROGRAMS go-ipfs/ipfs DESTINATION bin)

View File

@ -52,8 +52,8 @@ set(SOURCES
# Install and recompile glib gsettings schema
add_schema("org.libreweb.browser.gschema.xml" GSCHEMA_RING)
# Only for Windows
if(WIN32)
# For Windows & macOS
if(WIN32 OR APPLE)
# Windows Schema files
set(WINDOWS_SCHEMA_FILES
org.gtk.Settings.ColorChooser.gschema.xml
@ -65,7 +65,9 @@ if(WIN32)
foreach(SCHEMA_FILE ${WINDOWS_SCHEMA_FILES})
add_schema(${SCHEMA_FILE} GSCHEMA_RING)
endforeach(SCHEMA_FILE)
endif()
# Only for Windows
if(WIN32)
# Text format Windows resource file for Resource Compiler (rc)
set(WINDOWS_RES_IN ${CMAKE_SOURCE_DIR}/misc/libreweb.rc.in)
set(WINDOWS_RES ${CMAKE_CURRENT_BINARY_DIR}/libreweb.rc)