From 626045549f1ecc51f5be7d7f3ffba6f4a8e9f78b Mon Sep 17 00:00:00 2001 From: Atul R Date: Sat, 25 Jan 2020 21:52:15 +0100 Subject: [PATCH] Fix/windows addon lib (#369) * Adds libs and exp to windows addon building * fixes refex on windows prebuilt * 0.13.1 --- .github/workflows/prebuild.yml | 2 +- package-lock.json | 2 +- package.json | 3 +-- src/cpp/include/nodegui/core/Events/eventwidget.h | 2 ++ 4 files changed, 5 insertions(+), 4 deletions(-) diff --git a/.github/workflows/prebuild.yml b/.github/workflows/prebuild.yml index 2745afa12..693346f26 100644 --- a/.github/workflows/prebuild.yml +++ b/.github/workflows/prebuild.yml @@ -25,7 +25,7 @@ jobs: if: contains(github.event.client_payload.tag, '0.0.0-latest-master') run: npm --no-git-tag-version version 0.0.0-latest-master - name: Prebuild binary - run: npm run prebuild:build + run: npx prebuild --all --backend=cmake-js --strip --runtime=napi --include-regex="\.[n,e,l][a-z]*$" - name: Release uses: softprops/action-gh-release@master with: diff --git a/package-lock.json b/package-lock.json index e5259c114..b0c4a1bc6 100644 --- a/package-lock.json +++ b/package-lock.json @@ -1,6 +1,6 @@ { "name": "@nodegui/nodegui", - "version": "0.13.0", + "version": "0.13.1", "lockfileVersion": 1, "requires": true, "dependencies": { diff --git a/package.json b/package.json index 589c21179..541bb5aae 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "@nodegui/nodegui", - "version": "0.13.0", + "version": "0.13.1", "description": "A cross platform library to build native desktop apps.", "main": "dist/index.js", "typings": "dist/index.d.ts", @@ -12,7 +12,6 @@ "build": "tsc && npm run build:addon", "postinstall": "cross-env node ./scripts/skip.js || npm run prebuild:install || npm run build:addon", "build:addon": "cross-env CMAKE_BUILD_PARALLEL_LEVEL=8 cmake-js compile", - "prebuild:build": "prebuild --all --backend=cmake-js --runtime=napi", "prebuild:install": "prebuild-install --backend=cmake-js --runtime=napi --verbose", "test": "qode ./node_modules/jest/bin/jest -i", "lint:cpp": "clang-format -i --glob=src/cpp/**/*.[h,c]*", diff --git a/src/cpp/include/nodegui/core/Events/eventwidget.h b/src/cpp/include/nodegui/core/Events/eventwidget.h index ca65d0ca1..aad98c5f3 100644 --- a/src/cpp/include/nodegui/core/Events/eventwidget.h +++ b/src/cpp/include/nodegui/core/Events/eventwidget.h @@ -1,7 +1,9 @@ #pragma once #include + #include + #include "Extras/Utils/nutils.h" #include "core/Events/eventsmap.h"