Comments (4)
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
from go-appimage.
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.
- 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.
Implemented
from go-appimage.
Related Issues (20)
- Continuous build has versioned filename and thus can't be downloaded HOT 2
- Cannot see volumes come and go HOT 4
- appimagetool -s deploy breaks things like qApp->applicationDirPath()
- appimaged fails to parse entire directory HOT 9
- [Feature request] "Simple" mode, please? And / or some real-life usage examples in the docs?
- AppDir could not be identified: ./usr/bin does not exist HOT 6
- Guessed qt_prfxpath wrong (Qt 5 gets deployed instead of Qt 6) HOT 12
- Properly handle SDL2 HOT 4
- AppStream validator gives wrong results and can't be disabled HOT 18
- 'Invalid desktop file' with exit status 1 on Debian HOT 3
- provide persistent releases HOT 10
- [Question] What to say to app dev when "is not a proper AppImage", "too short" ? HOT 18
- Howto for users is missing. HOT 3
- Appimages won't work with fuse3 unless fusermount is symlinked to fusermount3 HOT 4
- How to launch without FUSERMOUNT_PROG variable? HOT 5
- appimagetool don't bundle `immodules.cache` neither set `GTK_IM_MODULE_FILE` HOT 1
- appimagetool don't configure `loaders.cache` HOT 3
- Crash when application has .svg instead of .png icon HOT 4
- Question/Feature Request: Is the "Applications" directory required? HOT 2
- Stack overflow gathering libs HOT 9
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from go-appimage.