Skip to content

Commit 752b8f3

Browse files
Merge commit '7140d53520207ed9c87114df1fb6db0fc25c56d1' into wind_fixes
2 parents 07ee4ef + 7140d53 commit 752b8f3

File tree

828 files changed

+77922
-69116
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

828 files changed

+77922
-69116
lines changed

.github/workflows/bsd.yml

+3-4
Original file line numberDiff line numberDiff line change
@@ -32,13 +32,13 @@ jobs:
3232
matrix:
3333
# TODO: Add the OpenBSD, NetBSD and Solaris VMs whenever possible
3434
vm_os: [freebsd]
35-
build_type: [Debug, RelWithDebInfo]
35+
build_type: [Debug, Release]
3636
# FreeBSD does not have glbinding
3737
# glbiactions/checkout@v4
3838

3939
runs-on: macos-10.15
4040
steps:
41-
- uses: actions/checkout@v2
41+
- uses: actions/checkout@v4
4242
with:
4343
# Fetch the whole tree so git describe works
4444
fetch-depth: 0
@@ -79,5 +79,4 @@ jobs:
7979
# TODO: Uncomment whenever possible
8080
make -j3 VERBOSE=1
8181
make install DESTDIR="/tmp/supertux" VERBOSE=1
82-
./test_supertux2
83-
actions/checkout@v4
82+
./test_supertux2

.github/workflows/gnulinux.yml

+4-3
Original file line numberDiff line numberDiff line change
@@ -34,14 +34,14 @@ jobs:
3434
arch: [32, 64]
3535
os: [ubuntu-20.04]
3636
compiler: [gcc, clang]
37-
build_type: [Debug, RelWithDebInfo]
37+
build_type: [Debug, Release]
3838
glbinding: [ON, OFF]
3939
exclude:
4040
- arch: 32
4141
glbinding: ON
4242
include:
4343
- os: ubuntu-20.04
44-
build_type: RelWithDebInfo
44+
build_type: Release
4545
compiler: gcc
4646
arch: 64
4747
glbinding: OFF
@@ -212,7 +212,7 @@ jobs:
212212
doxygen docs/Doxyfile
213213
214214
- name: Package
215-
if: ${{ matrix.arch != '32' }}
215+
if: matrix.arch != '32'
216216
env:
217217
OS_NAME: ${{ matrix.os }}
218218
ARCH: ${{ matrix.arch }} # TODO: Working Linux 32-bit packaging
@@ -224,6 +224,7 @@ jobs:
224224
run: ../.ci_scripts/package.sh
225225

226226
- name: Upload AppImage
227+
if: matrix.build_type != 'Debug' && matrix.glbinding == 'OFF'
227228
uses: actions/upload-artifact@v4
228229
with:
229230
name: "${{ matrix.os }}-${{ matrix.arch }}-${{ matrix.compiler }}-${{ matrix.build_type }}${{ matrix.glbinding == 'ON' && '-glbinding' || '' }}-appimage"

.github/workflows/macos.yml

+5-4
Original file line numberDiff line numberDiff line change
@@ -32,11 +32,11 @@ jobs:
3232
fail-fast: false
3333
matrix:
3434
os: [macos-12]
35-
build_type: [Debug, RelWithDebInfo]
35+
build_type: [Debug, Release]
3636
glbinding: [ON, OFF]
3737
include:
3838
- os: macos-12
39-
build_type: RelWithDebInfo
39+
build_type: Release
4040
glbinding: OFF
4141
release: ON
4242

@@ -62,8 +62,8 @@ jobs:
6262
/usr/local/opt/webp/lib/libsharpyuv.0.dylib \
6363
/usr/local/opt/webp/lib/libwebp.7.dylib
6464
install_name_tool -change \
65-
'@rpath/libjxl_cms.0.10.dylib' \
66-
/usr/local/opt/jpeg-xl/lib/libjxl_cms.0.10.dylib \
65+
'@rpath/libjxl_cms.0.11.dylib' \
66+
/usr/local/opt/jpeg-xl/lib/libjxl_cms.0.11.dylib \
6767
/usr/local/opt/jpeg-xl/lib/libjxl.dylib
6868
6969
# Something funky happens with freetype if mono is left
@@ -116,6 +116,7 @@ jobs:
116116
run: ../.ci_scripts/package.sh
117117

118118
- uses: actions/upload-artifact@v4
119+
if: matrix.build_type != 'Debug' && matrix.glbinding == 'OFF'
119120
with:
120121
name: "${{ matrix.os }}-${{ matrix.build_type }}${{ matrix.glbinding == 'ON' && '-glbinding' || '' }}-dmg"
121122
path: build/upload/*.dmg
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,52 @@
1+
# SuperTux
2+
# Copyright (C) 2024 Tobias Markus
3+
#
4+
# This program is free software; you can redistribute it and/or
5+
# modify it under the terms of the GNU General Public License
6+
# as published by the Free Software Foundation; either version 3
7+
# of the License, or (at your option) any later version.
8+
#
9+
# This program is distributed in the hope that it will be useful,
10+
# but WITHOUT ANY WARRANTY; without even the implied warranty of
11+
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
12+
# GNU General Public License for more details.
13+
#
14+
# You should have received a copy of the GNU General Public License
15+
# along with this program; if not, write to the Free Software
16+
# Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
17+
18+
name: translation_templates
19+
on:
20+
workflow_dispatch:
21+
22+
jobs:
23+
update-all-templates:
24+
runs-on: ubuntu-20.04
25+
steps:
26+
- name: Checkout SuperTux repository
27+
uses: actions/checkout@v4
28+
with:
29+
repository: 'SuperTux/supertux'
30+
fetch-depth: 0
31+
32+
- name: Update translation templates
33+
env:
34+
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
35+
run: |
36+
# Update packages
37+
sudo apt-get update
38+
sudo apt-get install -y gettext
39+
40+
# Checkout master to make git describe work
41+
git checkout master
42+
43+
# Update translation templates:
44+
chmod +x makepot.sh
45+
sh ./makepot.sh
46+
47+
# Commit
48+
git status
49+
git config --global user.email "[email protected]"
50+
git config --global user.name "SuperTux Bot"
51+
git commit -am "Update translation templates" || true
52+
git push https://git:[email protected]/SuperTux/supertux.git master

.github/workflows/ubuntu-touch.yml

+2-1
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@ jobs:
3030
strategy:
3131
fail-fast: false
3232
matrix:
33-
build_type: [Debug, RelWithDebInfo]
33+
build_type: [Debug, Release]
3434
arch: [amd64, arm64, armhf]
3535
# glbinding is missing as it isn't available on Ubuntu 16.04
3636
opengl: [glew, sdl]
@@ -88,6 +88,7 @@ jobs:
8888
~/.local/bin/clickable build --verbose ${BUILD_TYPE} --arch ${ARCH}
8989
9090
- uses: actions/upload-artifact@v4
91+
if: matrix.build_type != 'Debug'
9192
with:
9293
name: "clickable-${{ matrix.arch }}-${{ matrix.build_type }}-${{ matrix.opengl }}-click"
9394
path: build.clickable/*.click

.github/workflows/wasm.yml

+2-1
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@ jobs:
3030
strategy:
3131
fail-fast: false
3232
matrix:
33-
build_type: ["RelWithDebInfo", "Debug"]
33+
build_type: ["Release", "Debug"]
3434

3535
runs-on: ubuntu-latest
3636
steps:
@@ -85,6 +85,7 @@ jobs:
8585
mv supertux2* upload/
8686
8787
- uses: actions/upload-artifact@v4
88+
if: matrix.build_type != 'Debug'
8889
with:
8990
name: "wasm32-emscripten-${{ matrix.build_type }}-html"
9091
path: build/upload/*

.github/workflows/windows.yml

+2
Original file line numberDiff line numberDiff line change
@@ -105,6 +105,7 @@ jobs:
105105
"./$Env:BUILD_TYPE/run_tests.exe"
106106
107107
- name: Package MSI Installer
108+
if: matrix.build_type != 'Debug' && matrix.glbinding == 'OFF'
108109
shell: pwsh
109110
working-directory: build
110111
env:
@@ -148,6 +149,7 @@ jobs:
148149
#>
149150
150151
- name: Upload Portable Package
152+
if: matrix.build_type != 'Debug' && matrix.glbinding == 'OFF'
151153
uses: actions/upload-artifact@v4
152154
with:
153155
name: "windows-${{ matrix.arch }}-${{ matrix.build_type }}${{ matrix.glbinding == 'ON' && '-glbinding' || '' }}-portable"

INSTALL.md

+7-8
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
Install instructions for SuperTux - <https://supertux.org/>
22
====================================================================
3-
Last update: May 19, 2023
3+
Last update: August 28, 2024
44

55
Quick links:
66
- [Binaires](#binaries)
@@ -109,9 +109,9 @@ For ease of use, here are some installation lines for some Linux distributions:
109109
sudo apt-get update && sudo apt-get install -y cmake build-essential libogg-dev libvorbis-dev libopenal-dev libsdl2-dev libsdl2-image-dev libfreetype6-dev libraqm-dev libcurl4-openssl-dev libglew-dev libharfbuzz-dev libfribidi-dev libglm-dev zlib1g-dev
110110
```
111111

112-
- ArchLinux (using sudo, as of June 3rd 2023)
112+
- ArchLinux (using sudo, as of August 28th 2024)
113113
```
114-
sudo pacman -Sy cmake base-devel libogg libvorbis openal sdl2 sdl2_image freetype2 libraqm curl openssl glew harfbuzz fribidi glm zlib
114+
sudo pacman -S cmake base-devel libogg libvorbis openal sdl2 sdl2_image freetype2 libraqm curl openssl glew harfbuzz fribidi glm zlib
115115
```
116116

117117
### Linux/UNIX using CMake
@@ -248,10 +248,10 @@ Once all of these are installed; you may install dependencies with vcpkg. In any
248248
```
249249
./bootstrap-vcpkg.bat -disableMetrics
250250
./vcpkg integrate install
251-
./vcpkg install --triplet=x86-windows gtest curl freetype glew libogg libraqm libvorbis openal-soft sdl2 sdl2-image[libjpeg-turbo] glm zlib
251+
./vcpkg install --triplet=x64-windows gtest curl freetype glew libogg libraqm libvorbis openal-soft sdl2 sdl2-image[libjpeg-turbo] glm zlib
252252
```
253253

254-
**Note:** If you wish to produce 64-bit builds, replace `--triplet=x86-windows` with `--triplet=x64-windows`.
254+
**Note:** If you wish to produce 32-bit builds, replace `--triplet=x64-windows` with `--triplet=x86-windows`.
255255

256256
Once dependencies are installed:
257257

@@ -261,16 +261,15 @@ Once dependencies are installed:
261261

262262
3. Open a console window and navigate to the `build` directory.
263263

264-
5. Run `cmake .. -A Win32 -DCMAKE_BUILD_TYPE=Release -DVCPKG_BUILD=ON -DCMAKE_TOOLCHAIN_FILE=C:/PATH/TO/vcpkg/scripts/buildsystems/vcpkg.cmake -DVCPKG_TARGET_TRIPLET=x86-windows`.
264+
5. Run `cmake .. -DCMAKE_BUILD_TYPE=Release -DVCPKG_BUILD=ON -DCMAKE_TOOLCHAIN_FILE=C:/PATH/TO/vcpkg/scripts/buildsystems/vcpkg.cmake -DVCPKG_TARGET_TRIPLET=x64-windows`.
265265

266266
**Make sure to change the path to vcpkg to the actual path to vcpkg on your system!**
267267

268268
Options:
269-
- `-A Win32` tells CMake to produce 32-bit executables. To produce 64-bit executables, you may either replace `Win32` with `x64`, or omit this argument entirely (remove everything, including the `-A`).
270269
- `-DCMAKE_BUILD_TYPE=Release` creates a Release build, which does not contain debug information and runs faster. You may also produce `Debug` builds, but these run significantly slower. Other options may be available, such as `RelWithDebInfo` and `MinSizeRel`, but they are not tested. [More info](https://cmake.org/cmake/help/latest/variable/CMAKE_BUILD_TYPE.html)
271270
- `-DVCPKG_BUILD=ON` tells SuperTux to use vcpkg to find dependencies.
272271
- `-DCMAKE_TOOLCHAIN_FILE=C:/PATH/TO/vcpkg/scripts/buildsystems/vcpkg.cmake` tells CMake to use the vcpkg toolchain to load dependencies. **Make sure to change the path to the actual path to vcpkg on your system!**
273-
- `-DVCPKG_TARGET_TRIPLET=x86-windows` tells vcpkg to use 32-bit dependencies for Windows. If you are compiling 64-bit executables, replace "x86" with "x64".
272+
- `-DVCPKG_TARGET_TRIPLET=x64-windows` tells vcpkg to use 64-bit dependencies for Windows. If you are compiling 32-bit executables, replace "x64" with "x86".
274273
- Optionally, you may add `-G "Visual Studio 16 2019"` to force a certain version of Visual Studio if multiple are installed on your system.
275274

276275
For more CMake options, look at end of the Linux/UNIX build section.

data/AUTHORS

+1
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,7 @@ Most images were created either by grumbel or gwater. Check the log for details.
1111
* images/objects/explosion/explosion*.png - Bleed - http://remusprites.carbonmade.com/ licensed under CC-BY 3.0, see https://opengameart.org/content/simple-explosion-bleeds-game-art
1212
* images/engine/editor/sparkle-file.png - Semphris, licensed CC-BY 4.0 - CONTAINS WORK BY FortAwesome/FontAwesome (the file logo), licensed under CC-BY 4.0
1313
* images/worldmap/shared/rocky_paths[-editor].png - Semphris, released under CC0
14+
* images/objects/conveyor_belt/* - submitted by RodirodDude CC BY-NC 4.0
1415

1516
== Levels ==
1617

0 commit comments

Comments
 (0)