Skip to content

Commit

Permalink
Fix for Genymotion
Browse files Browse the repository at this point in the history
Broke Genymotion on the last push, it is now fixed
  • Loading branch information
thisishuey committed Jul 17, 2014
1 parent d268d57 commit eda4ccb
Showing 1 changed file with 8 additions and 7 deletions.
15 changes: 8 additions & 7 deletions Titanium.py
Original file line number Diff line number Diff line change
Expand Up @@ -59,7 +59,7 @@ def select_project(self, select):
select = select - 1

if select == -1:
self.window.run_command("exec", {"cmd": ' '.join(titaniumMostRecent), "shell": True})
self.window.run_command("exec", titaniumMostRecent)
else:
self.project_folder = folders[select]
self.project_sdk = self.get_project_sdk_version()
Expand All @@ -82,7 +82,7 @@ def select_platform(self, select):
self.platform = self.platforms[select]

if self.platform == "most recent configuration":
self.window.run_command("exec", {"cmd": ' '.join(titaniumMostRecent), "shell": True})
self.window.run_command("exec", titaniumMostRecent)
elif self.platform == "ios":
self.targets = ["simulator", "device", "dist-appstore", "dist-adhoc"]
self.show_quick_panel(self.targets, self.select_ios_target)
Expand All @@ -107,24 +107,25 @@ def get_project_sdk_version(self):

def run_titanium(self, options=[]):
cmd = [self.cli, "build", "--sdk", self.project_sdk, "--project-dir", self.project_folder, "--no-colors", "--platform", self.platform, "--log-level", self.loggingLevel]

cmd.extend(options)
execCMD = {"cmd": ' '.join(cmd), "shell": True}

# save most recent command
global titaniumMostRecent
titaniumMostRecent = cmd
titaniumMostRecent = execCMD

self.window.run_command("exec", {"cmd": ' '.join(cmd), "shell": True})
self.window.run_command("exec", execCMD)

def run_genymotion(self, options=[]):
cmd = [self.cli, "build", "--sdk", self.project_sdk, "--project-dir", self.project_folder, "--no-colors", "--platform", self.platform, "--log-level", self.loggingLevel]
cmd.extend(options)
execCMD = {"cmd": cmd}

# save most recent command
global titaniumMostRecent
titaniumMostRecent = cmd
titaniumMostRecent = execCMD

self.window.run_command("exec", {"cmd": ' '.join(cmd), "shell": True})
self.window.run_command("exec", execCMD)

#--------------------------------------------------------------
# MOBILE WEB
Expand Down

0 comments on commit eda4ccb

Please sign in to comment.