From 1808c5895f198d0521ac59901afe03378c3aab07 Mon Sep 17 00:00:00 2001 From: Paul Chote Date: Wed, 18 Apr 2018 18:53:06 +0000 Subject: [PATCH] Resolve symlinks to their underlying paths when packaging. --- packaging/linux/buildpackage.sh | 2 +- packaging/osx/buildpackage.sh | 4 ++-- packaging/windows/buildpackage.sh | 4 ++-- 3 files changed, 5 insertions(+), 5 deletions(-) diff --git a/packaging/linux/buildpackage.sh b/packaging/linux/buildpackage.sh index 100002c..c281225 100755 --- a/packaging/linux/buildpackage.sh +++ b/packaging/linux/buildpackage.sh @@ -77,7 +77,7 @@ chmod a+x appimagetool-x86_64.AppImage echo "Building AppImage" # Add mod files -cp -r "${TEMPLATE_ROOT}/mods/"* "${BUILTDIR}/usr/lib/openra/mods" +cp -Lr "${TEMPLATE_ROOT}/mods/"* "${BUILTDIR}/usr/lib/openra/mods" install -Dm 0755 libSDL2.so "${BUILTDIR}/usr/lib/openra/" install -Dm 0644 include/SDL2-CS.dll.config "${BUILTDIR}/usr/lib/openra/" diff --git a/packaging/osx/buildpackage.sh b/packaging/osx/buildpackage.sh index 7974fbc..cea9a6f 100755 --- a/packaging/osx/buildpackage.sh +++ b/packaging/osx/buildpackage.sh @@ -79,7 +79,7 @@ popd > /dev/null popd > /dev/null # Add mod files -cp -r "${TEMPLATE_ROOT}/mods/"* "${BUILTDIR}/OpenRA.app/Contents/Resources/mods" +cp -Lr "${TEMPLATE_ROOT}/mods/"* "${BUILTDIR}/OpenRA.app/Contents/Resources/mods" cp "mod.icns" "${BUILTDIR}/OpenRA.app/Contents/Resources/${MOD_ID}.icns" pushd "${BUILTDIR}" > /dev/null @@ -92,7 +92,7 @@ modify_plist "{JOIN_SERVER_URL_SCHEME}" "openra-${MOD_ID}-${TAG}" "${PACKAGING_O echo "Packaging zip archive" -zip "${PACKAGING_INSTALLER_NAME}-${TAG}-macOS.zip" -r -9 "${PACKAGING_OSX_APP_NAME}" --quiet --symlinks +zip "${PACKAGING_INSTALLER_NAME}-${TAG}-macOS.zip" -r -9 "${PACKAGING_OSX_APP_NAME}" --quiet mv "${PACKAGING_INSTALLER_NAME}-${TAG}-macOS.zip" "${OUTPUTDIR}" popd > /dev/null diff --git a/packaging/windows/buildpackage.sh b/packaging/windows/buildpackage.sh index 5a8965f..92deb68 100755 --- a/packaging/windows/buildpackage.sh +++ b/packaging/windows/buildpackage.sh @@ -67,7 +67,7 @@ popd > /dev/null popd > /dev/null # Add mod files -cp -r "${TEMPLATE_ROOT}/mods/"* "${BUILTDIR}/mods" +cp -Lr "${TEMPLATE_ROOT}/mods/"* "${BUILTDIR}/mods" cp "mod.ico" "${BUILTDIR}/${MOD_ID}.ico" cp "${SRC_DIR}/OpenRA.Game.exe.config" "${BUILTDIR}" @@ -88,7 +88,7 @@ popd > /dev/null echo "Packaging zip archive" pushd "${BUILTDIR}" > /dev/null find "${SRC_DIR}/thirdparty/download/windows/" -name '*.dll' -exec cp '{}' '.' ';' -zip "${PACKAGING_INSTALLER_NAME}-${TAG}-winportable" -r -9 * --quiet --symlinks +zip "${PACKAGING_INSTALLER_NAME}-${TAG}-winportable" -r -9 * --quiet mv "${PACKAGING_INSTALLER_NAME}-${TAG}-winportable.zip" "${OUTPUTDIR}" popd > /dev/null