Coder Social home page Coder Social logo

Implement QML deploying about go-appimage HOT 4 CLOSED

probonopd avatar probonopd commented on June 17, 2024
Implement QML deploying

from go-appimage.

Comments (4)

probonopd avatar probonopd commented on June 17, 2024

Qt itself is done, now for QML.

Need to be able to pass in one or multiple qml directories, e.g., using https://stackoverflow.com/questions/28322997/how-to-get-a-list-of-values-into-a-flag-in-golang/28323276

https://github.com/probonopd/linuxdeployqt/blob/42e51ea7c7a572a0aa1a21fc47d0f80032809d9d/tools/linuxdeployqt/shared.cpp#L1647

from go-appimage.

probonopd avatar probonopd commented on June 17, 2024

qmlimportscanner -rootPath /home/me/untitled/ -importPath /tmp/.mount_QtCreator-5.8.0-x86_64/5.8/gcc_64/qml/ gives

[
    {
        "classname": "QtQuick2Plugin",
        "name": "QtQuick",
        "path": "/tmp/.mount_QtCreator-5.8.0-x86_64/5.8/gcc_64/qml/QtQuick.2",
        "plugin": "qtquick2plugin",
        "relativePath": "QtQuick.2",
        "type": "module",
        "version": "2.7"
    },
    {
        "classname": "QtQuickControls2Plugin",
        "name": "QtQuick.Controls",
        "path": "/tmp/.mount_QtCreator-5.8.0-x86_64/5.8/gcc_64/qml/QtQuick/Controls.2",
        "plugin": "qtquickcontrols2plugin",
        "relativePath": "QtQuick/Controls.2",
        "type": "module",
        "version": "2.0"
    },
    {
        "classname": "QtQuickLayoutsPlugin",
        "name": "QtQuick.Layouts",
        "path": "/tmp/.mount_QtCreator-5.8.0-x86_64/5.8/gcc_64/qml/QtQuick/Layouts",
        "plugin": "qquicklayoutsplugin",
        "relativePath": "QtQuick/Layouts",
        "type": "module",
        "version": "1.0"
    },
    {
        "classname": "QtQuickTemplates2Plugin",
        "name": "QtQuick.Templates",
        "path": "/tmp/.mount_QtCreator-5.8.0-x86_64/5.8/gcc_64/qml/QtQuick/Templates.2",
        "plugin": "qtquicktemplates2plugin",
        "relativePath": "QtQuick/Templates.2",
        "type": "module",
        "version": "2.0"
    },
    {
        "classname": "QtQuick2WindowPlugin",
        "name": "QtQuick.Window",
        "path": "/tmp/.mount_QtCreator-5.8.0-x86_64/5.8/gcc_64/qml/QtQuick/Window.2",
        "plugin": "windowplugin",
        "relativePath": "QtQuick/Window.2",
        "type": "module",
        "version": "2.2"
    },
    {
        "classname": "QtQuick2Plugin",
        "name": "QtQuick",
        "path": "/tmp/.mount_QtCreator-5.8.0-x86_64/5.8/gcc_64/qml/QtQuick.2",
        "plugin": "qtquick2plugin",
        "relativePath": "QtQuick.2",
        "type": "module",
        "version": "2.8"
    },
    {
        "classname": "QtQuickTemplates2Plugin",
        "name": "QtQuick.Templates",
        "path": "/tmp/.mount_QtCreator-5.8.0-x86_64/5.8/gcc_64/qml/QtQuick/Templates.2",
        "plugin": "qtquicktemplates2plugin",
        "relativePath": "QtQuick/Templates.2",
        "type": "module",
        "version": "2.1"
    },
    {
        "classname": "QtQuickControls2MaterialStylePlugin",
        "name": "QtQuick.Controls.Material",
        "path": "/tmp/.mount_QtCreator-5.8.0-x86_64/5.8/gcc_64/qml/QtQuick/Controls.2/Material",
        "plugin": "qtquickcontrols2materialstyleplugin",
        "relativePath": "QtQuick/Controls.2/Material",
        "type": "module",
        "version": "2.1"
    },
    {
        "name": "QtQuick.Controls.Material.impl",
        "type": "module",
        "version": "2.1"
    },
    {
        "classname": "QtQuickControls2Plugin",
        "name": "QtQuick.Controls",
        "path": "/tmp/.mount_QtCreator-5.8.0-x86_64/5.8/gcc_64/qml/QtQuick/Controls.2",
        "plugin": "qtquickcontrols2plugin",
        "relativePath": "QtQuick/Controls.2",
        "type": "module",
        "version": "2.1"
    },
    {
        "classname": "QtQuick2Plugin",
        "name": "QtQuick",
        "path": "/tmp/.mount_QtCreator-5.8.0-x86_64/5.8/gcc_64/qml/QtQuick.2",
        "plugin": "qtquick2plugin",
        "relativePath": "QtQuick.2",
        "type": "module",
        "version": "2.0"
    },
    {
        "name": "QtQuick.Controls.impl",
        "type": "module",
        "version": "2.1"
    },
    {
        "classname": "QtQuickControls2UniversalStylePlugin",
        "name": "QtQuick.Controls.Universal",
        "path": "/tmp/.mount_QtCreator-5.8.0-x86_64/5.8/gcc_64/qml/QtQuick/Controls.2/Universal",
        "plugin": "qtquickcontrols2universalstyleplugin",
        "relativePath": "QtQuick/Controls.2/Universal",
        "type": "module",
        "version": "2.1"
    },
    {
        "name": "QtQuick.Controls.Universal.impl",
        "type": "module",
        "version": "2.1"
    }
]

which we could probably model as a Go struct like this:

type QMLImport []struct {
	Classname    string `json:"classname,omitempty"`
	Name         string `json:"name"`
	Path         string `json:"path,omitempty"`
	Plugin       string `json:"plugin,omitempty"`
	RelativePath string `json:"relativePath,omitempty"`
	Type         string `json:"type"`
	Version      string `json:"version"`
}

from go-appimage.

probonopd avatar probonopd commented on June 17, 2024
  • Skip imports with missing name or path (path will be empty if the import is not found)
  • Deploy module imports only, skip directory (local/remote) and js imports. These should be deployed as a part of the application build
  • Special case: Use of QtQuick/PrivateWidgets is not discoverable at deploy-time. Deploy it if QtWidgets library is used and QtQuick.Controls is used

from go-appimage.

probonopd avatar probonopd commented on June 17, 2024

Implemented

from go-appimage.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.