Fix the qt home path on the macos build

This commit is contained in:
Simon Edwards 2022-12-27 11:29:25 +01:00
parent 29e919caad
commit 86e9447dd0

View File

@ -13,20 +13,7 @@ const checkIfExists = (fullPath) => {
function getMiniQtConfig() {
switch (os.platform()) {
case 'darwin': {
if (os.arch() === 'arm64') {
const qtHome = path.resolve(SETUP_DIR, 'Qt-6.4.1');
return {
qtHome,
artifacts: [
{
name: 'Mini Qt Bundle',
link: `https://github.com/nodegui/nodegui/releases/download/miniQtm1-5153/Qt-6.4.1.zip`,
skipSetup: checkIfExists(path.resolve(qtHome, 'plugins', 'platforms', 'libqcocoa.dylib')),
},
],
};
} else {
const qtHome = path.resolve(SETUP_DIR, QT_VERSION, 'clang_64');
const qtHome = path.resolve(SETUP_DIR, QT_VERSION, 'macos');
return {
qtHome,
artifacts: [
@ -48,7 +35,6 @@ function getMiniQtConfig() {
],
};
}
}
case 'win32': {
const qtHome = path.resolve(SETUP_DIR, QT_VERSION, 'msvc2019_64');
return {