Browse Source

Merge pull request #349 from satindergrewal/patch-1

updated deploy script to make static marketmaker
etomic
jl777 8 years ago
committed by GitHub
parent
commit
95f0b807e0
  1. 11
      .gitignore
  2. 22
      .vscode/launch.json
  3. 32
      README.md
  4. 12
      osx_deploy.sh

11
.gitignore

@ -38,6 +38,17 @@ deprecated/.DS_Store
.DS_Store .DS_Store
iguana/help/.tmpmarker
iguana/genesis/.tmpmarker
iguana/help.json
iguana/autoAPI.md
iguana/basilisk.o-2ad8cb38
=======
*.pbxproj *.pbxproj
iguana/tmp/.tmpmarker iguana/tmp/.tmpmarker

22
.vscode/launch.json

@ -0,0 +1,22 @@
{
"version": "0.2.0",
"configurations": [
{
"name": "C++ Launch (Windows)",
"type": "cppvsdbg",
"request": "launch",
"program": "enter program name, for example ${workspaceRoot}/a.exe",
"args": [],
"stopAtEntry": false,
"cwd": "${workspaceRoot}",
"environment": [],
"externalConsole": false
},
{
"name": "C++ Attach (Windows)",
"type": "cppvsdbg",
"request": "attach",
"processId": "${command:pickProcess}"
}
]
}

32
README.md

@ -223,3 +223,35 @@ sudo service ntp start
Now things should be ready. To update and run notary node: Now things should be ready. To update and run notary node:
pkill iguana; ./m_LP; tests/notaryinit pkill iguana; ./m_LP; tests/notaryinit
##Build for OSX distribution##
Get OSX SDK 10.6 from https://github.com/ca333/MacOSX-SDKs/releases/tag/10.6
Unpack & move the .sdk folder to Xcodes SDK folder:
```cd DownloadDirectory```
```mv MacOSX10.6.sdk /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/.```
If you are using Xcode > 7.3 add the new SDK to XCode by changing MinimumSDKVersion in your Info.plist:
```vi /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Info.plist```
Change the value to:
```
<key>MinimumSDKVersion</key>
<string>10.6</string>
```
Build crypto777 library and agents with OSX release makefile:
```./m_onetime m_osx_release```
Execute the OSX deploy script:
```
./osx_deploy.sh
```
The iguana binary and its linked libraries are in ```$HOME/tmp/iguana```.

12
osx_deploy.sh

@ -6,13 +6,21 @@ TMP_DIR=~/tmp/iguana
mkdir -p $TMP_DIR mkdir -p $TMP_DIR
echo "making $TMP_DIR" echo "making $TMP_DIR"
binaries=("iguana") binaries=("iguana" "marketmaker")
for binary in "${binaries[@]}"; for binary in "${binaries[@]}";
do do
echo "copying $binary to $TMP_DIR" echo "copying $binary to $TMP_DIR"
cp agents/$binary $TMP_DIR if [ "$binary" = "iguana" ]
then
cp agents/$binary $TMP_DIR
fi
if [ "$binary" = "marketmaker" ]
then
cp iguana/$binary $TMP_DIR
fi
# find the dylibs to copy for iguana # find the dylibs to copy for iguana
DYLIBS=`otool -L $TMP_DIR/$binary | grep "/usr/local" | awk -F' ' '{ print $1 }'` DYLIBS=`otool -L $TMP_DIR/$binary | grep "/usr/local" | awk -F' ' '{ print $1 }'`

Loading…
Cancel
Save