Esempio n. 1
0
        /**
         * Creates the application directory on the Mac
         */
        static public void CreateApplicationDirOnMac()
        {
            DateTime StartTime = DateTime.Now;

            // Cleans out the intermediate folders on both ends
            CompileTime.ExecuteRemoteCommand("DeleteIPA");
            CompileTime.ExecuteRemoteCommand("DeleteMacStagingFiles");
            Program.ExecuteCommand("Clean", null);
            //@TODO: mnoland 10/5/2010
            // Need to come up with a way to prevent this from causing an error on the remote machine
            // CompileTime.ExecuteRemoteCommand("Clean");

            // Stage files
            Program.Log("Staging files before copying to Mac ...");
            CopyFilesNeededForMakeApp();

            // Copy staged files from PC to Mac
            Program.ExecuteCommand("StageMacFiles", null);

            // Set the executable bit on the EXE
            CompileTime.ExecuteRemoteCommand("SetExec");

            // Install the provision (necessary for MakeApp to succeed)
            CompileTime.ExecuteRemoteCommand("EnsureProvisionDirExists");
            CompileTime.ExecuteRemoteCommand("InstallProvision");

            // strip the symbols if desired or required
            if (Config.bForceStripSymbols || Config.bForDistribution)
            {
                CompileTime.ExecuteRemoteCommand("Strip");
            }

            // sign the exe, etc...
            CompileTime.ExecuteRemoteCommand("PrePackage");
            if (!Config.bUseRPCUtil)
            {
                CompileTime.ExecuteRemoteCommand("DeleteKeyChain", true);
                CompileTime.ExecuteRemoteCommand("CreateKeyChain");
            }
            CompileTime.ExecuteRemoteCommand("MakeApp");
            if (!Config.bUseRPCUtil)
            {
                CompileTime.ExecuteRemoteCommand("DeleteKeyChain");
            }

            Program.Log(String.Format("Finished creating .app directory on Mac (took {0:0.00} s)",
                                      (DateTime.Now - StartTime).TotalSeconds));
        }
Esempio n. 2
0
        /**
         * Packages an IPA on the Mac
         */
        static public void PackageIPAOnMac()
        {
            // Create the .app structure on the Mac (and codesign, etc...)
            CreateApplicationDirOnMac();

            DateTime StartTime = DateTime.Now;

            // zip up
            CompileTime.ExecuteRemoteCommand("Zip");

            // fetch the IPA
            if (Config.bCreateStubSet)
            {
                Program.ExecuteCommand("GetStubIPA", null);
            }
            else
            {
                Program.ExecuteCommand("GetIPA", null);
            }

            Program.Log(String.Format("Finished packaging into IPA (took {0:0.00} s)",
                                      (DateTime.Now - StartTime).TotalSeconds));
        }
Esempio n. 3
0
 static public void DangerouslyFastMode()
 {
     CompileTime.ExecuteRemoteCommand("MakeApp");
 }