protected void openBuildFolder(string path) { //DataBuildSettingProfile profile = getActiveProfile(); //string path = profile.getBasePath(); Debug.Log("opening folder : " + path); HalperNatives.os_openFolder(path); }
static protected void openReadme() { //string fullPath = Path.Combine(Environment.CurrentDirectory, "/YourSubDirectory/yourprogram.exe"); string fullPath = Environment.CurrentDirectory + "/README.md"; //Debug.Log(fullPath); if (!File.Exists(fullPath)) { File.Create(fullPath).Close(); } HalperNatives.startCmd(fullPath); }
static public void openGitFolderByName(string containsFolderName) { string fullPath = Environment.CurrentDirectory; //searcg for protoss git folder and open it string path = getFolderPathContainingGit(fullPath, containsFolderName); //Debug.Log("protoss : " + path); if (path.Length > 0) { Debug.Log("git with name " + containsFolderName + " found and opened"); HalperNatives.startCmd("git", "--cd=" + path); } else { Debug.Log("no git folder with name : " + containsFolderName); } }
static protected void openGit() { //string fullPath = Path.Combine(Environment.CurrentDirectory, "/YourSubDirectory/yourprogram.exe"); //string fullPath = getFolderPathContainingGit(Environment.CurrentDirectory); //start a git cmd within project context (../Assets) //Debug.Log("base root git folder : " + fullPath); HalperEditor.ClearConsole(); string fullPath = Environment.CurrentDirectory; //Debug.Log("opening gits from "+ fullPath); if (pathHasGitFolder(fullPath)) { Debug.Log("current path has git folder : opening"); HalperNatives.startCmd("git", "--cd=" + fullPath); } //Debug.Log("seaching for other gits"); openGitFolderByName("protoss"); }
static public void osOpenDataPathFolder() { HalperNatives.os_openFolder(HalperNatives.getDataPath()); }
static public void create() { uniq = ppGet(ppref_uniq, HalperNatives.generateUniqId()); }