dave92082 / bs-patch

MIT License
7 stars 2 forks source link

add error check for extractController() #4

Closed aeschbacher closed 3 months ago

aeschbacher commented 2 years ago

Latest controller (BluOS-Controller-3.16.0.dmg) fails to be extracted with 7z:

$ 7z x BluOS-Controller-3.16.0.dmg             

7-Zip [64] 16.02 : Copyright (c) 1999-2016 Igor Pavlov : 2016-05-21

Scanning the drive for archives:
1 file, 247639617 bytes (237 MiB)

Extracting archive: BluOS-Controller-3.16.0.dmg
ERROR: BluOS-Controller-3.16.0.dmg
BluOS-Controller-3.16.0.dmg
Open ERROR: Can not open the file as [Dmg] archive

This patch adds an error check to extractController()

andmarti1424 commented 2 years ago

And how do you manage to get it extracted?

aeschbacher commented 2 years ago

I did not manage it until now. I tried many things, but am unfortunately running out of ideas. I'm waiting for the next .dmg in the hope 7z can read it...

andmarti1424 commented 2 years ago

A different approach would be to download the windows .exe installer and extract everything from there. I have just done the extraction and it does not fail.

andmarti1424 commented 2 years ago

Something like this: 7zr e BluOS-Controller-Setup-3.16.0.exe -r app.asar -o tmp or 7zr x BluOS-Controller-Setup-3.16.0.exe -r app.asar -o tmp

aeschbacher commented 2 years ago

Smart approach, didn't know 7z can open an .exe - thanks for the tip