Merge with develop
This commit is contained in:
parent
e668405115
commit
2b4058ed95
3 changed files with 23 additions and 1 deletions
|
@ -60,7 +60,7 @@ ENDIF()
|
||||||
ADD_EXECUTABLE(ryzom_installer_qt WIN32 MACOSX_BUNDLE ${SRC} ${CLIENT_INSTALL_MOC_SRC} ${CLIENT_INSTALL_UI_HDRS} ${CLIENT_INSTALL_RC_SRCS} ${CLIENT_INSTALL_TRANS} ${CLIENT_INSTALL_BASE_TRANS} ${CLIENT_INSTALL_QM})
|
ADD_EXECUTABLE(ryzom_installer_qt WIN32 MACOSX_BUNDLE ${SRC} ${CLIENT_INSTALL_MOC_SRC} ${CLIENT_INSTALL_UI_HDRS} ${CLIENT_INSTALL_RC_SRCS} ${CLIENT_INSTALL_TRANS} ${CLIENT_INSTALL_BASE_TRANS} ${CLIENT_INSTALL_QM})
|
||||||
|
|
||||||
IF(APPLE)
|
IF(APPLE)
|
||||||
SET_TARGET_PROPERTIES(ryzom_installer_qt PROPERTIES OUTPUT_NAME RyzomInstaller)
|
SET_TARGET_PROPERTIES(ryzom_installer_qt PROPERTIES OUTPUT_NAME ${MACOSX_BUNDLE_BUNDLE_NAME})
|
||||||
SET_TARGET_PROPERTIES(ryzom_installer_qt PROPERTIES MACOSX_BUNDLE_INFO_PLIST ${MAC_RESOURCES_DIR}/Info.plist)
|
SET_TARGET_PROPERTIES(ryzom_installer_qt PROPERTIES MACOSX_BUNDLE_INFO_PLIST ${MAC_RESOURCES_DIR}/Info.plist)
|
||||||
ADD_CUSTOM_COMMAND(TARGET ryzom_installer_qt PRE_BUILD COMMAND mkdir -p ${RYZOM_RESOURCES_DIR})
|
ADD_CUSTOM_COMMAND(TARGET ryzom_installer_qt PRE_BUILD COMMAND mkdir -p ${RYZOM_RESOURCES_DIR})
|
||||||
ADD_CUSTOM_COMMAND(TARGET ryzom_installer_qt POST_BUILD COMMAND cp ARGS -p ${MAC_RESOURCES_DIR}/PkgInfo ${RYZOM_CONTENTS_DIR})
|
ADD_CUSTOM_COMMAND(TARGET ryzom_installer_qt POST_BUILD COMMAND cp ARGS -p ${MAC_RESOURCES_DIR}/PkgInfo ${RYZOM_CONTENTS_DIR})
|
||||||
|
|
|
@ -35,17 +35,28 @@ CInstallDialog::CInstallDialog():QDialog()
|
||||||
// update default destination
|
// update default destination
|
||||||
onDestinationDefaultButtonClicked();
|
onDestinationDefaultButtonClicked();
|
||||||
|
|
||||||
|
#ifdef Q_OS_MAC
|
||||||
// check whether OS architecture is 32 or 64 bits
|
// check whether OS architecture is 32 or 64 bits
|
||||||
if (CConfigFile::has64bitsOS())
|
if (CConfigFile::has64bitsOS())
|
||||||
{
|
{
|
||||||
|
// 64 bits enbabled by default
|
||||||
clientArchGroupBox->setVisible(true);
|
clientArchGroupBox->setVisible(true);
|
||||||
clientArch64RadioButton->setChecked(true);
|
clientArch64RadioButton->setChecked(true);
|
||||||
|
clientArch32RadioButton->setChecked(false);
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
|
// only 32 bits is available
|
||||||
clientArchGroupBox->setVisible(false);
|
clientArchGroupBox->setVisible(false);
|
||||||
|
clientArch64RadioButton->setChecked(false);
|
||||||
clientArch32RadioButton->setChecked(true);
|
clientArch32RadioButton->setChecked(true);
|
||||||
}
|
}
|
||||||
|
#else
|
||||||
|
// only 64 bits for OS X
|
||||||
|
clientArchGroupBox->setVisible(false);
|
||||||
|
clientArch64RadioButton->setChecked(true);
|
||||||
|
clientArch32RadioButton->setChecked(false);
|
||||||
|
#endif
|
||||||
|
|
||||||
const CServer &server = CConfigFile::getInstance()->getServer();
|
const CServer &server = CConfigFile::getInstance()->getServer();
|
||||||
|
|
||||||
|
|
|
@ -49,17 +49,28 @@ CMigrateDialog::CMigrateDialog():QDialog()
|
||||||
// update default destination
|
// update default destination
|
||||||
onDestinationDefaultButtonClicked();
|
onDestinationDefaultButtonClicked();
|
||||||
|
|
||||||
|
#ifdef Q_OS_MAC
|
||||||
// check whether OS architecture is 32 or 64 bits
|
// check whether OS architecture is 32 or 64 bits
|
||||||
if (CConfigFile::has64bitsOS())
|
if (CConfigFile::has64bitsOS())
|
||||||
{
|
{
|
||||||
|
// 64 bits enbabled by default
|
||||||
clientArchGroupBox->setVisible(true);
|
clientArchGroupBox->setVisible(true);
|
||||||
clientArch64RadioButton->setChecked(true);
|
clientArch64RadioButton->setChecked(true);
|
||||||
|
clientArch32RadioButton->setChecked(false);
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
|
// only 32 bits is available
|
||||||
clientArchGroupBox->setVisible(false);
|
clientArchGroupBox->setVisible(false);
|
||||||
|
clientArch64RadioButton->setChecked(false);
|
||||||
clientArch32RadioButton->setChecked(true);
|
clientArch32RadioButton->setChecked(true);
|
||||||
}
|
}
|
||||||
|
#else
|
||||||
|
// only 64 bits for OS X
|
||||||
|
clientArchGroupBox->setVisible(false);
|
||||||
|
clientArch64RadioButton->setChecked(true);
|
||||||
|
clientArch32RadioButton->setChecked(false);
|
||||||
|
#endif
|
||||||
|
|
||||||
const CServer &server = CConfigFile::getInstance()->getServer();
|
const CServer &server = CConfigFile::getInstance()->getServer();
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue