Skip to content

Commit

Permalink
Fixed build
Browse files Browse the repository at this point in the history
  • Loading branch information
deathkiller committed Nov 29, 2023
1 parent 4375b95 commit 8e9bd2e
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 7 deletions.
11 changes: 5 additions & 6 deletions .github/workflows/linux.yml
Original file line number Diff line number Diff line change
Expand Up @@ -133,11 +133,11 @@ jobs:
rm -f ./Content/Translations/*.po
cmake -B ./_build/ -D CMAKE_BUILD_TYPE=${{ matrix.BuildType }} -D NCINE_STRIP_BINARIES=ON -D NCINE_PREFERRED_BACKEND=${{ matrix.Backend }} -D NCINE_WITH_GLEW=OFF -D NCINE_LINUX_PACKAGE=jazz2 -D NCINE_PACKAGED_CONTENT_PATH=ON
cmake -B ./_build/ -D CMAKE_BUILD_TYPE=${{ matrix.BuildType }} -D NCINE_STRIP_BINARIES=ON -D NCINE_PREFERRED_BACKEND=${{ matrix.Backend }} -D NCINE_WITH_GLEW=OFF -D NCINE_LINUX_PACKAGE=jazz2 -D NCINE_PACKAGED_CONTENT_PATH=ON -D CMAKE_INSTALL_PREFIX=/usr
- name: 'Build'
run: |
make -j $(nproc) -C ./_build/
DESTDIR=./_appdir/ make install -j $(nproc) -C ./_build/
- name: 'Create AppImage'
run: |
Expand All @@ -146,11 +146,10 @@ jobs:
chmod +x linuxdeploy-x86_64.AppImage
fi
mkdir -p ./_package/usr/bin/
cp -f ./_build/jazz2 ./_package/usr/bin/jazz2
cp -f -r ./Content/ ./_package/usr/bin/Content/
mv -f ./_appdir/usr/share/jazz2/Content/ ./_appdir/usr/bin/Content/
rmdir ./_appdir/usr/share/jazz2/
LDAI_OUTPUT="./_build/jazz2.AppImage" ARCH=x86_64 ./linuxdeploy-x86_64.AppImage --appdir=./_package/ --icon-file=./Sources/Icons/256px.png --icon-filename=jazz2 --desktop-file=./_build/jazz2.desktop --executable=./_package/usr/bin/jazz2 --custom-apprun=./Sources/AppRun --output=appimage
LDAI_OUTPUT="./_build/jazz2.AppImage" ARCH=x86_64 ./linuxdeploy-x86_64.AppImage --appdir=./_appdir/ --icon-filename=jazz2 --desktop-file=./_appdir/usr/share/applications/jazz2.desktop --executable=./_appdir/usr/bin/jazz2 --custom-apprun=./Sources/AppRun --output=appimage
artifactPath="Jazz2_${{ matrix.Platform }}_${{ matrix.Backend }}.AppImage"
echo "artifactPath=$artifactPath" >> $GITHUB_ENV
Expand Down
2 changes: 1 addition & 1 deletion Sources/Jazz2/UI/Menu/BeginSection.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -226,7 +226,7 @@ namespace Jazz2::UI::Menu
_items[i].Y = center.Y;

#if !defined(DEATH_TARGET_EMSCRIPTEN)
if (i <= (int32_t)Item::Options && !isPlayable) {
if (_items[i].Type <= Item::Options && !isPlayable) {
if (i != 0 && (!hideSecondItem || i != 1)) {
if (_selectedIndex == i) {
_root->DrawElement(MenuGlow, 0, center.X, center.Y, IMenuContainer::MainLayer, Alignment::Center, Colorf(1.0f, 1.0f, 1.0f, 0.2f), (Utf8::GetLength(_items[i].Name) + 3) * 0.5f, 4.0f, true);
Expand Down

0 comments on commit 8e9bd2e

Please sign in to comment.