Skip to content

Commit

Permalink
Config fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
firstcryptoman committed Mar 19, 2023
1 parent 8aebcf7 commit a6359a6
Show file tree
Hide file tree
Showing 5 changed files with 16 additions and 10 deletions.
1 change: 0 additions & 1 deletion CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -97,7 +97,6 @@ else ()
configure_file(${mm2_SOURCE_DIR}/mm2.exe ${CMAKE_BINARY_DIR}/bin/assets/tools/mm2/${DEX_API}.exe COPYONLY)
configure_file(${mm2_SOURCE_DIR}/msvcp140.dll ${CMAKE_BINARY_DIR}/bin/assets/tools/mm2/msvcp140.dll COPYONLY)
configure_file(${mm2_SOURCE_DIR}/vcruntime140.dll ${CMAKE_BINARY_DIR}/bin/assets/tools/mm2/vcruntime140.dll COPYONLY)
file(COPY ${jl777-coins_SOURCE_DIR}/icons/ DESTINATION ${mm2_SOURCE_DIR}/bin/atomic_defi_design/assets/images/coins/)
endif ()

add_subdirectory(vendor/antara-gaming_sdk/modules)
Expand Down
7 changes: 7 additions & 0 deletions ci_tools_atomic_dex/ci_scripts/windows_script.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -14,9 +14,16 @@ scoop cache rm git
scoop cache rm cmake
scoop cache rm ninja
scoop cache rm llvm

$Env:QT_INSTALL_CMAKE_PATH = "C:\Qt\$Env:QT_VERSION\msvc2019_64"
$Env:QT_ROOT = "C:\Qt"

git clone https://github.com/KomodoPlatform/coins/ -b master
mkdir -p atomic_defi_design\assets\images\coins
Get-Item -Path "coins\icons\*.png" | Move-Item -Destination "atomic_defi_design\assets\images\coins"

mkdir build
cd build

cmake -DCMAKE_BUILD_TYPE="$Env:CMAKE_BUILD_TYPE" -GNinja ../
ninja install
2 changes: 1 addition & 1 deletion cmake/install/windows/windows_post_install.cmake
Original file line number Diff line number Diff line change
Expand Up @@ -108,4 +108,4 @@ file(COPY ${PROJECT_ROOT_DIR}/ci_tools_atomic_dex/installer/windows/${DEX_PROJEC
message(STATUS "Contents of folder: ls ${TARGET_APP_PATH}")
execute_process(COMMAND ls "${TARGET_APP_PATH}")

message(STATUS "===== Windows Post Install Complete =====")
message(STATUS "===== Windows Post Install Complete =====")
14 changes: 7 additions & 7 deletions src/core/atomicdex/services/mm2/mm2.service.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -63,7 +63,7 @@ namespace
SPDLOG_INFO("There is a precedent configuration file, upgrading the new one with precedent settings");

//! Old cfg to ifs
LOG_PATH("opening file: {}", precedent_version_cfg_path);
LOG_PATH("opening previous version coins file: {}", precedent_version_cfg_path);
QFile ifs;
ifs.setFileName(atomic_dex::std_path_to_qstring(precedent_version_cfg_path));
ifs.open(QIODevice::Text | QIODevice::ReadOnly);
Expand All @@ -72,7 +72,7 @@ namespace

//! New cfg to ifs
std::filesystem::path actual_version_filepath = cfg_path / (std::string(atomic_dex::get_raw_version()) + "-coins."s + wallet_name + ".json"s);
LOG_PATH("opening file: {}", actual_version_filepath);
LOG_PATH("opening new version coins file: {}", actual_version_filepath);
QFile actual_version_ifs;
actual_version_ifs.setFileName(atomic_dex::std_path_to_qstring(actual_version_filepath));
actual_version_ifs.open(QIODevice::Text | QIODevice::ReadOnly);
Expand All @@ -97,13 +97,13 @@ namespace
}
}

LOG_PATH("closing file: {}", precedent_version_cfg_path);
LOG_PATH("closing old version coins file: {}", precedent_version_cfg_path);
ifs.close();
LOG_PATH("closing file: {}", actual_version_filepath);
LOG_PATH("closing new version coins file: {}", actual_version_filepath);
actual_version_ifs.close();

//! Write contents
LOG_PATH("opening file: {}", actual_version_filepath);
LOG_PATH("opening new version file: {}", actual_version_filepath);
QFile ofs;
ofs.setFileName(atomic_dex::std_path_to_qstring(actual_version_filepath));
ofs.open(QIODevice::Text | QIODevice::WriteOnly);
Expand All @@ -116,7 +116,7 @@ namespace
{
SPDLOG_ERROR("error: {}", ec.message());
}
LOG_PATH("closing file: {}", actual_version_filepath);
LOG_PATH("closing new version file: {}", actual_version_filepath);
ofs.close();
}
}
Expand Down Expand Up @@ -2488,4 +2488,4 @@ namespace atomic_dex
{
update_coin_status(this->m_current_wallet_name, {ticker}, status, m_coins_informations, m_coin_cfg_mutex, "is_segwit_on");
}
} // namespace atomic_dex
} // namespace atomic_dex
2 changes: 1 addition & 1 deletion vcpkg.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "atomicdex-desktop",
"version-string": "0.5.5",
"version-string": "0.5.7",
"dependencies": [
"entt",
"boost-multiprecision",
Expand Down

0 comments on commit a6359a6

Please sign in to comment.