Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Added automatic copying to build directory for main project and plug-…

…ins.
  • Loading branch information...
commit d23d65a921d36b7f8ee0c83f303fc4e0b9bc7bf9 1 parent 7cbc1e7
Viktor Lidholt authored
View
2  CocosBuilder/CocosBuilder.xcodeproj/project.pbxproj
@@ -2686,7 +2686,7 @@
);
runOnlyForDeploymentPostprocessing = 0;
shellPath = /bin/sh;
- shellScript = "./../scripts/CopyToBuildDirectory.sh $CONFIGURATION_BUILD_DIR/ $SRCROOT/../build/ $PRODUCT_NAME.app";
+ shellScript = "./../scripts/CopyBuiltProduct.sh $CONFIGURATION_BUILD_DIR/ $SRCROOT/../build/ $PRODUCT_NAME.app 1";
};
/* End PBXShellScriptBuildPhase section */
View
17 PlugIn Exporters/Export Example/Export Example.xcodeproj/project.pbxproj
@@ -106,6 +106,7 @@
E38B844014FF93C30030AFF2 /* Sources */,
E38B844114FF93C30030AFF2 /* Frameworks */,
E38B844214FF93C30030AFF2 /* Resources */,
+ E33BC1AA1510D739009AE29A /* ShellScript */,
);
buildRules = (
);
@@ -152,6 +153,22 @@
};
/* End PBXResourcesBuildPhase section */
+/* Begin PBXShellScriptBuildPhase section */
+ E33BC1AA1510D739009AE29A /* ShellScript */ = {
+ isa = PBXShellScriptBuildPhase;
+ buildActionMask = 2147483647;
+ files = (
+ );
+ inputPaths = (
+ );
+ outputPaths = (
+ );
+ runOnlyForDeploymentPostprocessing = 0;
+ shellPath = /bin/sh;
+ shellScript = "./../../scripts/CopyBuiltProduct.sh \"$CONFIGURATION_BUILD_DIR/\" \"$SRCROOT/../../build/CocosBuilder.app/Contents/PlugIns/\" \"$PRODUCT_NAME.ccbPlugExport\" 0";
+ };
+/* End PBXShellScriptBuildPhase section */
+
/* Begin PBXSourcesBuildPhase section */
E38B844014FF93C30030AFF2 /* Sources */ = {
isa = PBXSourcesBuildPhase;
View
18 PlugIn Nodes/CCRotatingSprite/CCRotatingSprite.xcodeproj/project.pbxproj
@@ -394,6 +394,7 @@
E3DEFB0C14FFD66C00B98586 /* Sources */,
E3DEFB0D14FFD66C00B98586 /* Frameworks */,
E3DEFB0E14FFD66C00B98586 /* Resources */,
+ E33BC1A51510CA52009AE29A /* Copy Plug-in to CocosBuilder's PlugIns folder */,
);
buildRules = (
);
@@ -441,6 +442,23 @@
};
/* End PBXResourcesBuildPhase section */
+/* Begin PBXShellScriptBuildPhase section */
+ E33BC1A51510CA52009AE29A /* Copy Plug-in to CocosBuilder's PlugIns folder */ = {
+ isa = PBXShellScriptBuildPhase;
+ buildActionMask = 2147483647;
+ files = (
+ );
+ inputPaths = (
+ );
+ name = "Copy Plug-in to CocosBuilder's PlugIns folder";
+ outputPaths = (
+ );
+ runOnlyForDeploymentPostprocessing = 0;
+ shellPath = /bin/sh;
+ shellScript = "./../../scripts/CopyBuiltProduct.sh \"$CONFIGURATION_BUILD_DIR/\" \"$SRCROOT/../../build/CocosBuilder.app/Contents/PlugIns/\" \"$PRODUCT_NAME.ccbPlugNode\" 0";
+ };
+/* End PBXShellScriptBuildPhase section */
+
/* Begin PBXSourcesBuildPhase section */
E3DEFB0C14FFD66C00B98586 /* Sources */ = {
isa = PBXSourcesBuildPhase;
View
17 scripts/CopyBuiltProduct.sh
@@ -0,0 +1,17 @@
+#!/bin/sh
+
+# This script is used by Xcode to copy the built app and plug-ins to the build directory
+
+COCOSBUILDER_APP_BUILD_DIRECTORY=$1
+COCOSBUILDER_REGULAR_DIRECTORY=$2
+COCOSBUILDER_APP_BUNDLE=$3
+COCOSBUILDER_CREATE_DIR=$4
+
+if [ $COCOSBUILDER_CREATE_DIR == "1" ]
+then
+ mkdir -p "$COCOSBUILDER_REGULAR_DIRECTORY"
+fi
+
+echo "Copying $COCOSBUILDER_APP_BUNDLE into `cd \"$COCOSBUILDER_REGULAR_DIRECTORY\"; pwd`"
+
+cp -r "$COCOSBUILDER_APP_BUILD_DIRECTORY$COCOSBUILDER_APP_BUNDLE" "$COCOSBUILDER_REGULAR_DIRECTORY$COCOSBUILDER_APP_BUNDLE"
Please sign in to comment.
Something went wrong with that request. Please try again.