BluOS controller app on Linux

Answered

Comments

160 comments

  • Sukant Hajra

    @Fabrice A, thanks for the clarification.  I realized that I was too hasty in copying your code.  I looked at your build steps more closely, and I realized that electron-builder is a userland application that's independent from the version of electron that gets packaged in.  I'm not even using electron-builder.  It's an interesting program, though, because it seems like it can build a lot more than just AppImages.  Ostensibly, Bluesound could use it to make all kinds of targets.

    Because I'm not using electron-builder, I was able to remove all the patching and icon stuff from my build.  That just left the following necessary modifications:

    1. setting up the analytics server logic correctly
    2. some text substitutions to convert the Darwin branch conditions to be for Linux.

    Otherwise, everything was just unpacking things and then repacking them.

    As for the version of Electron I'm pinning to, I'm just using the version coming in from the latest released version of NixOS.  It's not as current as the official latest, but I'm guessing it's fine.  As far as I can tell, the unpacked ASAR doesn't specify a version of Electron to use.  So you're probably getting some default provided by electron-builder.  I wouldn't be surprised if it was the latest of 27.0.2.

    Anyway, no requests for anything further.  Just leaving some breadcrumbs in case anyone is interested.

    0
  • Sukant Hajra

    Seems like we barely got to 4.0.1, and we got a new release.  I packaged up v4.0.2 for Nix.   The repo has guides on Nix if you're interested.

    0
  • Fabrice A

    Hi, BluOS published a new version v4.0.2 of the controller, for which I just pushed the patch. To reproduce a build locally, follow the steps in the app-image build job [1].
    Or you can download the AppImage built by the pipeline [2].

    [1] https://gitlab.com/fabrice.aeschbacher/bluos-controller-linux/-/blob/main/.gitlab-ci.yml#L15
    [2] https://gitlab.com/fabrice.aeschbacher/bluos-controller-linux/-/packages

    2
  • Fabrice A

    I just pushed the patch for the new version v4.2.0 at the usual place.

    3
  • Jonathan Anderson

    Thanks Fabrice!

    0
  • Reagan

    @Fabrice A - As always, thank you so much for pushing this through. Works like a charm!

    0
  • koj

    Hi All !!

    Thanks for the amazing job done so far !!!
    Is there a way to get the snap instead of the AppImage? Is there a way to build it ?

    Regards

    Koj

    0
  • Fabrice A

    @koj according to https://www.electron.build/configuration/linux , I suppose you could try :

    yarn run electron-builder -l snap 

    instead of https://gitlab.com/fabrice.aeschbacher/bluos-controller-linux/-/blob/main/.gitlab-ci.yml#L51

     

    0
  • Fabrice A

    Hi, BluOS published a new version v4.2.1 of the controller, for which I just pushed the patch. To reproduce a build locally, follow the steps in the app-image build job [1].
    Or you can download the AppImage built by the pipeline [2].

    [1] https://gitlab.com/fabrice.aeschbacher/bluos-controller-linux/-/blob/main/.gitlab-ci.yml#L15
    [2] https://gitlab.com/fabrice.aeschbacher/bluos-controller-linux/-/packages

    1
  • Reagan

    Thanks a lot @Fabrice A! The AppImage is working great for me.

    0

Please sign in to leave a comment.