Update full web node for release
This commit is contained in:
parent
a4d87ec8c7
commit
f2b0a6d959
8 changed files with 17 additions and 12 deletions
2
programs/full_web_node/BUILD.md
Normal file
2
programs/full_web_node/BUILD.md
Normal file
|
|
@ -0,0 +1,2 @@
|
|||
cd ${HOME}/Qt/5.5/clang_64/bin
|
||||
./macdeployqt ${FULL_PATH}/full_web_node/BitShares\ 2.app -dmg -qmldir=${FULL_PATH}/full_web_node/qml
|
||||
|
|
@ -47,8 +47,7 @@ void BlockChain::start()
|
|||
startFuture = chainThread->async([this] {
|
||||
try {
|
||||
QSettings settings;
|
||||
rpcEndpoint = settings.value( "rpc-endpoint", "127.0.0.1:8090" ).value<QString>();
|
||||
auto seed_node = settings.value( "seed-node", "104.236.51.238:2005" ).value<QString>().toStdString();
|
||||
rpcEndpoint = settings.value( "rpc-endpoint", "127.0.0.1:8091" ).value<QString>();
|
||||
grapheneApp->register_plugin<graphene::account_history::account_history_plugin>();
|
||||
grapheneApp->register_plugin<graphene::market_history::market_history_plugin>();
|
||||
|
||||
|
|
@ -57,7 +56,6 @@ void BlockChain::start()
|
|||
idump((dataDir.toStdString()));
|
||||
boost::program_options::variables_map map;
|
||||
map.insert({"rpc-endpoint",boost::program_options::variable_value(rpcEndpoint.toStdString(), false)});
|
||||
map.insert({"seed-node",boost::program_options::variable_value(std::vector<std::string>{(seed_node)}, false)});
|
||||
grapheneApp->initialize(dataDir.toStdString(), map);
|
||||
grapheneApp->initialize_plugins(map);
|
||||
grapheneApp->startup();
|
||||
|
|
|
|||
|
|
@ -42,7 +42,7 @@ qt5_add_resources(QML_QRC qml/qml.qrc)
|
|||
qt5_add_resources(WEB_QRC web/web.qrc)
|
||||
|
||||
|
||||
set( APP_NAME "GrapheneOct5" )
|
||||
set( APP_NAME "BitShares 2" )
|
||||
|
||||
set( CPACK_BUNDLE_NAME ${APP_NAME} )
|
||||
set( CPACK_PACKAGE_NAME ${CPACK_BUNDLE_NAME} )
|
||||
|
|
@ -59,13 +59,14 @@ get_filename_component( QT_PATH ${Qt5Core_DIR}/../../../ ABSOLUTE )
|
|||
|
||||
|
||||
IF( APPLE )
|
||||
set( MACOSX_BUNDLE_INFO_PLIST "${CMAKE_CURRENT_SOURCE_DIR}/Info.plist.in" )
|
||||
set ( OSX_ICON_FILE "${CMAKE_CURRENT_SOURCE_DIR}/images/bitshares.icns" )
|
||||
SET_SOURCE_FILES_PROPERTIES( "${OSX_ICON_FILE}" PROPERTIES MACOSX_PACKAGE_LOCATION Resources )
|
||||
SET( MACOSX_BUNDLE_BUNDLE_NAME ${CPACK_BUNDLE_NAME} )
|
||||
SET( MACOSX_BUNDLE_EXECUTABLE_NAME ${CPACK_BUNDLE_NAME} )
|
||||
SET( MACOSX_BUNDLE_GUI_IDENTIFIER "org.cryptonomex.${CPACK_BUNDLE_NAME}" )
|
||||
SET( MACOSX_BUNDLE_GUI_IDENTIFIER "org.bitshares.${CPACK_BUNDLE_NAME}" )
|
||||
SET( MACOSX_BUNDLE_ICON_FILE "bitshares.icns" )
|
||||
SET( MACOSX_BUNDLE_INFO_STRING "Graphene v${VERSION_MAJOR}.${VERSION_MINOR}.${VERSION_PATCH}" )
|
||||
SET( MACOSX_BUNDLE_INFO_STRING "BitShares v${VERSION_MAJOR}.${VERSION_MINOR}.${VERSION_PATCH}" )
|
||||
SET( MACOSX_BUNDLE_SHORT_VERSION_STRING "${VERSION_MAJOR}.${VERSION_MINOR}.${VERSION_PATCH}" )
|
||||
SET( MACOSX_BUNDLE_LONG_VERSION_STRING "${VERSION_MAJOR}.${VERSION_MINOR}.${VERSION_PATCH}" )
|
||||
SET( MACOSX_BUNDLE_BUNDLE_VERSION "${VERSION_MAJOR}.${VERSION_MINOR}.${VERSION_PATCH}" )
|
||||
|
|
|
|||
4
programs/full_web_node/Info.plist.in
Normal file
4
programs/full_web_node/Info.plist.in
Normal file
|
|
@ -0,0 +1,4 @@
|
|||
<key>NSPrincipleClass</key>
|
||||
<string>NSApplication</string>
|
||||
<key>NSHighResolutionCapable</key>
|
||||
<string>True</string>
|
||||
BIN
programs/full_web_node/images/bitshares.icns
Normal file
BIN
programs/full_web_node/images/bitshares.icns
Normal file
Binary file not shown.
|
|
@ -23,10 +23,10 @@ int main(int argc, char *argv[])
|
|||
{
|
||||
fc::thread::current().set_name("main");
|
||||
QGuiApplication app(argc, argv);
|
||||
app.setApplicationName("GrapheneOct5");
|
||||
app.setApplicationName("BitShares 2");
|
||||
app.setApplicationDisplayName(app.applicationName());
|
||||
app.setOrganizationDomain("cryptonomex.org");
|
||||
app.setOrganizationName("Cryptonomex, Inc.");
|
||||
app.setOrganizationDomain("bitshares.org");
|
||||
app.setOrganizationName("BitShares");
|
||||
|
||||
QtWebEngine::initialize();
|
||||
qmlRegisterType<BlockChain>("Graphene.FullNode", 1, 0, "BlockChain");
|
||||
|
|
|
|||
|
|
@ -6,8 +6,8 @@ import Graphene.FullNode 1.0
|
|||
|
||||
Window {
|
||||
id: window
|
||||
width: Screen.width / 2
|
||||
height: Screen.height / 2
|
||||
width: Screen.width *.75
|
||||
height: Screen.height *.75
|
||||
visible: true
|
||||
|
||||
BlockChain {
|
||||
|
|
|
|||
|
|
@ -4,7 +4,7 @@
|
|||
<meta charset="utf-8">
|
||||
<meta name="viewport" content="width=device-width"/>
|
||||
<!--<meta name="viewport" content="width=device-width, initial-scale=1.0, maximum-scale=1.0, user-scalable=no"/>-->
|
||||
<title>Graphene UI</title>
|
||||
<title>BitShares 2.0</title>
|
||||
<link rel="icon" type="image/x-icon" href="favicon.ico">
|
||||
<style>
|
||||
body {background-color: #2a2a2a}
|
||||
|
|
|
|||
Loading…
Reference in a new issue