Python script with using pyusb and pyvcd to control the fx2lafw USB controller.
pyusb_fx2.py is the updating script. You can use it to capture logic signals.
Note: You should open sigrok-cli or pulseview and choose Saleae Logic to upload firmware (choose Saleae Logic and run, then it is done).