Commit d4fb285c authored by Giorgos Korfiatis's avatar Giorgos Korfiatis

Store dependencies in Contents/Resources in OSX bundle

parent a19a6278
......@@ -28,6 +28,12 @@ var BAAS_CACHE_DIR = path.join(get_user_home(), BAAS_HOME_DIR, 'cache');
var RESTORE_DEFAULT_DIR = path.join(get_user_home(), "Downloads");
var exec_path = path.dirname(process.execPath);
if(process.platform == 'darwin') {
exec_path = path.join(
path.dirname(path.dirname(path.dirname(path.dirname(exec_path)))),
"Resources");
}
var CYGWIN_BASH = path.join(exec_path, "cygwin", "bin", "bash.exe");
function get_user_home() {
......
......@@ -50,14 +50,19 @@ rm -rf $DIST; mkdir -p $DIST
echo Copying baas
cp -r build/baas/$PLATFORM/* $DIST
cp src/timeview.py $DIST
if [[ "$OS_NAME" = "Darwin" ]]
then RESOURCES=$DIST/baas.app/Contents/Resources
else RESOURCES=$DIST
fi
cp src/timeview.py $RESOURCES
echo Copying duplicity
cp -r build/duplicity/* $DIST
cp -r build/duplicity/* $RESOURCES
if [[ "$OS_NAME" = "CYGWIN" ]]
then
echo Copying cygwin
cp -r build/cygwin $DIST
cp -r build/cygwin $RESOURCES
fi
echo Built under $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