mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-12-05 01:10:24 +00:00
This build depends on the KDE Flatpak SDK, and builds any missing
dependencies manually as source modules.
The flatpak can be built with the following command:
```sh
flatpak-builder --user --force-clean --install-deps-from=flathub \
--ccache --repo=Build/repo --install Build/flatpak \
Meta/CMake/flatpak/org.ladybird.Ladybird.json
```
After building, the flatpak can be run with:
```sh
flatpak run --user --devel org.ladybird.Ladybird
```
If there are issues launching RequestServer, the .pid and .sock files
under $XDG_RUNTIME_DIR may need removed.
```sh
flatpak run --user --command=sh --devel org.ladybird.Ladybird
rm -f $XDG_RUNTIME_DIR/Ladybird.*
```
23 lines
567 B
Bash
Executable File
23 lines
567 B
Bash
Executable File
#!/usr/bin/env bash
|
|
|
|
set -e
|
|
|
|
REV_SHORT=f792b97 # f792b9756418af8ab8a91a4c15b582431cb86ff9
|
|
REV_NUM=2197 # git describe HEAD --match initial-commit | cut -d- -f3
|
|
|
|
env CC=gcc CXX=g++ python3 build/gen.py --no-last-commit-position
|
|
|
|
cat > out/last_commit_position.h <<EOF
|
|
#ifndef OUT_LAST_COMMIT_POSITION_H_
|
|
#define OUT_LAST_COMMIT_POSITION_H_
|
|
|
|
#define LAST_COMMIT_POSITION_NUM ${REV_NUM}
|
|
#define LAST_COMMIT_POSITION "${REV_NUM} (${REV_SHORT})"
|
|
|
|
#endif // OUT_LAST_COMMIT_POSITION_H_
|
|
EOF
|
|
|
|
ninja -j"$(nproc)" -C out
|
|
|
|
cp -v out/gn "$FLATPAK_DEST"/bin/
|