Fix qrc resources not working
This commit is contained in:
		| @@ -43,6 +43,6 @@ Install the dependencies from Github: | |||||||
|  |  | ||||||
|     git clone <TODO> |     git clone <TODO> | ||||||
|     cd harmonyqml |     cd harmonyqml | ||||||
|     qmake && make && sudo make install |     qmake harmonyqml.pro && make && sudo make install | ||||||
|  |  | ||||||
| After this if no errors happened, run `harmonyqml`. | After this if no errors happened, run `harmonyqml`. | ||||||
|   | |||||||
							
								
								
									
										1
									
								
								TODO.md
									
									
									
									
									
								
							
							
						
						
									
										1
									
								
								TODO.md
									
									
									
									
									
								
							| @@ -129,6 +129,7 @@ | |||||||
|   - Links preview |   - Links preview | ||||||
|  |  | ||||||
| - Client improvements | - Client improvements | ||||||
|  |   - Check if username exists on login screen | ||||||
|   - `pyotherside.atexit()` |   - `pyotherside.atexit()` | ||||||
|   - Logout previous session if adding an account that's already connected |   - Logout previous session if adding an account that's already connected | ||||||
|   - Image provider: on failed conversion, way to show a "broken image" thumb? |   - Image provider: on failed conversion, way to show a "broken image" thumb? | ||||||
|   | |||||||
| @@ -69,5 +69,5 @@ for(file, $$list($$glob_filenames(*.py))) { | |||||||
| } | } | ||||||
|  |  | ||||||
| QMAKE_CLEAN *= $$MOC_DIR $$OBJECTS_DIR $$RCC_DIR $$PYCACHE_DIRS $$QRC_FILE | QMAKE_CLEAN *= $$MOC_DIR $$OBJECTS_DIR $$RCC_DIR $$PYCACHE_DIRS $$QRC_FILE | ||||||
| QMAKE_CLEAN *= $$BUILD_DIR Makefile .qmake.stash | QMAKE_CLEAN *= $$BUILD_DIR $$TARGET Makefile .qmake.stash | ||||||
| QMAKE_CLEAN *= $$glob_filenames(*.pyc, *.qmlc, *.jsc, *.egg-info) | QMAKE_CLEAN *= $$glob_filenames(*.pyc, *.qmlc, *.jsc, *.egg-info) | ||||||
|   | |||||||
| @@ -10,6 +10,8 @@ export QT_QPA_PLATFORM=xcb | |||||||
|  |  | ||||||
| CFG='dev no_embedded' | CFG='dev no_embedded' | ||||||
|  |  | ||||||
|  | qmake harmonyqml.pro CONFIG+="$CFG" && make | ||||||
|  |  | ||||||
| while true; do | while true; do | ||||||
|     find src harmonyqml.pro -type f | |     find src harmonyqml.pro -type f | | ||||||
|     entr -cdnr sh -c \ |     entr -cdnr sh -c \ | ||||||
|   | |||||||
| @@ -23,10 +23,11 @@ int main(int argc, char *argv[]) { | |||||||
|     objectContext->setContextProperty("debugMode", false); |     objectContext->setContextProperty("debugMode", false); | ||||||
| #endif | #endif | ||||||
|  |  | ||||||
|  |     QFileInfo qrcPath(":/qml/Window.qml"); | ||||||
|  |  | ||||||
|     QQmlComponent component( |     QQmlComponent component( | ||||||
|         &engine, |         &engine, | ||||||
|         QFileInfo::exists("qrc:/qml/Window.qml") ? |         qrcPath.exists() ? "qrc:/qml/Window.qml" : "src/qml/Window.qml" | ||||||
|         "qrc:/qml/Window.qml" : "src/qml/Window.qml" |  | ||||||
|     ); |     ); | ||||||
|     component.create(objectContext); |     component.create(objectContext); | ||||||
|  |  | ||||||
|   | |||||||
| @@ -1,5 +1,5 @@ | |||||||
| import "../Base" | import "../Base" | ||||||
|  |  | ||||||
| HNoticePage { | HNoticePage { | ||||||
|     text: "Select or add a room to start." |     text: qsTr("Add or select a room to start.") | ||||||
| } | } | ||||||
|   | |||||||
		Reference in New Issue
	
	Block a user
	