Commit f190f6e4 authored by Ryan Horiguchi's avatar Ryan Horiguchi
Browse files

bazecor: 1.4.2 -> 1.4.4

parent ffeda929
Loading
Loading
Loading
Loading
+0 −4
Original line number Diff line number Diff line
SUBSYSTEMS=="usb", ATTRS{idVendor}=="1209", ATTRS{idProduct}=="2201", MODE="0666"
SUBSYSTEMS=="usb", ATTRS{idVendor}=="1209", ATTRS{idProduct}=="2200", MODE="0666"
SUBSYSTEMS=="usb", ATTRS{idVendor}=="35ef", MODE="0666"
KERNEL=="hidraw*", ATTRS{idVendor}=="35ef", MODE="0666"
+14 −0
Original line number Diff line number Diff line
# Dygma Raise
SUBSYSTEMS=="usb", ATTRS{idVendor}=="1209", ATTRS{idProduct}=="2200", MODE="0660", TAG+="uaccess"
# bootloader mode
SUBSYSTEMS=="usb", ATTRS{idVendor}=="1209", ATTRS{idProduct}=="2201", MODE="0660", TAG+="uaccess"

# Dygma USB Keyboards Vendor ID
SUBSYSTEMS=="usb", ATTRS{idVendor}=="35ef", MODE="0660", TAG+="uaccess"
# bootloader mode
SUBSYSTEMS=="usb", ATTRS{idVendor}=="35ef", MODE="0660", TAG+="uaccess"

# Dygma HID Keyboards Vendor ID
KERNEL=="hidraw*", ATTRS{idVendor}=="35ef", MODE="0660", TAG+="uaccess"
# bootloader mode
KERNEL=="hidraw*", ATTRS{idVendor}=="35ef", MODE="0660", TAG+="uaccess"
+5 −5
Original line number Diff line number Diff line
@@ -6,12 +6,12 @@
}:
let
  pname = "bazecor";
  version = "1.4.2";
  version = "1.4.4";
  src = appimageTools.extract {
    inherit pname version;
    src = fetchurl {
      url = "https://github.com/Dygmalab/Bazecor/releases/download/v${version}/Bazecor-${version}-x64.AppImage";
      hash = "sha256-2/GX2p+YhN6XLXl8ORn5Vy5GYjPS1ZkKmSymeUjExLU=";
      hash = "sha256-ep+3lqWdktyvbTKxfLcPiVq9/5f0xBHwKG1+BxDDBQA=";
    };

    # Workaround for https://github.com/Dygmalab/Bazecor/issues/370
@@ -27,9 +27,9 @@ in
appimageTools.wrapAppImage {
  inherit pname version src;

  # also make sure to update the udev rules in ./10-dygma.rules; most recently
  # also make sure to update the udev rules in ./60-dygma.rules; most recently
  # taken from
  # https://github.com/Dygmalab/Bazecor/blob/v1.3.11/src/main/utils/udev.ts#L6
  # https://github.com/Dygmalab/Bazecor/blob/v1.4.4/src/main/utils/udev.ts#L6

  extraPkgs = pkgs: [ pkgs.glib ];

@@ -46,7 +46,7 @@ appimageTools.wrapAppImage {
    install -m 444 -D ${src}/bazecor.png -t $out/share/pixmaps

    mkdir -p $out/lib/udev/rules.d
    install -m 444 -D ${./10-dygma.rules} $out/lib/udev/rules.d/10-dygma.rules
    install -m 444 -D ${./60-dygma.rules} $out/lib/udev/rules.d/60-dygma.rules

    substituteInPlace $out/share/applications/Bazecor.desktop \
      --replace-fail 'Exec=Bazecor' 'Exec=bazecor'