Skip to content

Commit

Permalink
Update Linux SDK
Browse files Browse the repository at this point in the history
  • Loading branch information
rodlie committed Dec 27, 2024
1 parent 09e6489 commit 85e779d
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 4 deletions.
3 changes: 1 addition & 2 deletions src/scripts/build.sh
Original file line number Diff line number Diff line change
Expand Up @@ -30,11 +30,10 @@ BUILD_ENGINE=${BUILD_ENGINE:-"OFF"}
REL=${REL:-0}
APPIMG=20240401
SDK=1.0.0
SKIA=1.0.0-682c91fa
URL=https://github.com/friction2d/friction-sdk/releases/download/v${SDK}
APPIMAGE_TAR=friction-appimage-tools-${APPIMG}.tar.xz
SDK_TAR=friction-sdk-${SDK}-linux-x86_64.tar.xz
SKIA_TAR=skia-static-${SKIA}-linux-x86_64.tar.xz
SKIA_TAR=skia-friction-09e64895-linux-x86_64.tar.xz

mkdir -p distfiles/sdk || true

Expand Down
4 changes: 2 additions & 2 deletions src/scripts/build_vfxplatform_friction.sh
Original file line number Diff line number Diff line change
Expand Up @@ -111,9 +111,9 @@ cmake --build .

if [ "${BUILD_ENGINE}" = "ON" ]; then
(cd src/engine ;
tar cf skia-static-${VERSION}-linux-x86_64.tar skia
tar cf skia-friction-${VERSION}-linux-x86_64.tar skia
mkdir -p /mnt/builds/${VERSION} || true
mv skia-static-${VERSION}-linux-x86_64.tar /mnt/builds/${VERSION}/
mv skia-friction-${VERSION}-linux-x86_64.tar /mnt/builds/${VERSION}/
)
fi

Expand Down
7 changes: 7 additions & 0 deletions src/scripts/build_vfxplatform_package.sh
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,7 @@ FRICTION_PKG=friction-${VERSION}

APPIMAGETOOL=bfe6e0c
APPIMAGERUNTIME=1bb1157
SKIA_LIB=${DISTFILES}/skia/libskia.friction.so

if [ "${VERSION}" = "" ]; then
echo "Missing version"
Expand Down Expand Up @@ -143,6 +144,12 @@ for so in *.so*; do
done
)

PKG_SKIA_LIB=${BUILD}/${FRICTION_PKG}/opt/friction/lib/libskia.friction.so
if [ -f "${SKIA_LIB}" ] && [ ! -f "${PKG_SKIA_LIB}" ]; then
cp -a ${SKIA_LIB} ${BUILD}/${FRICTION_PKG}/opt/friction/lib/
strip -s ${PKG_SKIA_LIB}
fi

PLUGS="
audio
platforminputcontexts
Expand Down

0 comments on commit 85e779d

Please sign in to comment.