Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
19 changes: 15 additions & 4 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,10 @@
# a few percent more frame rate where the command processor is the limit.
# The tests (build.yml) build without it.
#
# The AppImage (tools/package_appimage.sh) is the Linux tarball as one file,
# made in the publish job from that tarball; tools/check_release_bundle.sh
# checks its files as it checks the tarball's.
#
# Push a tag v* to publish them as a GitHub release; "Run workflow" on the
# Actions page builds the same files as artifacts of the run, no release.
# The tag is annotated and its message holds the release notes:
Expand Down Expand Up @@ -135,11 +139,13 @@ jobs:
- uses: actions/download-artifact@v4
with:
path: dist
- name: the Steam Deck kit and the updater's executables
- name: the Steam Deck kit, the AppImage and the updater's executables
run: |
tools/package_steamdeck.sh dist/linux/*.tar.gz dist/steamdeck
command -v mksquashfs > /dev/null || { sudo apt-get update -qq && sudo apt-get install -y -qq squashfs-tools; }
tools/package_appimage.sh dist/linux/*.tar.gz dist/appimage
mkdir -p dist/release dist/x
cp dist/windows/* dist/linux/* dist/steamdeck/* dist/release/
cp dist/windows/* dist/linux/* dist/steamdeck/* dist/appimage/* dist/release/
# The stripped executables out of the packages, named the same in every release.
w=$(ls dist/windows/bbhost-win-*.zip); v=$(basename "$w" .zip); v=${v#bbhost-win-}
unzip -q -j "$w" "bbhost-win-$v/bbhost.exe" -d dist/x
Expand Down Expand Up @@ -168,6 +174,11 @@ jobs:
retention-days: ${{ github.event_name == 'pull_request' && 14 || 90 }}
name: steamdeck
path: dist/steamdeck/*.tar.gz
- uses: actions/upload-artifact@v4
with:
retention-days: ${{ github.event_name == 'pull_request' && 14 || 90 }}
name: appimage
path: dist/appimage/*.AppImage
- name: the bundles go to the live server
run: tools/check_release_bundle.sh dist/release
- name: sign
Expand Down Expand Up @@ -197,8 +208,8 @@ jobs:
SHA: ${{ github.event.pull_request.head.sha }}
RUN: ${{ github.server_url }}/${{ github.repository }}/actions/runs/${{ github.run_id }}
run: |
body="**Test build** of ${SHA:0:7}: Windows zip, Linux tarball and Steam Deck kit, unsigned, kept 14 days.
Download \`windows\`, \`linux\` or \`steamdeck\` (each with its package), or \`release\` (everything), from the bottom of the run page:
body="**Test build** of ${SHA:0:7}: Windows zip, Linux tarball, AppImage and Steam Deck kit, unsigned, kept 14 days.
Download \`windows\`, \`linux\`, \`appimage\` or \`steamdeck\` (each with its package), or \`release\` (everything), from the bottom of the run page:
$RUN#artifacts"
gh pr comment "$PR" --edit-last --body "$body" 2>/dev/null || gh pr comment "$PR" --body "$body"
- name: GitHub release
Expand Down
3 changes: 2 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -119,7 +119,8 @@ See [docs/rendering.md](docs/rendering.md) for the graphics in detail and
it (or kept beside it as `CUSA00900-UPDATE`, the way shadPS4 keeps it), and
the 1.09 `eboot.bin` decrypted to an ELF (SHA-256
`941f887a562aae054fac35af8cc8f27cf075f3d4cc2e029fb5ae2a663aaa5ae7`).
2. Download a release for Windows or Linux, or build bbhost yourself. The
2. Download a release for Windows or Linux (the Linux tarball, or the
AppImage: the same files as one executable), or build bbhost yourself. The
processor needs AVX, SSE4.2 and POPCNT: an Intel Core of the 2nd
generation (Sandy Bridge) or newer, or an AMD FX or newer.
3. Start `bbhost`. The setup window asks for the two paths, checks them and
Expand Down
10 changes: 6 additions & 4 deletions docs/building.md
Original file line number Diff line number Diff line change
Expand Up @@ -68,9 +68,9 @@ shadow and the GPU layer) can be inlined: about 3-5% more frame rate where the
command processor is the limit (Kyo's Central Yharnam save on a Radeon 8060S,
~137 to ~143-145 fps; on an RTX 4070 with two Xeon Gold 6230 at 1080p, Old
Yharnam ~100 to ~104 fps and the Cainhurst courtyard ~107 to ~110). Off by
default; the release packages (Windows, Linux and the Steam Deck kit) are
built with it. It applies to the first configure of a build directory, as the
other `-D` options do.
default; the release packages (Windows, Linux, the AppImage and the Steam
Deck kit) are built with it. It applies to the first configure of a build
directory, as the other `-D` options do.

`-DBBHOST_PGO=generate` builds an instrumented bbhost (Clang's IR profiles;
MSYS2 needs `mingw-w64-ucrt-x86_64-compiler-rt`, the version of its clang).
Expand Down Expand Up @@ -174,6 +174,7 @@ written back as `Off`.
| `cmake --build build-win --target package-win` | `build/win/bbhost-win-<rev>.zip`, and the unstripped `.debug.exe` for symbolising crash reports |
| `tools/package_linux.sh <bbhost> <outdir>` | a Linux tarball (built with `tools/linux_portable_build.sh` for a portable binary) |
| `tools/package_steamdeck.sh` | the Linux package with the Steam Deck's settings |
| `tools/package_appimage.sh <tarball> <outdir>` | the Linux package as one AppImage file (needs `mksquashfs`, from squashfs-tools) |
| `tools/package_plugins.sh` | the official plugins with their signatures |
| `tools/package_playtest.sh` | tester kits for a playtest on a dev server, built by hand |
| `tools/package_hlsl_sweep.sh` | a kit that runs the HLSL path's driver-acceptance sweep (`gcn2hlsl --sweep`) on another machine's GPU, built by hand ([rendering.md](rendering.md)) |
Expand Down Expand Up @@ -212,7 +213,8 @@ made, from the same SDK tag as the Windows DLLs (so both run FSR 3.1.6), with
AMD's licence and bbhost's in `licenses/fidelityfx`. None of NVIDIA's or
AMD's files is in the repository, and bbhost itself links none of their code.
`tools/check_release_bundle.sh` fails a release whose Windows or Linux
package or Steam Deck kit lacks its files, or whose Steam Deck kit has DLSS's.
package, AppImage or Steam Deck kit lacks its files, or whose Steam Deck kit
has DLSS's.

The Windows and Linux packages (and so the Steam Deck kit) carry the pipeline
list beside the executable, `pipeline-list.bin`: every pipeline a tour of the
Expand Down
5 changes: 3 additions & 2 deletions docs/running.md
Original file line number Diff line number Diff line change
Expand Up @@ -211,8 +211,9 @@ name box starts from `[player] name`, which the first key typed replaces;
## Logs

bbhost logs to standard error. The packages' `run-bbhost.bat` (Windows) and
`run-bbhost.sh` (Linux) write each session's log to `logs/`. A bug report is
most useful with that log attached.
`run-bbhost.sh` (Linux) write each session's log to `logs/`; the AppImage
writes it, and F12's frame dumps, to `~/.local/share/bbhost/logs/`. A bug
report is most useful with that log attached.

The game's own prints go to the console too. A line it prints over and over
(YEBIS's depth-of-field error in parts of Cainhurst comes every frame) is
Expand Down
Loading