package lime.tools.helpers;


import lime.project.HXProject;


class DeploymentHelper {
	
	
	public static function deploy (project:HXProject, targetFlags:Map <String, String>, targetDirectory:String, targetName:String) {
		
		var name = project.meta.title + " (" + project.meta.version + " build " + project.meta.buildNumber + ") (" + targetName + ").zip";
		var targetPath = PathHelper.combine (targetDirectory, name);
		
		ZipHelper.compress (PathHelper.combine (targetDirectory, "bin"), targetPath);
		
		if (targetFlags.exists ("gdrive")) {
			
			var parent = targetFlags.get ("parent");
			
			if (parent != null && parent != "") {
				
				ProcessHelper.runCommand ("", "drive", [ "upload", "-f", targetPath, "-p", parent ]);
				
			} else {
				
				ProcessHelper.runCommand ("", "drive", [ "upload", "-f", targetPath ]);
				
			}
			
		}
		
	}
	
	
}
package lime.tools.helpers;


import lime.project.HXProject;


class DeploymentHelper {
	
	
	public static function deploy (project:HXProject, targetFlags:Map <String, String>, targetDirectory:String, targetName:String) {
		
		var name = project.meta.title + " (" + project.meta.version + " build " + project.meta.buildNumber + ") (" + targetName + ").zip";
		var targetPath = PathHelper.combine (targetDirectory, name);
		
		ZipHelper.compress (PathHelper.combine (targetDirectory, "bin"), targetPath);
		
		if (targetFlags.exists ("gdrive")) {
			
			var parent = targetFlags.get ("parent");
			
			var args = ["upload" , "-f" , targetPath];
			
			if (targetFlags.exists("config")) {
			
				args.push("--config");
				args.push(targetFlags.get("config"));
				
			}
			
			if (parent != null && parent != "") {
				
				args.push("-p");
				args.push(parent);
				
			}
			
			ProcessHelper.runCommand("","drive",args);
			
		}
		
	}
	
	
}

Add "config" option for deployment helper
Add "config" option for deployment helper
MinoGames/lime,player-03/lime,madrazo/lime-1,player-03/lime,MinoGames/lime,fbricker/lime,player-03/lime,madrazo/lime-1,fbricker/lime,fbricker/lime,MinoGames/lime,openfl/lime,madrazo/lime-1,openfl/lime,player-03/lime,MinoGames/lime,player-03/lime,fbricker/lime,fbricker/lime,MinoGames/lime,fbricker/lime,MinoGames/lime,player-03/lime,madrazo/lime-1,openfl/lime,player-03/lime,openfl/lime,openfl/lime,madrazo/lime-1,madrazo/lime-1,MinoGames/lime,madrazo/lime-1,fbricker/lime,openfl/lime,openfl/lime