CI: add sountfont, not download

The size is only some 90 kB when compressed so it is perhaps not worth
downloading from external source and depend on it.

It could be even bundled directly, not by CI. Now it is actually the case
in Linux (create-appimage.sh) but it is also possible for other platforms.
This commit is contained in:
Martin Pulec
2024-02-13 16:06:26 +01:00
parent 5ef864729d
commit bf09d1cdca
6 changed files with 8 additions and 13 deletions

View File

@@ -53,11 +53,6 @@ sudo apt --no-install-recommends install asciidoc xmlto
sudo apt install qtbase5-dev
. "$GITHUB_WORKSPACE/.github/scripts/defs.sh"
sf=$(basename "$DEFAULT_SF_URL")
curl -L "$DEFAULT_SF_URL" -o "$HOME/$sf"
printf '%b' "SDL_SOUNDFONTS=$HOME/$sf\n" >> "$GITHUB_ENV"
# Install cross-platform deps
"$GITHUB_WORKSPACE/.github/scripts/install-common-deps.sh"

View File

@@ -100,10 +100,9 @@ https://github.com/CESNET/GPUJPEG/releases/download/continuous/GPUJPEG.zip
)}
install_soundfont() {
. "$GITHUB_WORKSPACE/.github/scripts/defs.sh"
sf_dir="$GITHUB_WORKSPACE/data/Windows/share/soundfonts"
mkdir -p "$sf_dir"
curl -L "$DEFAULT_SF_URL" -o "$sf_dir/default.${DEFAULT_SF_URL##*.}"
cp "$GITHUB_WORKSPACE/data/default.sf3" "$sf_dir"
}
# Install cross-platform deps

View File

@@ -1 +0,0 @@
DEFAULT_SF_URL=http://frakira.fi.muni.cz/~xpulec/TimGM6mb_but_fixed__piano_.sf3 # https://musical-artifacts.com/artifacts/2642

View File

@@ -98,10 +98,9 @@ install_live555() {(
)}
install_soundfont() {(
. "$srcroot/.github/scripts/defs.sh"
sf_dir="$srcroot/data/MacOS-bundle-template/Contents/share/soundfonts"
mkdir -p "$sf_dir"
curl -L "$DEFAULT_SF_URL" -o "$sf_dir/default.${DEFAULT_SF_URL##*.}"
cp "$GITHUB_WORKSPACE/data/default.sf3" "$sf_dir"
)}
install_syphon() {