- fix appveyor

This commit is contained in:
InspirationByte 2022-02-08 00:06:56 +03:00
parent 7fd9a37e20
commit c32d08c0b4
2 changed files with 3 additions and 3 deletions

View File

@ -14,7 +14,7 @@ cd project_vs2019_windows
set config=Debug:Release:Release_dev
for %%c in (%config::= %) do (
msbuild .\REDRIVER2.sln /p:Configuration="%%c" /p:Platform=Win32 /m ^
msbuild .\PreDRIVER2.sln /p:Configuration="%%c" /p:Platform=Win32 /m ^
/logger:"C:\Program Files\AppVeyor\BuildAgent\Appveyor.MSBuildLogger.dll" ^
/nologo /ConsoleLoggerParameters:NoSummary;Verbosity=quiet
)

View File

@ -15,12 +15,12 @@ do
make config=$config -j$(nproc)
done
find ${APPVEYOR_BUILD_FOLDER}/src_rebuild/bin -name 'REDRIVER2*' -exec cp -t ${APPVEYOR_BUILD_FOLDER}/.flatpak/bin {} +
find ${APPVEYOR_BUILD_FOLDER}/src_rebuild/bin -name 'PreDRIVER2*' -exec cp -t ${APPVEYOR_BUILD_FOLDER}/.flatpak/bin {} +
# Copy missing libraries in the runtime
for lib in libjpeg libopenal libsndio libbsd
do
cp -Lf $(ldd "${APPVEYOR_BUILD_FOLDER}/src_rebuild/bin/Release/REDRIVER2" | awk '/ => / { print $3 }' | grep ${lib}) "${APPVEYOR_BUILD_FOLDER}/.flatpak/lib"
cp -Lf $(ldd "${APPVEYOR_BUILD_FOLDER}/src_rebuild/bin/Release/PreDRIVER2" | awk '/ => / { print $3 }' | grep ${lib}) "${APPVEYOR_BUILD_FOLDER}/.flatpak/lib"
done
cp -r "${APPVEYOR_BUILD_FOLDER}/data" "${APPVEYOR_BUILD_FOLDER}/.flatpak/"