Browse Source

Compile editor scripts, include app bundle stuff

Josh Engebretson 10 years ago
parent
commit
7921888ccf

+ 36 - 1
Build/CIScripts/GenEditorData.js

@@ -86,10 +86,45 @@ namespace('build', function() {
 
   });
 
-  task('geneditordata', ["build:gendocs", "build:ios_deploy"], {
+  task('compileeditorscripts', ["build:genscriptbindings"],{
     async: true
   }, function() {
 
+    console.log("compiling Editor Scripts");
+
+    var scriptFolder = atomicRoot + "Resources/EditorData/AtomicEditor/EditorScripts/";
+
+    process.chdir(atomicRoot);
+
+    cmds = [
+      atomicRoot + "Build/Mac/node/node " + atomicRoot + "/Build/TypeScript/tsc.js -p ./Script"
+    ];
+
+    jake.exec(cmds, function() {
+
+      // will be copied when editor resources are copied
+
+      complete();
+
+    }, {
+      printStdout: true
+    });
+
+
+  });
+
+  task('geneditordata', ["build:compileeditorscripts", "build:ios_deploy", "build:gendocs"], {
+    async: true
+  }, function() {
+
+    // Mac App
+
+    fs.copySync(atomicRoot + "Build/CIScripts/Mac/EditorApp",
+      buildDir + "MacApps/EditorApp");
+
+    fs.copySync(atomicRoot + "Build/CIScripts/Mac/PlayerApp/",
+      buildDir + "MacApps/PlayerApp/");
+
     // Editor Binaries
 
     fs.copySync(bcommon.artifactsRoot + "Build/Mac/Bin/AtomicEditor",

+ 53 - 0
Build/CIScripts/Mac/EditorApp/Info.plist

@@ -0,0 +1,53 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
+<plist version="1.0">
+<dict>
+	<key>BuildMachineOSBuild</key>
+	<string>15B42</string>
+	<key>CFBundleDevelopmentRegion</key>
+	<string>English</string>
+	<key>CFBundleExecutable</key>
+	<string>AtomicEditor</string>
+	<key>CFBundleIconFile</key>
+	<string>Atomic.icns</string>
+	<key>CFBundleInfoDictionaryVersion</key>
+	<string>6.0</string>
+	<key>CFBundleLongVersionString</key>
+	<string></string>
+	<key>CFBundlePackageType</key>
+	<string>APPL</string>
+	<key>CFBundleSignature</key>
+	<string>????</string>
+	<key>CFBundleSupportedPlatforms</key>
+	<array>
+		<string>MacOSX</string>
+	</array>
+	<key>CFBundleVersion</key>
+	<string></string>
+	<key>CSResourcesFileMapped</key>
+	<true/>
+	<key>DTCompiler</key>
+	<string>com.apple.compilers.llvm.clang.1_0</string>
+	<key>DTPlatformBuild</key>
+	<string>7A1001</string>
+	<key>DTPlatformVersion</key>
+	<string>GM</string>
+	<key>DTSDKBuild</key>
+	<string>15A278</string>
+	<key>DTSDKName</key>
+	<string>macosx10.11</string>
+	<key>DTXcode</key>
+	<string>0701</string>
+	<key>DTXcodeBuild</key>
+	<string>7A1001</string>
+	<key>LSEnvironment</key>
+	<dict>
+		<key>URHO3D_PREFIX_PATH</key>
+		<string>../Resources</string>
+	</dict>
+	<key>LSRequiresCarbon</key>
+	<true/>
+	<key>NSHumanReadableCopyright</key>
+	<string></string>
+</dict>
+</plist>

+ 1 - 0
Build/CIScripts/Mac/EditorApp/PkgInfo

@@ -0,0 +1 @@
+APPL????

BIN
Build/CIScripts/Mac/EditorApp/Resources/Atomic.icns


+ 53 - 0
Build/CIScripts/Mac/PlayerApp/Info.plist

@@ -0,0 +1,53 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
+<plist version="1.0">
+<dict>
+	<key>BuildMachineOSBuild</key>
+	<string>15B42</string>
+	<key>CFBundleDevelopmentRegion</key>
+	<string>English</string>
+	<key>CFBundleExecutable</key>
+	<string>AtomicPlayer</string>
+	<key>CFBundleIconFile</key>
+	<string>Atomic.icns</string>
+	<key>CFBundleInfoDictionaryVersion</key>
+	<string>6.0</string>
+	<key>CFBundleLongVersionString</key>
+	<string></string>
+	<key>CFBundlePackageType</key>
+	<string>APPL</string>
+	<key>CFBundleSignature</key>
+	<string>????</string>
+	<key>CFBundleSupportedPlatforms</key>
+	<array>
+		<string>MacOSX</string>
+	</array>
+	<key>CFBundleVersion</key>
+	<string></string>
+	<key>CSResourcesFileMapped</key>
+	<true/>
+	<key>DTCompiler</key>
+	<string>com.apple.compilers.llvm.clang.1_0</string>
+	<key>DTPlatformBuild</key>
+	<string>7A1001</string>
+	<key>DTPlatformVersion</key>
+	<string>GM</string>
+	<key>DTSDKBuild</key>
+	<string>15A278</string>
+	<key>DTSDKName</key>
+	<string>macosx10.11</string>
+	<key>DTXcode</key>
+	<string>0701</string>
+	<key>DTXcodeBuild</key>
+	<string>7A1001</string>
+	<key>LSEnvironment</key>
+	<dict>
+		<key>URHO3D_PREFIX_PATH</key>
+		<string>../Resources</string>
+	</dict>
+	<key>LSRequiresCarbon</key>
+	<true/>
+	<key>NSHumanReadableCopyright</key>
+	<string></string>
+</dict>
+</plist>

+ 1 - 0
Build/CIScripts/Mac/PlayerApp/PkgInfo

@@ -0,0 +1 @@
+APPL????

BIN
Build/CIScripts/Mac/PlayerApp/Resources/Atomic.icns