Commit graph

2426 commits

Author SHA1 Message Date
Gunter Labes
5b3e121798
Fix parameter handling and quoting
Add timestamps to some log messages and custom settings for newer server versions.
2022-03-24 12:28:33 +01:00
Gunter Labes
845f5e5ef3
Update autorevision filename
The file was renamed in 05f9f002.
2022-03-24 11:54:27 +01:00
loonycyborg
489e7faa29 Add compatibility symlink for previous dockerfiles 2022-03-22 21:06:07 +03:00
loonycyborg
1e56959008 dockerbuilds: provide our own implementation of msys2 image base for cross-compiling
Unlike rwgrim/msys2-cross this Dockerfile doesn't require manual setup
as it downloads msys2 itself. Though it uses archlinux as image base
instead of debian in order to reuse archlinux's own pacman.
2022-03-22 21:06:07 +03:00
Pentarctagon
f44acd68c2 Add build support for webp images. 2022-03-12 13:47:46 -06:00
Pentarctagon
5155a74f4f Make lua a submodule.
No changes required to the lua source anymore.
2022-03-09 15:01:37 -06:00
Celtic Minstrel
e1300e29b0
Lua API: Add inline documentation for pretty much everything and convert existing docs (#6483)
The new format is EmmyLua-based and can be used with (at least) Visual Studio Code.
2022-02-17 13:43:31 -05:00
loonycyborg
c6f9a96a09
Update flatpak build dockerfile 2022-02-09 18:28:38 +03:00
Steve Cotton
1ad78a0442 Fix the po stats script to recognise "es_419"
The failure mode caused it to overwrite the es_ES stats
with the es_419 ones. Skipping the CI step, as this script
is only run by the pot-update targets.

[ci_skip]

(cherry picked from commit ec7bd83721)
2022-01-17 21:51:02 +01:00
Jonathan-Kelly
6acb7ec7bd
Winds of Fate (Drake campaign): add to mainline (#5831) 2022-01-16 04:06:12 -05:00
Pentarctagon
cda9c0406a
Update steamrt image. 2021-12-19 19:01:20 -06:00
Pentarctagon
254716e41e Expand lua whitespace check. 2021-11-28 14:26:02 -06:00
Gunter Labes
aa9e51bb1b
Add a script to collect candidate commits
The candidate commits are needed to to figure out project manager prospects
and eligible voters for a wesnoth project manager election according to the
constitution.

Run from a wesnoth checkout to generate commit logs per candidate.
2021-11-28 19:36:24 +01:00
Iris Morelle
d886914287
Merge changes from update_server2 into update_server 2021-11-28 05:15:03 -03:00
Iris Morelle
6644f2e081
Update update_server to match production 2021-11-28 05:13:44 -03:00
Pentarctagon
232cb02dfd
Typo fix. 2021-11-22 21:57:51 -06:00
Pentarctagon
18db5fab1c
Add luacheck to docker image. 2021-11-22 18:10:18 -06:00
Pentarctagon
1f6bf4c203 Upload artifacts that could be used for releases.
Also don't upload things anymore that aren't being used.
2021-11-18 12:32:17 -06:00
loonycyborg
8cdfcae202 Made get_dlls.py get dlls for wesnothd too 2021-10-26 17:20:39 +03:00
Iris Morelle
8b4c50d46c
pofix: Update for the current 1.16 announcement errata
[ci skip]
2021-10-23 00:31:39 -03:00
loonycyborg
33ae3e9b53
docker: Compile own openssl for steamrt builds
Steam's scout image provides way too old openssl library version which doesn't
doesn't properly handle recent expiry of one of root Let's Encrypt
certs.
2021-10-16 18:59:39 +03:00
loonycyborg
5bcf5068b4
Update steamrt docker builds 2021-10-15 03:45:44 +03:00
Pentarctagon
9070953903 Install certs so CI can download scons over https. 2021-10-05 11:32:22 -05:00
loonycyborg
ca90694141
Add script to upload windows version of wesnoth onto Itch.io taking data from existing installer 2021-09-26 21:16:32 +03:00
Pentarctagon
a6c61385f6
Use enum in copyright update script. 2021-07-31 12:55:31 -05:00
Pentarctagon
144d7667f8
Add a script to automatically update the copyright notice in source files. 2021-07-29 11:43:50 -05:00
Iris Morelle
99d70b57e1
pofix: 1.14 announcement rules for 1.14.17
[ci skip]
2021-06-22 15:53:55 -04:00
Celtic Minstrel
f539deea1b Remove the wesnoth-test textdomain 2021-06-19 12:10:02 -05:00
Celtic Minstrel
0c42cdc038
Enable translation mark validation by the schema (#5800)
- The t_string type is now a schema built-in type and no longer attempts a regex match.
- You can also specify that non-t_string types may be optionally-translatable; this case supports a regex match on the string (but note that the translation mark is not part of the match).
- Error messages involving keys with very large values ( > 128 characters) will now truncate the value.
- To account for occasional cases where the schema is intentionally violated, the --validate command-line option now automatically defines the SCHEMA_VALIDATION preprocessor define.

A key validates as type t_string if one of the following is true:
- The key is not present
- The key has at least one segment with a translation mark
- The key is blank (an empty string)

Any type other than t_string is not allowed to be translatable by default, unless you specify allow_translatable=yes in the [type] tag.

An optionally-translatable string could also be defined as a union of t_string and some other type.
2021-06-14 23:59:52 -04:00
Steve Cotton
e7e3ae76d8 Refactor the woptipng script
If a tool made the image bigger, the debug message was the same as if the tool
had made the image's pixel change. Clarify that into two separate messages.

As each verify_images() call checks that the file became smaller, the removed
print statement would never be reached.
2021-05-12 16:04:32 +02:00
Steve Cotton
13bc062975 Remove the old PNG optimisation script
A Python version was added in b3fe980d70, the
main reason for removing the old one is that it's inconsistent to have two
tools where one does almost (but not quite) the same as the other.

Both versions check that the old and new images look the same. However, if any
tool changed the pixels' values then old script would discard the changes from
the other tools too. The new script checks the image after each tool is run, so
that the optimisations from the other tools can still be kept.

The indexed2rgb.sh script had a call to utils/wesnoth-optipng. It's deleted
instead of updated because both wesnoth-optipng itself (since 17c242a9f) and
the new woptipng both do what indexed2rgb.sh did (they all run ImageMagick with
option "png:color-type=6").
2021-05-07 12:01:59 +02:00
Pentarctagon
9dde4d5f6d
sed doesn't work quite the same on macOS. 2021-05-02 17:09:10 -05:00
Pentarctagon
73c4e19ea2
Make whitespace fixing a script. 2021-05-02 16:40:40 -05:00
Pentarctagon
ed92ba75fe Add version to connection_history. 2021-04-22 14:56:16 -05:00
Pentarctagon
14107b3ae6 Use the database to store and retrieve login history for the searchlog command.
This allows the history to be persisted across restarts, whereas right now it's lost.
2021-04-16 12:42:35 -05:00
Steve Cotton
2e2f551199 git-subtree like tool for exporting campaigns
As with git-subtree, it creates reproducible SHA1 ids for the new branch, the
history of An Orcish Incursion will appear as:

* master branch (pre-removal) 2637115bd92334444f1e03d9387266a92ae478da
* master branch (removal) 3d4a4b06 and 8deac9bb
* 1.14 branch 6b5ccb5fd12e7bb4795b25d1aa10d6f0c88a7490

Wesnoth's po/<textdomain> folder is copied into the subtree as "translations".
If there already was a "translations" in the subtree, it's renamed to
"umc_translations_dir".

The campaign will still need a few fixups for paths in _main.cfg, and
the scenarios' map_data or map_file attributes. The map_file paths
were made more portable in a5a1fec2, but this was after AOI's removal.

Many thanks to Lord Knightmare for porting AOI to 1.15 without this script,
which provided a reference to check the script against. LK's 1.0.0 matches
this script's output from the 1.14 branch, including the fix in b9f93cf that
was applied to 1.14 after the removal in master, and with the rank (but not the
"Rookie") from cc01ccae.
2021-03-25 18:30:18 +01:00
Iris Morelle
59baba0eb3 pofix: 1.14 announcement rules for 1.14.16
[ci skip]
2021-03-22 19:01:28 -03:00
Iris Morelle
1c40a0271e ci: Remove dependencies on SDL_ttf and FriBidi 2021-03-13 13:51:47 -03:00
Pentarctagon
edef0c5f33 Add database insert for addon information. 2021-03-12 16:12:09 -06:00
Pentarctagon
9b2429c393 Add validation for the feedback topic id. 2021-03-12 16:12:09 -06:00
Pentarctagon
9b7a958e9a
Add a new query to get faction side count. 2021-03-12 00:27:06 -06:00
Pentarctagon
6ca9f0969e
Remove Ubuntu 18.04 CI job.
As of the TLS PR, supporting Ubuntu 18.04 will not be possible due to Boost 1.65 not supporting perfect forwarding in ssl stream's constructor.
2021-03-10 13:49:56 -06:00
Pentarctagon
cb5f45cae6
Remove left over paramiko usage from dockerfiles. 2021-03-07 16:49:22 -06:00
Celtic Minstrel
c645856974
Add a Wesnoth MSVC visualization file for config and t_string (#5571)
* Add a Wesnoth natvis file

The change to t_string is just to make the textdomain map visible to the debugger, since it can't see variables with static linkage.

* Update tstring.hpp

* Update tstring.cpp
2021-02-27 01:08:31 -05:00
Pentarctagon
fa53539f37
Rename query output column 2021-02-26 13:59:30 -06:00
Steve Cotton
93de411d2f Fixup WC2 validation (combination of 41b2b0b with e47b759)
The combination of disabling and validating WC2 meant that the build failed,
so add another #def that will enable it for validation.
2021-02-21 18:34:40 +01:00
Celtic Minstrel
41b2b0b42b WC: Include in the CI schema validation
There may not be much to validate, but we may as well validate what's there.
2021-02-20 19:54:19 -05:00
Pentarctagon
97bca421e7
Update flatpak docker image to newer runtime.
Also change the base image to Ubuntu 20.04 and remove the PPA providing a newer flatpak version.
2021-02-17 16:49:33 -06:00
loonycyborg
0ffe194f71 Update flatpak runtime version. This fixes #5552 2021-02-17 21:35:57 +03:00
Pentarctagon
ef7d69b953 Use gcc-9 in the Scout runtime instead of gcc-5.
The gcc-9 shipped with the Scout runtime forces the use of -static-libstdc++ which is what allows this to work. However, LTO is not yet able to be enabled since as of right now it simply crashes immediately with `free(): invalid pointer`.
2021-01-16 15:43:59 -06:00