GithubHelp home page GithubHelp logo

0x61726b / electron-vibrancy Goto Github PK

View Code? Open in Web Editor NEW
653.0 11.0 50.0 116 KB

Make your electron windows vibrant!

License: MIT License

Python 6.72% JavaScript 9.59% C++ 64.41% HTML 1.13% Objective-C 4.81% Shell 1.17% Batchfile 0.17% CoffeeScript 12.00%
electron-vibrancy vibrancy electron

electron-vibrancy's People

Contributors

0x61726b avatar knpwrs avatar mikelp avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

electron-vibrancy's Issues

Linux support?

Any ideas on how an implementation on Linux might work? Thanks!

Unavailable to install by Node v7.0.0 - node-inspector dependency cannot be installed

> node-pre-gyp install --fallback-to-build

node-pre-gyp ERR! Tried to download(404): https://node-inspector.s3.amazonaws.com/debug/v0.7.7/node-v51-darwin-x64.tar.gz 
node-pre-gyp ERR! Pre-built binaries not found for [email protected] and [email protected] (node-v51 ABI) (falling back to source compile with node-gyp) 
...

Seems like node-inspector issue only. Btw latest commit was on 9 April.
Is it possible to add this package as optional dependency?

My temporary solution:

  • rollback to Node v6.9.1
  • install node-inspector dependency globally
  • install electron-vibrancy

Anyway it's not working on Node v7.0.0 yet.

License Mismatch

package.json specifies the license as MIT but all of the source files contain a GPL header. The LICENSE file appears to be MIT. Is this supposed to be dual licensed? Pure MIT? Pure GPL?

MSbuild toolset version issues

There is a version mismatch on Windows 10 concerning the msbuild version that I just can't fix.
The generated Vibrancy.vcxproj contains the macro $(VCTargetsPath). This was not set at all on my computer.

I first tried to botch in the VCTargetsPath variable in the registry and in the environment variables as described here, but realized that the destination $(MSBuildExtensionsPath32)\Microsoft.Cpp\v4.0\ didn't even exist on my filesystem.

Next I installed the Windows-Build-Tools. This actually generated the C:\Program Files (x86)\MSBuild\Microsoft.Cpp\v4.0\v140 directory. But this still does't work out, as the installed version is v140 and the vibrancy installation expects V110. I have set the msvc_version to 2015 (2015 is the v140 version which is present on my machine) with the following command from this page
npm config set msvs_version 2015
and
node-gyp configure --msvs_version=2015.
Still the installer insists and uses the 2012 version with V110.

Here is the entire log:

PS C:\Users\haeri\Documents\github\electron-vibrancy> npm install

> [email protected] install C:\Users\haeri\Documents\github\electron-vibrancy
> node-gyp rebuild


C:\Users\haeri\Documents\github\electron-vibrancy>if not defined npm_config_node_gyp (node "C:\Users\haeri\AppData\Roaming\npm\node_modules\npm\node_modules\npm-lifecycle\node-gyp-bin\\..\..\node_modules\node-gyp\bin\node-gyp.js" rebuild )  else (node "C:\Users\haeri\AppData\Roaming\npm\node_modules\npm\node_modules\node-gyp\bin\node-gyp.js" rebuild )
Die Projekte in dieser Projektmappe werden nacheinander erstellt. Um eine parallele Erstellung zu ermöglichen, müssen
Sie den Schalter "/m" hinzufügen.
C:\Users\haeri\Documents\github\electron-vibrancy\build\Vibrancy.vcxproj(20,3): error MSB4019: Das importierte Projek
t "C:\Program Files (x86)\MSBuild\Microsoft.Cpp\v4.0\V110\Microsoft.Cpp.Default.props" wurde nicht gefunden. Vergewis
sern Sie sich, dass der Pfad in der <Import>-Deklaration korrekt und die Datei auf dem Datenträger vorhanden ist.
gyp ERR! build error
gyp ERR! stack Error: `msbuild` failed with exit code: 1
gyp ERR! stack     at ChildProcess.onExit (C:\Users\haeri\AppData\Roaming\npm\node_modules\npm\node_modules\node-gyp\lib\build.js:262:23)
gyp ERR! stack     at emitTwo (events.js:126:13)
gyp ERR! stack     at ChildProcess.emit (events.js:214:7)
gyp ERR! stack     at Process.ChildProcess._handle.onexit (internal/child_process.js:198:12)
gyp ERR! System Windows_NT 10.0.17134
gyp ERR! command "C:\\Program Files\\nodejs\\node.exe" "C:\\Users\\haeri\\AppData\\Roaming\\npm\\node_modules\\npm\\node_modules\\node-gyp\\bin\\node-gyp.js" "rebuild"
gyp ERR! cwd C:\Users\haeri\Documents\github\electron-vibrancy
gyp ERR! node -v v8.11.1
gyp ERR! node-gyp -v v3.7.0
gyp ERR! not ok
npm ERR! code ELIFECYCLE
npm ERR! errno 1
npm ERR! [email protected] install: `node-gyp rebuild`
npm ERR! Exit status 1
npm ERR!
npm ERR! Failed at the [email protected] install script.
npm ERR! This is probably not a problem with npm. There is likely additional logging output above.

npm ERR! A complete log of this run can be found in:
npm ERR!     C:\Users\haeri\AppData\Roaming\npm-cache\_logs\2018-08-21T16_29_54_891Z-debug.log

I am about to go insane. Please put me out of this misery.

Vibrancy gets lost upon navigation

I'm still in the rains of battle with getting vibrancy working in my app. I'm currently having an issue when I switch pages in BrowserWindow (or run mainWindow.loadURL more than once), the vibrancy gets lost (https://v.usetapes.com/YzrDwIEP42). Unfortunately I cannot reproduce this behavior in the test app.

What I've noticed in debug, is that ViewId has the value of -1 which feels incorrect (?)

2016-10-30 11:27:41.220 Electron[13183:303052] X:0 Y:0 W:1260 H:600 Resize:2 Mat:9 ViewId: -1

Strange glitching

Hi,
Any idea how to prevent the glitching in the video?
Video

Also I don't know if it has to do with this plugin, but my window's rounded corners seem to be square now.

When I build the application it builds fine, although when I run the app I get this:
Image
The app runs fine without it built.

I'm using the npm install electron-vibrancy method.

Thanks,
Jamie

Installation issue

Hello I have a problem with installation. I've followed instructions from README I got error:

PS C:\Users\bullione\Documents\electron-vibrancy> npm i

> [email protected] install C:\Users\bullione\Documents\electron-vibrancy
> node-gyp rebuild


C:\Users\bullione\Documents\electron-vibrancy>if not defined npm_config_node_gyp (node "C:\Program Files\nodejs\node_modules\npm\node_modules\npm-lifecycle\node-gyp-bin\\..\..\node_modules\node-gyp\bin\node-gyp.js" rebuild )  else (node "C:\Program Files\nodejs\node_modules\npm\node_modules\node-gyp\bin\node-gyp.js" rebuild )
Projekty w tym rozwiązaniu są tworzone po kolei. Aby umożliwić tworzenie równoległe, dodaj przełącznik "/m".
  Vibrancy.cc
  vibrancy_win.cc
  Init.cc
  win_delay_load_hook.cc
c:\users\bullione\documents\electron-vibrancy\src\vibrancy.cc(86): error C2661: "v8::Value::BooleanValue": brak przeciążonej funkcji przyjmującej 0 argumenty [C:\Users\bullione\Documents\electron-vibrancy\build\Vibran
cy.vcxproj]
c:\users\bullione\documents\electron-vibrancy\src\vibrancy_win.cc(57): warning C4996: 'GetVersionExA': został uznany za przestarzały [C:\Users\bullione\Documents\electron-vibrancy\build\Vibrancy.vcxproj]
  c:\program files (x86)\windows kits\10\include\10.0.17763.0\um\sysinfoapi.h(378): note: zobacz deklarację "GetVersionExA"
c:\users\bullione\documents\electron-vibrancy\src\vibrancy_win.cc(112): warning C4312: "typ rzutowania": konwersja z "uint32_t" na "HWND" jest większej wielkości [C:\Users\bullione\Documents\electron-vibrancy\build\Vi 
brancy.vcxproj]
c:\users\bullione\documents\electron-vibrancy\src\vibrancy_win.cc(120): warning C4312: "typ rzutowania": konwersja z "uint32_t" na "HWND" jest większej wielkości [C:\Users\bullione\Documents\electron-vibrancy\build\Vi 
brancy.vcxproj]

I have windows build tools installed on nodeJS installation.
My node version is 12.4.0
NPM version: 6.9.0

32 bit compile

is there any way i could compile this for 32 bit windows 10? i tried
node-gyp rebuild --target=2.0.0 --runtime=electron --arch=x86 --dist-url=https://atom.io/downlo ad/atom-shell but that gives me this error
LINK : fatal error LNK1181: cannot open input file 'C:\Users\OwO\.node-gyp\iojs-2.0.0\x32\iojs.lib' [C:\Users\OwO\WebstormProjects\Node-FileBrowser\node_modules\electron-vib rancy\build\Vibrancy.vcxproj]

Installing vibrancy on electron-react-boilerplate

Cant install vibrancy on electron-react-boilerplate.

yarn add electron-vibrancy

OS: MacOs BigSur

error /****/node_modules/electron-vibrancy: Command failed.
Exit code: 1
Command: npm run rebuild
Arguments:
Directory: /****/node_modules/electron-vibrancy
Output:
npm WARN lifecycle The node binary used for scripts is /var/folders/lm/hpgnlwh51xl1_g8xm4f97_700000gn/T/yarn--1611489394893-0.5543748546272231/node but npm is using /*******/.nvm/versions/node/v10.19.0/bin/node itself. Use the `--scripts-prepend-node-path` option to include the path for the node binary npm was executed with.

> [email protected] rebuild /*****/node_modules/electron-vibrancy
> node-gyp rebuild --target=1.4.2 --arch=x64 --debug --dist-url=https://atom.io/download/atom-shell

  CXX(target) Debug/obj.target/Vibrancy/src/Vibrancy.o
  CXX(target) Debug/obj.target/Vibrancy/src/vibrancy_mac.o
  CXX(target) Debug/obj.target/Vibrancy/src/Init.o
  SOLINK_MODULE(target) Debug/Vibrancy.node
clang: warning: libstdc++ is deprecated; move to libc++ with a minimum deployment target of OS X 10.9 [-Wdeprecated]
ld: library not found for -lstdc++
clang: error: linker command failed with exit code 1 (use -v to see invocation)
make: *** [Debug/Vibrancy.node] Error 1
gyp ERR! build error
gyp ERR! stack Error: `make` failed with exit code: 2

crash in renderer process

My app stops working (but without any error message) when using electronVibrancy in the renderer process.

const remote = require('electron').remote
const electronVibrancy = require('electron-vibrancy')

const win = remote.getCurrentWindow()
electronVibrancy.SetVibrancy(win, 2)

Is it supposed to only work in the main process?

Node version

I can't launch my app...
I installed it with, npm install...

image

Installation failed

MSBUILD : error MSB3428: δ▒ܼ▒▒▒ Visual C++ ▒▒▒▒▒VCBuild.exe▒▒▒▒Ҫ▒▒▒▒▒▒▒▒⣬1) ▒▒װ .NET Framework 2.0 SDK▒▒2) ▒▒װ Microsoft Visual Studio 2005▒▒▒▒ 3) ▒▒▒▒▒▒▒▒▒▒▒▒װ▒▒▒▒▒▒▒▒λ▒ã▒▒뽫▒▒λ▒▒▒▒ӵ▒ϵͳ·▒▒▒С▒ [C:\Users\***\AppData\Roaming\npm\node_modules\electron-vibrancy\build\binding.sln]
gyp ERR! build error
gyp ERR! stack Error: `C:\Windows\Microsoft.NET\Framework\v4.0.30319\msbuild.exe` failed with exit code: 1
gyp ERR! stack     at ChildProcess.onExit (C:\Program Files\nodejs\node_modules\npm\node_modules\node-gyp\lib\build.js:258:23)
gyp ERR! stack     at ChildProcess.emit (events.js:182:13)
gyp ERR! stack     at Process.ChildProcess._handle.onexit (internal/child_process.js:237:12)

Installing nan@^2.0.5gyp ERR! UNCAUGHT EXCEPTION

gyp ERR! stack Error: spawn C:\Program Files (x86)\Microsoft Visual Studio\2019\Professional\MSBuild\15.0\Bin\MSBuild.exe ENOENT
gyp ERR! stack at Process.ChildProcess._handle.onexit (internal/child_process.js:267:19)
gyp ERR! stack at onErrorNT (internal/child_process.js:469:16)
gyp ERR! stack at processTicksAndRejections (internal/process/task_queues.js:84:21)
gyp ERR! System Windows_NT 10.0.19041
gyp ERR! command "C:\Program Files\nodejs\node.exe" "C:\Users\Norex\AppData\Roaming\npm\node_modules\cnpm\node_modules\npminstall\node-gyp-bin\node-gyp.js" "rebuild"
gyp ERR! cwd D:\Study\Electron\my-project\node_modules_electron-vibrancy@0.1.3@electron-vibrancy
gyp ERR! node -v v12.18.3
gyp ERR! node-gyp -v v3.8.0
gyp ERR! This is a bug in node-gyp.
gyp ERR! Try to update node-gyp and file an Issue if it does not help:
gyp ERR! https://github.com/nodejs/node-gyp/issues
[npminstall:runscript:error] electron-vibrancy@* has binding.gyp file, run "node-gyp rebuild" error: Error [RunScriptError]: Run "C:\WINDOWS\system32\cmd.exe /d /s /c node-gyp rebuild" error, exit code 7
at ChildProcess. (C:\Users\Norex\AppData\Roaming\npm\node_modules\cnpm\node_modules\runscript\index.js:96:21)
at ChildProcess.emit (events.js:315:20)
at maybeClose (internal/child_process.js:1021:16)
at Process.ChildProcess._handle.onexit (internal/child_process.js:286:5) {
stdio: [Object],
exitcode: 7
}
× Install fail! RunScriptError: Run "C:\WINDOWS\system32\cmd.exe /d /s /c node-gyp rebuild" error, exit code 7
RunScriptError: Run "C:\WINDOWS\system32\cmd.exe /d /s /c node-gyp rebuild" error, exit code 7
at ChildProcess. (C:\Users\Norex\AppData\Roaming\npm\node_modules\cnpm\node_modules\runscript\index.js:96:21)
at ChildProcess.emit (events.js:315:20)
at maybeClose (internal/child_process.js:1021:16)
at Process.ChildProcess._handle.onexit (internal/child_process.js:286:5)
npminstall version: 3.28.0
npminstall args: C:\Program Files\nodejs\node.exe C:\Users\Norex\AppData\Roaming\npm\node_modules\cnpm\node_modules\npminstall\bin\install.js --fix-bug-versions --china --userconfig=C:\Users\Norex.cnpmrc --disturl=https://npm.taobao.org/mirrors/node --registry=https://r.npm.taobao.org electron-vibrancy

A bit of help with using this (only a quick reply needed)

So I'm a Microsoft Teams user, and the way I read this is that this could add vibrancy to Teams? Am I right in this?

1st: If I am right, yes! I managed to get something right when it comes to electron.

2nd: Could someone say *(literally a quick reply is all that's needed) how to do this witchcraft. I'm a cyber-security analyst and I use code a lot. But I haven't come to grips with Electron fully yet. Am I right that it runs through a shell of some sorts? I'm guessing Powershell, but I've only managed to get WSL to do the install.

If anyone could help, that would be amazing. Thanks

(Oh and nice work the guy who created this. I've seen great things come as a result of this)

Suggestion: Linux Support

In the README, it is unclear if it works with Linux.
If support for Linux isn't available, and there are no plans to support it, the readme should specify it.
Otherwise, it should specify that Linux support is available.

White background at corners

I'm noticing white backgrounds behind the corners if I have an element up against the edge of the window (such as with a titlebar). This is not occurring if I disable electron-vibrancy. This is in macOS Sierra using Electron v1.4.5. It seems to occur on both retina and non-retina displays.

image

node-gyp build error v8::Value::BooleanValue

I installed everything for node-gyp, but it still gives errors. This one seems like a code or build-version problem. Does anyone know something about it?

thx in advance

Error

With Windows 10 SDK (10.0.19041.0)

Vibrancy.cc
C:\Projects\tmp\hyper-transparent\electron-vibrancy\src\Vibrancy.cc(86,57): 
   error C2660: "v8::Value::BooleanValue": 
   Function does not accept null values 
        [C:\Projects\tmp\hyper-transparent\electron-vibrancy\build\Vibrancy.vcxproj]
C:\Users\lochmar\AppData\Local\node-gyp\Cache\15.1.0\include\node\v8.h(2904,8): 
   message : See declaration of  "v8::Value::BooleanValue" 
        [C:\Projects\tmp\hyper-transparent\electron-vibrancy\build\Vibrancy.vcxproj]
Complete node-gyp build error ``` C:\Projects\tmp\hyper-transparent\electron-vibrancy>npm install

[email protected] install
node-gyp rebuild

gyp info it worked if it ends with ok
gyp info using [email protected]
gyp info using [email protected] | win32 | x64
gyp info find Python using Python version 3.9.0 found at "C:...\Python\Python39\python.exe"
gyp info find VS using VS2019 (16.8.30711.63) found at:
gyp info find VS "C:\Program Files (x86)\Microsoft Visual Studio\2019\BuildTools"
gyp ERR! find VS - found "Visual Studio C++ core features"
gyp ERR! find VS - found VC++ toolset: v142
gyp ERR! find VS - found Windows 10 SDK (10.0.19041.0)
gyp info find VS run with --verbose for detailed information
gyp info spawn C:...\Python\Python39\python.exe
gyp info spawn args [
gyp info spawn args 'C:\Projects\tmp\hyper-transparent\electron-vibrancy\node_modules\node-gyp\gyp\gyp_main.py',
gyp info spawn args 'binding.gyp',
gyp info spawn args '-f',
gyp info spawn args 'msvs',
gyp info spawn args '-I',
gyp info spawn args 'C:\Projects\tmp\hyper-transparent\electron-vibrancy\build\config.gypi',
gyp info spawn args '-I',
gyp info spawn args 'C:\Projects\tmp\hyper-transparent\electron-vibrancy\node_modules\node-gyp\addon.gypi',
gyp info spawn args '-I',
gyp info spawn args 'C:\..\AppData\Local\node-gyp\Cache\15.1.0\include\node\common.gypi',
gyp info spawn args '-Dlibrary=shared_library',
gyp info spawn args '-Dvisibility=default',
gyp info spawn args '-Dnode_root_dir=C:\..\AppData\Local\node-gyp\Cache\15.1.0',
gyp info spawn args '-Dnode_gyp_dir=C:\Projects\tmp\hyper-transparent\electron-vibrancy\node_modules\node-gyp',
gyp info spawn args '-Dnode_lib_file=C:\\..\\AppData\\Local\\node-gyp\\Cache\\15.1.0\\<(target_arch)\\node.lib',
gyp info spawn args '-Dmodule_root_dir=C:\Projects\tmp\hyper-transparent\electron-vibrancy',
gyp info spawn args '-Dnode_engine=v8',
gyp info spawn args '--depth=.',
gyp info spawn args '--no-parallel',
gyp info spawn args '--generator-output',
gyp info spawn args 'C:\Projects\tmp\hyper-transparent\electron-vibrancy\build',
gyp info spawn args '-Goutput_dir=.'
gyp info spawn args ]
gyp info spawn C:\Program Files (x86)\Microsoft Visual Studio\2019\BuildTools\MSBuild\Current\Bin\MSBuild.exe
gyp info spawn args [
gyp info spawn args 'build/binding.sln',
gyp info spawn args '/clp:Verbosity=minimal',
gyp info spawn args '/nologo',
gyp info spawn args '/p:Configuration=Release;Platform=x64'
gyp info spawn args ]
Die Projekte in dieser Projektmappe werden nacheinander erstellt. Um eine parallele Erstellung zu ermöglichen, müssen Sie den Schalter "-m" hinzufügen.
Vibrancy.cc
C:\Projects\tmp\hyper-transparent\electron-vibrancy\src\Vibrancy.cc(86,57): error C2660: "v8::Value::BooleanValue": Funktion akzeptiert keine 0 Argumente [C:\Projects\tmp\hyper-transpare
nt\electron-vibrancy\build\Vibrancy.vcxproj]
C:\Users\lochmar\AppData\Local\node-gyp\Cache\15.1.0\include\node\v8.h(2904,8): message : Siehe Deklaration von "v8::Value::BooleanValue" [C:\Projects\tmp\hyper-transparent\electron-vibr
ancy\build\Vibrancy.vcxproj]
gyp ERR! build error
gyp ERR! stack Error: C:\Program Files (x86)\Microsoft Visual Studio\2019\BuildTools\MSBuild\Current\Bin\MSBuild.exe failed with exit code: 1
gyp ERR! stack at ChildProcess.onExit (C:\Projects\tmp\hyper-transparent\electron-vibrancy\node_modules\node-gyp\lib\build.js:194:23)
gyp ERR! stack at ChildProcess.emit (node:events:327:20)
gyp ERR! stack at Process.ChildProcess._handle.onexit (node:internal/child_process:277:12)
gyp ERR! System Windows_NT 10.0.17763
gyp ERR! command "C:\Program Files\nodejs\node.exe" "C:\Projects\tmp\hyper-transparent\electron-vibrancy\node_modules\node-gyp\bin\node-gyp.js" "rebuild"
gyp ERR! not ok
npm ERR! code 1
npm ERR! command failed
npm ERR! command C:\WINDOWS\system32\cmd.exe /d /s /c "node-gyp rebuild"

</details>

`resize` event is not being fired

Looks like the resize event on window is not being fired when activating vibrancy via this module.

Tested with a simple:

window.addEventListener("resize", function(e){
  console.log(e.target.outerWidth)
})

Env:

  • Electron 1.4.2
  • Sierra 10.12.1

✏️ Edit:

Just to be clear, I've ran a test on the test app provided in this repo.

Solved - installation error (v8 boolean & electron rebuild error)

When trying to install (using npm install electron-vibrancy or just cloning the library and running npm i inside electron-vibrancy) i get the error:

d:\projects\unfinished\app\better-file-explorer\node_modules\electron-vibrancy\src\vibrancy.cc(86): error C2660: 'v8::Value::BooleanValue': function does not take 0 arguments [D:\projects\unfinished\app\better-file-explorer\node_modules\electron-vibrancy\build\Vib
rancy.vcxproj]
  c:\users\...\appdata\local\node-gyp\cache\14.0.0\include\node\v8.h(2855): note: see declaration of 'v8::Value::BooleanValue' (compiling source file ..\src\Vibrancy.cc)

I tried: changing that line to bool toggleState = toggleStateObj->BooleanValue(info.GetIsolate()); but i get: cannot convert argument 1 from 'v8::Isolate *' to 'v8::Local<v8::Context>'

I also tried changing that line to bool toggleState = toggleStateObj->BooleanValue(toggleStateObj); but i get cannot convert argument 1 from 'v8::Local<v8::Object>' to 'v8::Isolate *'

I found that commenting out that line and line 92 seems to make it build without errors

It then install correctly but when running i get:

However

Ok so i fixed it by running:

npm i electron-rebuild --save-dev
npx electron-rebuild

It now works on Node 14.0.0

You can download my version by running npm i electron-vibrancy-fixforlatest

Install fail

I am attempting to install electron-vibrancy, and when I build, I am getting the following:

C:\electron\quick start\electron-vibrancy>npm install

> [email protected] install C:\electron\quick start\electron-vibrancy
> node-gyp rebuild


C:\electron\quick start\electron-vibrancy>if not defined npm_config_node_gyp (node "C:\Program Files\nodejs\node_modules\npm\node_modules\npm-lifecycle\node-gyp-bin\\..\..\node_modules\node-gyp\bin\node-gyp.js" rebuild )  else (node "C:\Program Files\nodejs\node_modules\npm\node_modules\node-gyp\bin\node-gyp.js" rebuild )
Building the projects in this solution one at a time. To enable parallel build, please add the "/m" switch.
  Vibrancy.cc
  vibrancy_win.cc
  Init.cc
  win_delay_load_hook.cc
c:\electron\quick start\electron-vibrancy\src\vibrancy.cc(86): error C2661: 'v8::Value::BooleanValue': no overloaded function takes 0 arguments [C:\electron\quick start\electron-vibrancy\build\Vibrancy.vcxproj]
c:\electron\quick start\electron-vibrancy\src\vibrancy_win.cc(57): warning C4996: 'GetVersionExA': was declared deprecated [C:\electron\quick start\electron-vibrancy\build\Vibrancy.vcxproj]
  c:\program files (x86)\windows kits\10\include\10.0.17763.0\um\sysinfoapi.h(378): note: see declaration of 'GetVersionExA'
c:\electron\quick start\electron-vibrancy\src\vibrancy_win.cc(112): warning C4312: 'type cast': conversion from 'uint32_t' to 'HWND' of greater size [C:\electron\quick start\electron-vibrancy\build\Vibrancy.vcxproj]
c:\electron\quick start\electron-vibrancy\src\vibrancy_win.cc(120): warning C4312: 'type cast': conversion from 'uint32_t' to 'HWND' of greater size [C:\electron\quick start\electron-vibrancy\build\Vibrancy.vcxproj]
gyp ERR! build error
gyp ERR! stack Error: `C:\Program Files (x86)\Microsoft Visual Studio\2017\BuildTools\MSBuild\15.0\Bin\MSBuild.exe` failed with exit code: 1
gyp ERR! stack     at ChildProcess.onExit (C:\Program Files\nodejs\node_modules\npm\node_modules\node-gyp\lib\build.js:194:23)
gyp ERR! stack     at ChildProcess.emit (events.js:210:5)
gyp ERR! stack     at Process.ChildProcess._handle.onexit (internal/child_process.js:272:12)
gyp ERR! System Windows_NT 10.0.18363
gyp ERR! command "C:\\Program Files\\nodejs\\node.exe" "C:\\Program Files\\nodejs\\node_modules\\npm\\node_modules\\node-gyp\\bin\\node-gyp.js" "rebuild"
gyp ERR! cwd C:\electron\quick start\electron-vibrancy
gyp ERR! node -v v12.13.1
gyp ERR! node-gyp -v v5.0.5
gyp ERR! not ok
npm ERR! code ELIFECYCLE
npm ERR! errno 1
npm ERR! [email protected] install: `node-gyp rebuild`
npm ERR! Exit status 1
npm ERR!
npm ERR! Failed at the [email protected] install script.
npm ERR! This is probably not a problem with npm. There is likely additional logging output above.

npm ERR! A complete log of this run can be found in:
npm ERR!     C:\Users\jenks\AppData\Roaming\npm-cache\_logs\2019-12-03T18_40_46_226Z-debug.log

Please help!

Trouble getting started.

Can someone please make a step by step on how to achieve the vibrancy effect on Windows 10? I am new to this and can't figure out where to get started.

%1 is not a valid Win32 application

When i try to use it, i get this error:

Uncaught (in promise) Error: %1 is not a valid Win32 application.
\\?\C:\Users\neoney\AppData\Roaming\BetterDiscord\plugins\node_modules\electron-vibrancy\build\Debug\Vibrancy.node
    at process.module.(anonymous function) [as dlopen] (ELECTRON_ASAR.js:173:20)
    at Object.Module._extensions..node (module.js:598:18)
    at Object.module.(anonymous function) [as .node] (ELECTRON_ASAR.js:173:20)
    at Module.load (module.js:488:32)
    at tryModuleLoad (module.js:447:12)
    at Function.Module._load (module.js:439:3)
    at Module.require (module.js:498:17)
    at require (internal/module.js:20:19)
    at bindings 

I have used NVM to change the node version to 11.6.0 32-bit, no success.

Problem install on windows

Hi were, i get error with installing electron-vibrancy.

Error

PS C:\Users\e\projects\qlaunch> yarn add electron-vibrancy
yarn add v1.22.10
[1/5] Validating package.json...
[2/5] Resolving packages...
[3/5] Fetching packages...
info [email protected]: The platform "win32" is incompatible with this module.
info "[email protected]" is an optional dependency and failed compatibility check. Excluding it from installation.
[4/5] Linking dependencies...
warning " > [email protected]" has incorrect peer dependency "electron@^10.0.0 || ^11.0.0 || ^12.0.0".
warning " > [email protected]" has unmet peer dependency "react@^16.9.0".
warning " > [email protected]" has unmet peer dependency "vue@^3.0.2".
warning " > @babel/[email protected]" has unmet peer dependency "@babel/core@>=7.11.0".
warning " > [email protected]" has unmet peer dependency "webpack@^4.0.0 || ^5.0.0".
[5/5] Building fresh packages...
[4/4] ⠐ electron
[-/4] ⠐ waiting...
[3/4] ⠐ electron-vibrancy
error C:\Users\e\projects\qlaunch\node_modules\electron-vibrancy: Command failed.
Exit code: 1
Command: node-gyp rebuild
Arguments:
Directory: C:\Users\e\projects\qlaunch\node_modules\electron-vibrancy
Output:
C:\Users\e\projects\qlaunch\node_modules\electron-vibrancy>if not defined npm_config_node_gyp (node "C:\Program Files\nodejs\node_modules\npm\bin\node-gyp-bin\....\node_modules\node-gyp\bin\node-gyp.js" rebuild ) else (node "" rebuild )
gyp info it worked if it ends with ok
gyp info using [email protected]
gyp info using [email protected] | win32 | x64
gyp info find Python using Python version 2.7.18 found at "C:\Python27\python.exe"
gyp info find VS using VS2015 (14.0) found at:
gyp info find VS "C:\Program Files (x86)\Microsoft Visual Studio 14.0"
gyp info find VS run with --verbose for detailed information
gyp info spawn C:\Python27\python.exe
gyp info spawn args [
gyp info spawn args 'C:\Program Files\nodejs\node_modules\npm\node_modules\node-gyp\gyp\gyp_main.py',
gyp info spawn args 'binding.gyp',
gyp info spawn args '-f',
gyp info spawn args 'msvs',
gyp info spawn args '-I',
gyp info spawn args 'C:\Users\e\projects\qlaunch\node_modules\electron-vibrancy\build\config.gypi',
gyp info spawn args '-I',
gyp info spawn args 'C:\Program Files\nodejs\node_modules\npm\node_modules\node-gyp\addon.gypi',
gyp info spawn args '-I',
gyp info spawn args 'C:\Users\e\AppData\Local\node-gyp\Cache\14.17.3\include\node\common.gypi',
gyp info spawn args '-Dlibrary=shared_library',
gyp info spawn args '-Dvisibility=default',
gyp info spawn args '-Dnode_root_dir=C:\Users\e\AppData\Local\node-gyp\Cache\14.17.3',
gyp info spawn args '-Dnode_gyp_dir=C:\Program Files\nodejs\node_modules\npm\node_modules\node-gyp',
gyp info spawn args '-Dnode_lib_file=C:\\Users\\e\\AppData\\Local\\node-gyp\\Cache\\14.17.3\\<(target_arch)\\node.lib',
gyp info spawn args '-Dmodule_root_dir=C:\Users\e\projects\qlaunch\node_modules\electron-vibrancy',
gyp info spawn args '-Dnode_engine=v8',
gyp info spawn args '--depth=.',
gyp info spawn args '--no-parallel',
gyp info spawn args '--generator-output',
gyp info spawn args 'C:\Users\e\projects\qlaunch\node_modules\electron-vibrancy\build',
gyp info spawn args '-Goutput_dir=.'
gyp info spawn args ]
gyp info spawn C:\Program Files (x86)\MSBuild\14.0\bin\MSBuild.exe
gyp info spawn args [
gyp info spawn args 'build/binding.sln',
gyp info spawn args '/clp:Verbosity=minimal',
gyp info spawn args '/nologo',
gyp info spawn args '/p:Configuration=Release;Platform=x64'
gyp info spawn args ]
���ઠ �஥�⮢ � �⮬ �襭�� �� ������. �⮡� ������� ��ࠫ������ ᡮ��, ������� ��ࠬ��� "/m".
C:\Users\e\projects\qlaunch\node_modules\electron-vibrancy\build\Vibrancy.vcxproj(20,3): error MSB4019: ������஢���� �஥�� "C:\Microsoft.Cpp.Default.props" �� �����㦥�. �஢���� ���� � ������� � ����稥 䠩�� �� ��᪥.
gyp ERR! build error
gyp ERR! stack Error: C:\Program Files (x86)\MSBuild\14.0\bin\MSBuild.exe failed with exit code: 1
gyp ERR! stack at ChildProcess.onExit (C:\Program Files\nodejs\node_modules\npm\node_modules\node-gyp\lib\build.js:194:23)
gyp ERR! stack at ChildProcess.emit (events.js:375:28)
gyp ERR! stack at Process.ChildProcess._handle.onexit (internal/child_process.js:277:12)
gyp ERR! System Windows_NT 10.0.19041
gyp ERR! command "C:\Program Files\nodejs\node.exe" "C:\Program Files\nodejs\node_modules\npm\node_modules\node-gyp\bin\node-gyp.js" "rebuild"
gyp ERR! cwd C:\Users\e\projects\qlaunch\node_modules\electron-vibrancy
gyp ERR! node -v v14.17.3

Steps to reproduce:

  1. Remove and install VS Build tools (via vs app)
  2. Change BT version 2017 to 2015

My versions

  • electron-vibrancy - latest
  • yarn - 1.22.10
  • npm - 6.14.13
  • node - 14.17.3
  • MSBuild - 15/17
  • Windows 10
  • Windows Terminal

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.