mirror of
https://github.com/Chatterino/chatterino2.git
synced 2024-11-13 19:49:51 +01:00
🎉 Added install target
This commit is contained in:
parent
b1604a5acf
commit
dc383b97ed
1
.github/workflows/build.yml
vendored
1
.github/workflows/build.yml
vendored
|
@ -116,6 +116,7 @@ jobs:
|
||||||
rapidjson-dev \
|
rapidjson-dev \
|
||||||
libssl-dev \
|
libssl-dev \
|
||||||
libboost-dev \
|
libboost-dev \
|
||||||
|
libxcb-randr0-dev \
|
||||||
libboost-system-dev \
|
libboost-system-dev \
|
||||||
libboost-filesystem-dev \
|
libboost-filesystem-dev \
|
||||||
libpulse-dev \
|
libpulse-dev \
|
||||||
|
|
|
@ -1,5 +1,5 @@
|
||||||
freebsd {
|
freebsd {
|
||||||
INCLUDEPATH += /usr/local/include
|
INCLUDEPATH += /usr/local/include/qt5keychain
|
||||||
LIBS += -lqt5keychain
|
LIBS += -lqt5keychain
|
||||||
} else {
|
} else {
|
||||||
unix:!android:!macx:!ios {
|
unix:!android:!macx:!ios {
|
||||||
|
|
|
@ -273,4 +273,19 @@ if (MSVC)
|
||||||
COMMAND windeployqt $<TARGET_FILE:${PROJECT_NAME}> --release --no-compiler-runtime --no-translations --no-opengl-sw --dir ${RUNTIME_OUTPUT_DIRECTORY}
|
COMMAND windeployqt $<TARGET_FILE:${PROJECT_NAME}> --release --no-compiler-runtime --no-translations --no-opengl-sw --dir ${RUNTIME_OUTPUT_DIRECTORY}
|
||||||
WORKING_DIRECTORY ${RUNTIME_OUTPUT_DIRECTORY}
|
WORKING_DIRECTORY ${RUNTIME_OUTPUT_DIRECTORY}
|
||||||
)
|
)
|
||||||
|
elseif (UNIX)
|
||||||
|
install(TARGETS ${PROJECT_NAME}
|
||||||
|
RUNTIME DESTINATION bin
|
||||||
|
LIBRARY DESTINATION lib
|
||||||
|
ARCHIVE DESTINATION lib/static
|
||||||
|
)
|
||||||
|
|
||||||
|
install(FILES ${CMAKE_SOURCE_DIR}/resources/com.chatterino.chatterino.desktop
|
||||||
|
DESTINATION share/applications
|
||||||
|
)
|
||||||
|
|
||||||
|
install(FILES ${CMAKE_SOURCE_DIR}/resources/icon.png
|
||||||
|
RENAME com.chatterino.chatterino.png
|
||||||
|
DESTINATION share/icons/hicolor/256x256/apps
|
||||||
|
)
|
||||||
endif ()
|
endif ()
|
Loading…
Reference in a new issue