Browse Source

tools for packaing OSX releases

pull/1/head
Odilitime 5 years ago
parent
commit
170a40439f
  1. BIN
      reltools/.DS_Store
  2. BIN
      reltools/darwin/.DS_Store
  3. BIN
      reltools/darwin/libGLEW.2.0.0.dylib
  4. BIN
      reltools/darwin/libfreetype.6.dylib
  5. BIN
      reltools/darwin/libharfbuzz.0.dylib
  6. 20
      reltools/darwin/package.sh

BIN
reltools/.DS_Store vendored

Binary file not shown.

BIN
reltools/darwin/.DS_Store vendored

Binary file not shown.

BIN
reltools/darwin/libGLEW.2.0.0.dylib

Binary file not shown.

BIN
reltools/darwin/libfreetype.6.dylib

Binary file not shown.

BIN
reltools/darwin/libharfbuzz.0.dylib

Binary file not shown.

20
reltools/darwin/package.sh

@ -0,0 +1,20 @@ @@ -0,0 +1,20 @@
#!/bin/bash
physicalCpuCount=$([[ $(uname) = 'Darwin' ]] &&
sysctl -n hw.physicalcpu_max ||
lscpu -p | egrep -v '^#' | sort -u -t, -k 2,4 | wc -l)
mkdir netrunner-$(date +%F)
cd netrunner-$(date +%F)
cp ../*.dylib .
cp ../../../*.ttf .
cd ../../../
make -j$physicalCpuCount
cd reltools/darwin/netrunner-$(date +%F)
cp ../../../netrunner .
install_name_tool -change /usr/local/lib/libGLEW.2.0.0.dylib libGLEW.2.0.0.dylib netrunner
install_name_tool -change /usr/local/lib/libfreetype.6.dylib libfreetype.6.dylib netrunner
install_name_tool -change /usr/local/lib/libharfbuzz.0.dylib libharfbuzz.0.dylib netrunner
otool -L netrunner
cd ..
zip -r -X netrunner-$(date +%F).zip netrunner-$(date +%F)
rm -fr netrunner-$(date +%F)
# https://gitgud.io/snippets/29
Loading…
Cancel
Save