diff --git a/appveyor.yml b/appveyor.yml index e197f2d..07848e2 100644 --- a/appveyor.yml +++ b/appveyor.yml @@ -52,7 +52,8 @@ install: - cd %APPVEYOR_BUILD_FOLDER%\bindings\lib\libtorrent - mkdir build && cd build - - cmake -DBOOST_LIBRARYDIR=%BOOST_ROOT%\stage\lib -DCMAKE_CXX_STANDARD=14 -Dbuild_tools=ON -G "Visual Studio 15 2017" -A x64 .. + - set BOOST_LIBRARYDIR=%BOOST_ROOT%\stage\lib + - cmake -DBOOST_LIBRARYDIR=%BOOST_LIBRARYDIR% -DCMAKE_CXX_STANDARD=14 -Dbuild_tools=ON -G "Visual Studio 15 2017" -A x64 .. - cmake --build . --config Release -- -verbosity:minimal - cmake --install . - set "PATH=c:/Program Files (x86)/libtorrent/;%PATH%" diff --git a/package.json b/package.json index 65347e2..53d4364 100644 --- a/package.json +++ b/package.json @@ -13,7 +13,7 @@ "dev": "cross-env NODE_ENV=development vue-cli-service electron:serve", "start": "cross-env NODE_ENV=production electron dist/bundled/background.js", "build": "vue-cli-service electron:build", - "build:bindings": "cmake-js --CDCMAKE_CXX_STANDARD=14 -d bindings -O bindings/build", + "build:bindings": "cmake-js --CDCMAKE_CXX_STANDARD=14 --CDBOOST_LIBRARYDIR=%BOOST_LIBRARYDIR% -d bindings -O bindings/build", "pack": "npm run build -- --dir", "dist": "npm run dist:mac && npm run dist:win && npm run dist:linux", "dist:mac": "npm run build -- --mac", @@ -23,7 +23,7 @@ "publish:linux": "npm run build -- --linux deb AppImage -p always", "publish:win": "npm run build -- --win --x64 --ia32 -p always", "lint": "vue-cli-service lint", - "compile:bindings": "cmake-js compile --CDCMAKE_CXX_STANDARD=14 -d bindings -O bindings/build", + "compile:bindings": "cmake-js compile --CDCMAKE_CXX_STANDARD=14 --CDBOOST_LIBRARYDIR=%BOOST_LIBRARYDIR% -d bindings -O bindings/build", "install:deps": "bash bindings/scripts/install.sh", "postinstall": "npm run compile:bindings && electron-builder install-app-deps", "postuninstall": "electron-builder install-app-deps",