Commit 9accd69f authored by eric pellegrini's avatar eric pellegrini
Browse files

Modified the run_deploy script on macos to fix the problem with the dmg that...

Modified the run_deploy script on macos to fix the problem with the dmg that is still dependent on the building machine libraries
parent 0182138a
Pipeline #2083 passed with stages
in 13 minutes and 52 seconds
......@@ -63,11 +63,13 @@ hdiutil unmount /Volumes/MDANSE -force -quiet
sleep 5
cp -r /usr/local/Cellar/python/2.7.11/Frameworks/Python.framework dist/MDANSE.app/Contents/Frameworks/
# recipe to make the dmg free from the building machine dependency adapted from
# http://joaoventura.net/blog/2016/embeddable-python-osx/
cp /usr/local/Cellar/python/2.7.11/Frameworks/Python.framework/Versions/2.7/Resources/Python.app/Contents/MacOS/Python dist/MDANSE.app/Contents/MacOS/python
install_name_tool -change /usr/local/Cellar/python/2.7.11/Frameworks/Python.framework/Versions/2.7/Python @executable_path/../Frameworks/Python.framework/Versions/2.7/Python dist/MDANSE.app/Contents/MacOS/python
cp /usr/local/Frameworks/Python.framework/Versions/2.7/Python ./dist/MDANSE.app/Contents/MacOS/libpython2.7.dylib
install_name_tool -change /usr/local/Cellar/python/2.7.11/Frameworks/Python.framework/Versions/2.7/Python @executable_path/libpython2.7.dylib ./dist/MDANSE.app/Contents/MacOS/python
chmod 777 ./dist/MDANSE.app/Contents/MacOS/libpython2.7.dylib
install_name_tool -id @executable_path/libpython2.7.dylib ./dist/MDANSE.app/Contents/MacOS/libpython2.7.dylib
../Tools/create-dmg/create-dmg --background "../Resources/background.jpg" --volname "MDANSE" --window-pos 200 120 --window-size 800 400 --icon MDANSE.app 200 190 --hide-extension MDANSE.app --app-drop-link 600 185 "${MDANSE_DMG}" ./dist
......
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