Code Monkey home page Code Monkey logo

bs-patch's People

Contributors

dave92082 avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar

bs-patch's Issues

"Error installing electron" and "Error extracting ASAR"

For the last couple of versions of BluOS Controller, I was able to download the AppImage files shared on https://support1.bluesound.com/hc/en-us/community/posts/360033533054-BluOS-controller-app-on-Linux, and they seemed to work just fine. Since no AppImage for v3.16 was posted on the forum though, I tried to build it myself following these steps on Linux Mint 20.2, but have encountered a few errors.

  1. Ran "sudo apt install npm"
  2. Running "which npm" gives "/usr/bin/npm"
  3. Running "npm -v" gives "6.14.4"
  4. Running "node -v" gives "v10.19.0"
  5. Downloaded the bs-patch binary
  6. Created a file called config.yaml with the following contents: nodeBinPath: "/usr/bin/"
  7. Ran "./bs-patch", which gives the following results:
INFO[0000] Reading config.yaml                          
INFO[0000] Finding Latest BluOS Controller              
INFO[0003] Downloading Latest BlueOS controller: https://content-bluesound-com.s3.amazonaws.com/uploads/2021/11/BluOS-Controller-3.16.0.dmg 
Downloading... 248 MB complete     
INFO[0055] Extracting BlueOS Controller DMG             
INFO[0055] Extracting ASAR                              
INFO[0055] Patching electron.js                         
INFO[0055] Patching app.js - Update Check               
INFO[0055] Patching app.js - Update Platform            
INFO[0055] Adding electron dependency                   
ERRO[0055] Error installing electron:                   
INFO[0055] Adding electron-builder dependency           
ERRO[0055] Error installing electron:                   
INFO[0055] Building Snap and AppImage                   
ERRO[0055] Error extracting ASAR:                       
INFO[0055] Cleaning up

Any thoughts on what I may be doing wrong?

Thanks!

ERRO[0065] Error extracting ASAR

Hey, thanks for your efforts :-)

I compiled your code and tried to run it, without success:

$ ./bs-patch 
INFO[0000] Reading config.yaml                          
INFO[0000] Finding Latest BluOS Controller              
INFO[0002] Downloading Latest BlueOS controller: https://www.bluesound.com/wp-content/uploads/2020/11/BluOS-Controller-3.12.1.dmg 
Downloading... 98 MB complete      
INFO[0035] Extracting BlueOS Controller DMG             
INFO[0037] Extracting ASAR                              
INFO[0039] Patching electron.js                         
INFO[0039] Patching app.js - Update Check               
INFO[0039] Patching app.js - Update Platform            
INFO[0039] Adding electron dependency                   
INFO[0055] Adding electron-builder dependency           
INFO[0065] Building Snap and AppImage                   
ERRO[0065] Error extracting ASAR:                       
INFO[0065] Cleaning up                                  

Additional information

+ git rev-parse HEAD
5faae18d4d77578a6e68685664f92a7c61906ad7
+ go version
go version go1.13.15 linux/amd64
+ lsb_release -d
Description:	Fedora release 31 (Thirty One)
+ npx -v
6.13.4
+ npm -v
6.13.4
+ whereis npm
npm: /usr/bin/npm /home/frafra/.nvm/versions/node/v12.15.0/bin/npm /usr/share/man/man1/npm.1.gz
+ whereis npx
npx: /usr/bin/npx /home/frafra/.nvm/versions/node/v12.15.0/bin/npx /usr/share/man/man1/npx.1.g
+ cat config.yaml
nodeBinPath: "/usr/bin"

ERROR building..

Hello. I am having problems building the patched app.
Can you think of anything that could be wrong in my setup?
Thanks!

[I] mongo@arch ~/Downloads/bs-p> which npm /usr/bin/npm

./bs-patch INFO[0000] Reading config.yaml INFO[0000] Finding Latest BluOS Controller INFO[0004] Downloading Latest BlueOS controller: https://www.bluesound.com/wp-content/uploads/2020/11/BluOS-Controller-3.12.1.dmg Downloading... 98 MB complete INFO[0283] Extracting BlueOS Controller DMG INFO[0285] Extracting ASAR ERRO[0285] Error extracting ASAR: INFO[0285] Patching electron.js INFO[0285] Patching app.js - Update Check INFO[0285] Patching app.js - Update Platform INFO[0285] Adding electron dependency ERRO[0285] Error installing electron: INFO[0285] Adding electron-builder dependency ERRO[0285] Error installing electron: INFO[0285] Building Snap and AppImage ERRO[0285] Error extracting ASAR: INFO[0285] Cleaning up

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.