Add Nuget packages for all dependencies
This commit is contained in:
@@ -7,7 +7,7 @@ command -v python >/dev/null 2>&1 || { echo >&2 "Linux packaging requires python
|
||||
command -v tar >/dev/null 2>&1 || { echo >&2 "Linux packaging requires tar."; exit 1; }
|
||||
command -v curl >/dev/null 2>&1 || command -v wget > /dev/null 2>&1 || { echo >&2 "Linux packaging requires curl or wget."; exit 1; }
|
||||
|
||||
DEPENDENCIES_TAG="20200222"
|
||||
DEPENDENCIES_TAG="20200328"
|
||||
|
||||
if [ $# -eq "0" ]; then
|
||||
echo "Usage: $(basename "$0") version [outputdir]"
|
||||
@@ -48,24 +48,21 @@ pushd "${SRCDIR}" > /dev/null || exit 1
|
||||
|
||||
make clean
|
||||
|
||||
# linux-dependencies target will trigger the lua detection script, which we don't want during packaging
|
||||
make cli-dependencies
|
||||
sed "s/@LIBLUA51@/liblua5.1.so.0/" thirdparty/Eluant.dll.config.in > Eluant.dll.config
|
||||
|
||||
make core
|
||||
make core TARGETPLATFORM=linux-x64
|
||||
make version VERSION="${TAG}"
|
||||
make install-engine prefix="usr" DESTDIR="${BUILTDIR}/"
|
||||
make install-common-mod-files prefix="usr" DESTDIR="${BUILTDIR}/"
|
||||
make install-dependencies TARGETPLATFORM=linux-x64 prefix="usr" DESTDIR="${BUILTDIR}/"
|
||||
|
||||
popd > /dev/null || exit 1
|
||||
|
||||
# Add native libraries
|
||||
echo "Downloading dependencies"
|
||||
if command -v curl >/dev/null 2>&1; then
|
||||
curl -s -L -O https://github.com/OpenRA/AppImageSupport/releases/download/${DEPENDENCIES_TAG}/libs.tar.bz2 || exit 3
|
||||
curl -s -L -O https://github.com/OpenRA/AppImageSupport/releases/download/${DEPENDENCIES_TAG}/mono.tar.bz2 || exit 3
|
||||
curl -s -L -O https://github.com/AppImage/AppImageKit/releases/download/continuous/appimagetool-x86_64.AppImage || exit 3
|
||||
else
|
||||
wget -cq https://github.com/OpenRA/AppImageSupport/releases/download/${DEPENDENCIES_TAG}/libs.tar.bz2 || exit 3
|
||||
wget -cq https://github.com/OpenRA/AppImageSupport/releases/download/${DEPENDENCIES_TAG}/mono.tar.bz2 || exit 3
|
||||
wget -cq https://github.com/AppImage/AppImageKit/releases/download/continuous/appimagetool-x86_64.AppImage || exit 3
|
||||
fi
|
||||
|
||||
@@ -74,23 +71,24 @@ chmod a+x appimagetool-x86_64.AppImage
|
||||
echo "Building AppImage"
|
||||
mkdir libs
|
||||
pushd libs
|
||||
tar xf ../libs.tar.bz2
|
||||
tar xf ../mono.tar.bz2
|
||||
|
||||
install -d "${BUILTDIR}/usr/bin"
|
||||
install -d "${BUILTDIR}/etc/mono/4.5"
|
||||
install -d "${BUILTDIR}/usr/lib/mono/4.5"
|
||||
install -d "${BUILTDIR}/usr/lib/mono/4.5/Facades"
|
||||
|
||||
install -Dm 0755 usr/bin/mono "${BUILTDIR}/usr/bin/"
|
||||
|
||||
install -Dm 0644 /etc/mono/config "${BUILTDIR}/etc/mono/"
|
||||
install -Dm 0644 /etc/mono/4.5/machine.config "${BUILTDIR}/etc/mono/4.5"
|
||||
|
||||
for f in $(ls usr/lib/mono/4.5/Facades/*.dll); do install -Dm 0644 "$f" "${BUILTDIR}/usr/lib/mono/4.5/Facades/"; done
|
||||
for f in $(ls usr/lib/mono/4.5/*.dll usr/lib/mono/4.5/*.exe); do install -Dm 0644 "$f" "${BUILTDIR}/usr/lib/mono/4.5/"; done
|
||||
for f in $(ls usr/lib/*.so usr/lib/*.so.*); do install -Dm 0755 "$f" "${BUILTDIR}/usr/lib/"; done
|
||||
for f in $(ls usr/lib/*.so); do install -Dm 0755 "$f" "${BUILTDIR}/usr/lib/"; done
|
||||
|
||||
popd
|
||||
|
||||
rm -rf libs libs.tar.bz2
|
||||
rm -rf libs mono.tar.bz2
|
||||
|
||||
build_appimage() {
|
||||
MOD_ID=${1}
|
||||
|
||||
@@ -13,7 +13,7 @@
|
||||
# MACOS_DEVELOPER_PASSWORD: App-specific password for the developer account
|
||||
#
|
||||
|
||||
LAUNCHER_TAG="osx-launcher-20200316"
|
||||
LAUNCHER_TAG="osx-launcher-20200328"
|
||||
|
||||
if [ $# -ne "2" ]; then
|
||||
echo "Usage: $(basename "$0") tag outputdir"
|
||||
@@ -92,10 +92,10 @@ echo "Building core files"
|
||||
|
||||
pushd "${SRCDIR}" > /dev/null || exit 1
|
||||
make clean
|
||||
make osx-dependencies
|
||||
make core
|
||||
make core TARGETPLATFORM=osx-x64
|
||||
make version VERSION="${TAG}"
|
||||
make install-core gameinstalldir="/Contents/Resources/" DESTDIR="${BUILTDIR}/OpenRA.app"
|
||||
make install-dependencies TARGETPLATFORM=osx-x64 gameinstalldir="/Contents/Resources/" DESTDIR="${BUILTDIR}/OpenRA.app"
|
||||
popd > /dev/null || exit 1
|
||||
|
||||
populate_bundle "OpenRA - Red Alert.app" "ra" "Red Alert"
|
||||
|
||||
@@ -129,15 +129,15 @@ Section "Game" GAME
|
||||
File "${SRCDIR}\TiberianDawn.ico"
|
||||
File "${SRCDIR}\Dune2000.ico"
|
||||
File "${SRCDIR}\SDL2-CS.dll"
|
||||
File "${SRCDIR}\OpenAL-CS.dll"
|
||||
File "${SRCDIR}\OpenAL-CS.Core.dll"
|
||||
File "${SRCDIR}\global mix database.dat"
|
||||
File "${SRCDIR}\IP2LOCATION-LITE-DB1.IPV6.BIN.ZIP"
|
||||
File "${SRCDIR}\eluant.dll"
|
||||
File "${SRCDIR}\rix0rrr.BeaconLib.dll"
|
||||
File "${DEPSDIR}\soft_oal.dll"
|
||||
File "${DEPSDIR}\SDL2.dll"
|
||||
File "${DEPSDIR}\freetype6.dll"
|
||||
File "${DEPSDIR}\lua51.dll"
|
||||
File "${SRCDIR}\BeaconLib.dll"
|
||||
File "${SRCDIR}\soft_oal.dll"
|
||||
File "${SRCDIR}\SDL2.dll"
|
||||
File "${SRCDIR}\freetype6.dll"
|
||||
File "${SRCDIR}\lua51.dll"
|
||||
|
||||
!insertmacro MUI_STARTMENU_WRITE_BEGIN Application
|
||||
CreateDirectory "$SMPROGRAMS\$StartMenuFolder"
|
||||
@@ -191,9 +191,9 @@ Section "-DotNet" DotNet
|
||||
; https://docs.microsoft.com/en-us/dotnet/framework/migration-guide/how-to-determine-which-versions-are-installed
|
||||
ReadRegDWORD $0 HKLM "SOFTWARE\Microsoft\NET Framework Setup\NDP\v4\Full" "Release"
|
||||
IfErrors error 0
|
||||
IntCmp $0 394254 done error done
|
||||
IntCmp $0 461808 done error done
|
||||
error:
|
||||
MessageBox MB_OK ".NET Framework v4.6.1 or later is required to run OpenRA."
|
||||
MessageBox MB_OK ".NET Framework v4.7.2 or later is required to run OpenRA."
|
||||
Abort
|
||||
done:
|
||||
SectionEnd
|
||||
@@ -255,8 +255,8 @@ Function ${UN}Clean
|
||||
Delete $INSTDIR\eluant.dll
|
||||
Delete $INSTDIR\freetype6.dll
|
||||
Delete $INSTDIR\SDL2-CS.dll
|
||||
Delete $INSTDIR\OpenAL-CS.dll
|
||||
Delete $INSTDIR\rix0rrr.BeaconLib.dll
|
||||
Delete $INSTDIR\OpenAL-CS.Core.dll
|
||||
Delete $INSTDIR\BeaconLib.dll
|
||||
RMDir /r $INSTDIR\Support
|
||||
|
||||
DeleteRegKey HKLM "Software\Microsoft\Windows\CurrentVersion\Uninstall\OpenRA${SUFFIX}"
|
||||
|
||||
@@ -39,19 +39,21 @@ function build_platform()
|
||||
{
|
||||
echo "Building core files ($1)"
|
||||
if [ "$1" = "x86" ]; then
|
||||
TARGETPLATFORM="TARGETPLATFORM=win-x86"
|
||||
IS_WIN32="WIN32=true"
|
||||
USE_PROGRAMFILES32="-DUSE_PROGRAMFILES32=true"
|
||||
else
|
||||
IS_WIN32="WIN32=false"
|
||||
TARGETPLATFORM="TARGETPLATFORM=win-x64"
|
||||
USE_PROGRAMFILES32=""
|
||||
fi
|
||||
|
||||
pushd "${SRCDIR}" > /dev/null || exit 1
|
||||
make clean
|
||||
make windows-dependencies "${IS_WIN32}"
|
||||
make core "${IS_WIN32}"
|
||||
make core "${TARGETPLATFORM}" "${IS_WIN32}"
|
||||
make version VERSION="${TAG}"
|
||||
make install-core gameinstalldir="" DESTDIR="${BUILTDIR}"
|
||||
make install-core "${TARGETPLATFORM}" gameinstalldir="" DESTDIR="${BUILTDIR}"
|
||||
make install-dependencies "${TARGETPLATFORM}" gameinstalldir="" DESTDIR="${BUILTDIR}"
|
||||
popd > /dev/null || exit 1
|
||||
|
||||
echo "Compiling Windows launchers ($1)"
|
||||
|
||||
Reference in New Issue
Block a user