Skip to content

Commit

Permalink
🐛 fix windows build
Browse files Browse the repository at this point in the history
  • Loading branch information
Reverier-Xu committed Apr 8, 2024
1 parent b6d15bb commit ff99e20
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 10 deletions.
17 changes: 7 additions & 10 deletions deploy_windows.sh
Original file line number Diff line number Diff line change
Expand Up @@ -44,16 +44,13 @@ done

## APP INSTALL #################################################################

if [[ $make_install = true ]] ; then
echo '---- Running make install'
mkdir -p dist
APP_ROOT=dist
cp ./build/bin/wsrx.exe "${APP_ROOT}/wsrx.exe"
cp ./build/bin/wsrx-desktop.exe "${APP_ROOT}/wsrx-desktop.exe"

#echo '---- Installation directory content recap (after make install):'
#find bin/
fi
echo '---- Running make install'
mkdir -p dist
APP_ROOT=dist
cp ./build/bin/wsrx.exe "${APP_ROOT}/wsrx.exe"
cp ./build/bin/wsrx-desktop.exe "${APP_ROOT}/wsrx-desktop.exe"
#echo '---- Installation directory content recap (after make install):'
#find bin/

## DEPLOY ######################################################################

Expand Down
6 changes: 6 additions & 0 deletions desktop/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,13 @@ set(

qt_add_big_resources(RESOURCES resources/i18n.qrc resources/resources.qrc)

if(WIN32)
add_executable(${PROJECT_NAME}-desktop WIN32 ${SOURCES} ${RESOURCES})
elseif(APPLE)
add_executable(${PROJECT_NAME}-desktop MACOSX_BUNDLE ${SOURCES} ${RESOURCES})
else()
add_executable(${PROJECT_NAME}-desktop ${SOURCES} ${RESOURCES})
endif()

target_link_libraries(${PROJECT_NAME}-desktop ${QT_LIBRARIES})

Expand Down

0 comments on commit ff99e20

Please sign in to comment.