qFlipper — desktop application for updating Flipper Zero firmware via PC
Go to file
Max Andreev 51196a2a6f
Fix github runner tag (#210)
* Fix github runner tag

* Fix MacOS build
2024-01-10 16:01:40 +00:00
.github Fix github runner tag (#210) 2024-01-10 16:01:40 +00:00
3rdparty Protobuf rpc (#34) 2021-12-22 21:20:41 +03:00
application Fix AppImage update 2023-11-10 12:40:31 +03:00
backend Implement screen orientation (#202) 2023-11-03 16:19:53 +03:00
cli Fix linkage agains static Qt6 on linux (#167) 2023-03-13 17:32:23 +03:00
contrib Create contrib README.md 2022-02-14 12:08:58 +03:00
dfu Fix typos (#159) 2023-01-23 16:50:07 +03:00
docker Upgrade to Qt6 Static (#170) 2023-03-24 12:28:37 +03:00
driver-tool Compress Windows icons properly 2021-10-19 17:52:47 +03:00
installer-assets Fix launching AppImage from a path with spaces (#201) 2023-11-02 17:12:05 +03:00
plugins Implement screen orientation (#202) 2023-11-03 16:19:53 +03:00
.gitignore Mac M1 CI/CD (#111) 2022-09-09 12:25:01 +03:00
.gitmodules Build improvements (#116) 2022-09-29 17:50:16 +03:00
LICENSE Change license to GPLv3 2021-11-26 19:46:11 +03:00
README.md Upgrade to Qt6 Static (#170) 2023-03-24 12:28:37 +03:00
build_linux.sh Upgrade to Qt6 Static (#170) 2023-03-24 12:28:37 +03:00
build_mac.sh Fix github runner tag (#210) 2024-01-10 16:01:40 +00:00
build_windows.bat Adapt windows build process to Qt6 (#165) 2023-03-06 12:33:25 +03:00
docker-compose.yml rm PATH from docker-compose 2021-06-30 11:44:54 +03:00
installer_windows.nsi Fix typos (#159) 2023-01-23 16:50:07 +03:00
qFlipper.pro Rename qFlipperTool to qFlipper-cli 2022-03-21 17:45:46 +03:00
qflipper_common.pri Mac M1 CI/CD (#111) 2022-09-09 12:25:01 +03:00
screenshot.png Prettier screenshot 2021-11-26 20:21:06 +03:00
setup_rules.sh Update setup_rules.sh (#83) 2022-07-25 11:53:27 +03:00

README.md

qFlipper

Graphical desktop application for updating Flipper Zero firmware via PC

qFlipper is completely open source and based on Qt framework. Runs on Windows, macOS, Linux.

qFlipper

Download

Download official qFlipper builds here: update.flipperzero.one

download qFlipper Button

Features

  • Update Flipper's firmware and supplemental data with a press of one button
  • Repair a broken firmware installation
  • Stream Flipper's display and control it remotely
  • Install firmware from a .dfu file
  • Backup and restore settings, progress and pairing data
  • Automatic self-update feature
  • Command line interface

Build from sources

Cloning

Make sure to clone the project together with submodules:

git clone https://github.com/flipperdevices/qFlipper.git --recursive

Windows

Build requirements:

  • MS Visual Studio 2019 or newer
  • Qt5 (MSVC build) >= 5.15.0 or Qt6 >= 6.3.0
  • NSIS (to generate the installer)

Edit build_windows.bat to adjust to your build environment and then run:

build_windows.bat

Note: STM32 Bootloader driver is not provided in this repository.

Linux

Docker build (AppImage, official)

Setup dev container by running:

docker compose up -d

Compile qFlipper by running:

docker compose exec dev ./build_linux.sh

Standalone build

Build requirements:

  • Qt5 >= 5.15.0 or Qt6 >= 6.3.0
  • libusb >= 1.0.16
  • zlib >= 1.2.0

Make sure to install the following Qt modules (the exact package names might differ slightly depending on your Linux distribution):

base, tools, serialport, declarative,  wayland, [quickcontrols2, graphicaleffects] (Qt5 only), qt5-compat (Qt6 only)

Then run:

mkdir build && cd build
qmake ../qFlipper.pro PREFIX=/path/to/install/dir -spec linux-g++ CONFIG+=qtquickcompiler && 
make qmake_all && make && make install

Caution: make installing to the system prefix is not recommended. Instead, use this method for building distro-specific packages. In this case, it is possible to disable the built-in application update feature by passing DEFINES+=DISABLE_APPLICATION_UPDATES to the qmake call.

MacOS

Build requirements:

If you want to sign binaries, set SIGNING_KEY environment variable:

export SIGNING_KEY="Your Developer Key ID"

Building, signing and creating package:

./build_mac.sh

Resulting image can be found in: build_mac/qFlipper.dmg

Run

Linux

./build/qFlipper-x86_64.AppImage

or just launch the file above from your favourite file manager. You will likely need to set up udev rules in order to use qFlipper as a normal user:

./qFlipper-x86_64.AppImage rules install [/optional/path/to/rules/dir]

Package managers support

See contrib for available options.

Project structure

  • application - The main graphical application, written mostly in QML.
  • cli - The command line interface, provides nearly all main application's functionality.
  • backend - The backend library, written in C++. Takes care of most of the logic.
  • dfu - Low level library for accessing USB and DFU devices.
  • plugins - Protobuf-based communication protocol support.
  • 3rdparty - Third-party libraries.
  • contrib - Contributed packages and scripts.
  • driver-tool - DFU driver installation tool for Windows (based on libwdi).
  • docker - Docker configuration files.
  • installer-assets - Supplementary data for deployment.

Reporting bugs

qFlipper is a project under active development. Please report any encountered bugs to make it better!

The (mostly) complete guide is located here.

Known bugs

  • Sometimes Flipper's serial port doesn't get recognised by the OS, which leads to firmware update errors. This is a firmware issue.
  • On some systems, there is noticeable flicker during opening, closing or resizing of the log area.
  • Release source archives are automatically generated by Github and are unsuitable for building as they do not contain submodules.