Don't use unsupported double substitution in CI

This commit is contained in:
JFronny 2021-11-24 15:27:44 +01:00
parent 21349cf30c
commit 4b90821036
No known key found for this signature in database
GPG Key ID: BEC5ACBBD4EE17E5
1 changed files with 4 additions and 2 deletions

View File

@ -47,8 +47,10 @@ portable:
- mkdir -p portable/jvm
- cp wrapper.jar portable/
- main="$(find build/libs/ -type f -iname "Inceptum-*-windows.jar")"
- mkdir "portable/run/libraries/io/gitlab/jfronny/inceptum/Inceptum/${${main##*/Inceptum-}%%-windows*}"
- mv "$main" "portable/run/libraries/io/gitlab/jfronny/inceptum/Inceptum/${${main##*/Inceptum-}%%-windows*}/${main##*/}"
- dir="${main##*/Inceptum-}"
- dir="portable/run/libraries/io/gitlab/jfronny/inceptum/Inceptum/${dir%%-windows*}"
- mkdir -p "$dir"
- mv "$main" "$dir/${main##*/}"
- curl -L "$(curl https://api.github.com/repos/pal1000/mesa-dist-win/releases/latest | jq -r ".assets[] | select(.name | test(\"release-msvc.7z\")) | .browser_download_url")" --output mesa.7z
- 7z e mesa.7z -oportable/run/natives/forceload x64/dxil.dll x64/libglapi.dll x64/opengl32.dll
- curl -L "https://api.adoptium.net/v3/binary/latest/17/ga/windows/x64/jdk/hotspot/normal/eclipse?project=jdk" --output jvm.zip