Skip to content

Commit d0eb56f

Browse files
committed
Patchelf test for standalone. Surpress cp warnings
1 parent 955e109 commit d0eb56f

File tree

2 files changed

+6
-2
lines changed

2 files changed

+6
-2
lines changed

build.sh

+4
Original file line numberDiff line numberDiff line change
@@ -32,6 +32,10 @@ while [[ $# -gt 0 ]]; do
3232
shift # past argument
3333
;;
3434
-s|--standalone)
35+
if ! hash patchelf 2>/dev/null ; then
36+
echo "Patchelf missing. Standalone build requires patchelf. Install it via apt 'sudo apt install patchelf'."
37+
exit 1
38+
fi
3539
OPTIONS="$OPTIONS --standalone"
3640
STANDALONE=1
3741
shift # past argument

deploy_unity_plugins.sh

+2-2
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,6 @@ pluginDir=$1
1515

1616
mkdir -p ${pluginDir}/Linux/x86_64/
1717
find install/lib/dotnet/ -maxdepth 1 -not -name "*.pdb" -type f -exec cp {} ${pluginDir} \;
18-
cp $SCRIPTPATH/install/standalone/* ${pluginDir}/Linux/x86_64/
18+
cp $SCRIPTPATH/install/standalone/* ${pluginDir}/Linux/x86_64/ 2>/dev/null
1919
find install/lib/ -maxdepth 1 -not -name "*_python.so" -type f -exec cp {} ${pluginDir}/Linux/x86_64/ \;
20-
cp $SCRIPTPATH/install/resources/*.so ${pluginDir}/Linux/x86_64/
20+
cp $SCRIPTPATH/install/resources/*.so ${pluginDir}/Linux/x86_64/ 2>/dev/null

0 commit comments

Comments
 (0)