1
mirror of https://github.com/DarkFlippers/unleashed-firmware.git synced 2025-12-12 20:49:49 +04:00
Files
unleashed-firmware/documentation/HowToBuild.md

61 lines
1.7 KiB
Markdown
Raw Normal View History

2022-07-10 03:47:36 +03:00
# How to Build by yourself:
2022-08-14 06:25:32 +03:00
## Install required software
- Git - [Download](https://git-scm.com/downloads) for Windows, on Linux/Mac install via package manager (`brew`, `apt`, ...)
For development:
- Git
- VSCode
2022-07-10 03:47:36 +03:00
## Clone the Repository
You should clone with
```shell
2022-10-09 02:27:38 +03:00
$ git clone --recursive https://github.com/DarkFlippers/unleashed-firmware.git
2022-07-10 03:47:36 +03:00
```
2023-04-14 00:09:48 +03:00
## VSCode integration
`fbt` includes basic development environment configuration for VSCode. Run `./fbt vscode_dist` to deploy it. That will copy the initial environment configuration to the `.vscode` folder. After that, you can use that configuration by starting VSCode and choosing the firmware root folder in the `File > Open Folder` menu.
2022-07-10 03:47:36 +03:00
2022-08-14 06:25:32 +03:00
# Build on Linux/macOS
2022-07-10 03:47:36 +03:00
2022-08-14 06:25:32 +03:00
Check out `documentation/fbt.md` for details on building and flashing firmware.
2022-07-10 03:47:36 +03:00
2023-04-14 00:09:48 +03:00
### Compile plugin and run it on connected flipper
```sh
./fbt COMPACT=1 DEBUG=0 launch_app APPSRC=applications_user/yourplugin
```
2022-07-10 03:47:36 +03:00
2025-04-18 01:06:10 +03:00
### Compile everything + get updater package to update from microSD card
2022-07-10 03:47:36 +03:00
```sh
2022-08-14 06:25:32 +03:00
./fbt COMPACT=1 DEBUG=0 updater_package
2022-07-10 03:47:36 +03:00
```
Check `dist/` for build outputs.
Use `flipper-z-{target}-update-{suffix}.tgz` to flash your device.
2022-07-10 03:47:36 +03:00
2022-08-14 06:25:32 +03:00
# Build on Windows
2022-07-10 03:47:36 +03:00
Check out `documentation/fbt.md` for details on building and flashing firmware.
2025-04-18 01:06:10 +03:00
### Compile everything + get updater package to update from microSD card
2022-07-20 21:57:03 +03:00
```powershell
./fbt.cmd COMPACT=1 DEBUG=0 updater_package
2022-07-20 21:57:03 +03:00
```
**You may need to change `/` to `\` in front of fbt command (Only for Windows)!**
2023-04-18 15:03:09 +03:00
2022-07-20 21:57:03 +03:00
Check `dist/` for build outputs.
Use `flipper-z-{target}-update-{suffix}.tgz` to flash your device.
2022-08-14 06:25:32 +03:00
If compilation fails, make sure all submodules are all initialized. Either clone with `--recursive` or use `git submodule update --init --recursive`.