コード例 #1
0
    public static void Up(string directory, string namespaceId, string gitUrl, bool affectManifest = true)
    {
        string directoryPath = directory;

        QuickGit.AddFileInEmptyFolder(directoryPath);
        QuickGit.PullPushWithAddAndCommit(directoryPath, "Update: " + DateTime.Now.ToString("yyyy/mm/dd -  hh:mm"));

        #if UNITY_EDITOR
        UnityEditor.FileUtil.DeleteFileOrDirectory(directoryPath);
        UnityEditor.AssetDatabase.Refresh();
        #endif
        if (affectManifest && !string.IsNullOrEmpty(namespaceId) && !string.IsNullOrEmpty(gitUrl))
        {
            UnityPackageUtility.AddPackage(namespaceId, gitUrl);
        }
    }
コード例 #2
0
 public void PullAndPush()
 {
     QuickGit.AddFileInEmptyFolder(GetProjectPathInUnity());
     QuickGit.PullPushWithAddAndCommit(GetProjectPathInUnity(), DateTime.Now.ToString("yyyy/mm/dd -  hh:mm"));
 }