Commit 97b68d9e authored by Jonathan Wilkes's avatar Jonathan Wilkes
Browse files

If compiling an OSX dmg, don't try to change permission on a file which...

If compiling an OSX dmg, don't try to change permission on a file which doesn't exist for that platform
parent d192e23d
......@@ -104,11 +104,10 @@ if [ ! -d "../pd/nw/nw" ]; then
nwjs_dirname=`echo $nwjs_dirname | sed 's/armv7l/arm/'`
fi
mv $nwjs_dirname ../pd/nw/nw
# make sure the nw binary is executable on GNU/Linux and OSX
if [[ $os != "win" ]]; then
# make sure the nw binary is executable on GNU/Linux
if [[ $os != "win" && $dmg == 0 ]]; then
chmod 755 ../pd/nw/nw/nw
fi
chmod 755 ../pd/nw/nw/nw
rm $nwjs_filename
fi
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment