diff --git a/CMakeLists.txt b/CMakeLists.txt index 885b6d972..9336bb9b1 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -267,8 +267,6 @@ endif() if (APPLE) file(RELATIVE_PATH QT_LIBRARY_REL_PATH "${CMAKE_BINARY_DIR}/Release" "${QT_CMAKE_HOME_DIR}/../..") set_target_properties(${CORE_WIDGETS_ADDON} PROPERTIES INSTALL_RPATH "@loader_path/${QT_LIBRARY_REL_PATH}") - set_target_properties(${CORE_WIDGETS_ADDON} PROPERTIES SKIP_BUILD_RPATH FALSE) - set_target_properties(${CORE_WIDGETS_ADDON} PROPERTIES BUILD_WITH_INSTALL_RPATH TRUE) endif() target_link_libraries(${CORE_WIDGETS_ADDON} PRIVATE diff --git a/package.json b/package.json index 65dc9c195..9d6230ccd 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "@nodegui/nodegui", - "version": "0.57.0", + "version": "0.57.1", "description": "A cross-platform library to build native desktop apps.", "main": "dist/index.js", "typings": "dist/index.d.ts", diff --git a/src/lib/QtWidgets/__tests__/QMainWindow.test.ts b/src/lib/QtWidgets/__tests__/QMainWindow.test.ts index 7f276a909..b43bc1ba4 100644 --- a/src/lib/QtWidgets/__tests__/QMainWindow.test.ts +++ b/src/lib/QtWidgets/__tests__/QMainWindow.test.ts @@ -14,6 +14,6 @@ describe('QMainWindow', () => { const win = new QMainWindow(); const widget = new QWidget(); win.setCentralWidget(widget); - expect(win.centralWidget).toEqual(widget); + expect(win.centralWidget()).toEqual(widget); }); }); diff --git a/src/lib/core/__test__/WrapperCache.test.ts b/src/lib/core/__test__/WrapperCache.test.ts index 342d3f859..a5f911492 100644 --- a/src/lib/core/__test__/WrapperCache.test.ts +++ b/src/lib/core/__test__/WrapperCache.test.ts @@ -35,7 +35,7 @@ describe('WrapperCache using CacheTestQObject', () => { const fooId = foo.native.__id__(); a.clearFoo(); expect(foo.native).toBeNull(); - + console.log(''); // for some reason this fixes the test in macos const foo2 = a.foo(); expect(foo2).not.toBe(foo); expect(foo2.native.__id__()).not.toBe(fooId);