Qwidget wrap fix (#433)

* skip setting up miniqt if customQt is on

* adds opengl context

* adds NodeWidgetWrap

* changed the mode of qode.js to make it executable

* 0.15.3
This commit is contained in:
Atul R
2020-03-08 16:47:56 +01:00
committed by GitHub
parent 110cb80e82
commit c742712f6f
50 changed files with 177 additions and 138 deletions
Regular → Executable
View File
+10 -10
View File
@@ -3,12 +3,6 @@
const { setupArtifact } = require('@nodegui/artifact-installer');
const { miniQt, useCustomQt, qtHome } = require('../config/qtConfig');
if (!useCustomQt) {
console.log(`Minimal Qt ${miniQt.version} setup:`);
} else {
console.log(`CustomQt detected at ${qtHome} . Hence, skipping Mini Qt installation...`);
}
async function setupQt() {
return Promise.all(
miniQt.artifacts.map(async artifact =>
@@ -22,7 +16,13 @@ async function setupQt() {
);
}
setupQt().catch(err => {
console.error(err);
process.exit(1);
});
if (!useCustomQt) {
console.log(`Minimal Qt ${miniQt.version} setup:`);
setupQt().catch(err => {
console.error(err);
process.exit(1);
});
} else {
console.log(`CustomQt detected at ${qtHome} . Hence, skipping Mini Qt installation...`);
}