Skip to content

Commit

Permalink
Patchelf test for standalone. Surpress cp warnings
Browse files Browse the repository at this point in the history
  • Loading branch information
pijaro committed Jun 30, 2022
1 parent 955e109 commit d0eb56f
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 2 deletions.
4 changes: 4 additions & 0 deletions build.sh
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,10 @@ while [[ $# -gt 0 ]]; do
shift # past argument
;;
-s|--standalone)
if ! hash patchelf 2>/dev/null ; then
echo "Patchelf missing. Standalone build requires patchelf. Install it via apt 'sudo apt install patchelf'."
exit 1
fi
OPTIONS="$OPTIONS --standalone"
STANDALONE=1
shift # past argument
Expand Down
4 changes: 2 additions & 2 deletions deploy_unity_plugins.sh
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,6 @@ pluginDir=$1

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

0 comments on commit d0eb56f

Please sign in to comment.