Exemple #1
0
        /// <summary>
        ///
        /// </summary>
        /// <param name="distFile"></param>
        public static void tcUnpack(string distFile = "teamcity.zip")
        {
            using (ZipFile buildUnpack = ZipFile.Read(distFile))
            {
                buildUnpack.ExtractAll(Environment.CurrentDirectory, ExtractExistingFileAction.OverwriteSilently);
            }

            File.Delete(distFile);

            FreeSO.wildUnZip();

            /* using (ZipFile build2Unpack = ZipFile.Read("dist-" + distNum() + ".zip"))
             * {
             *  build2Unpack.ExtractAll(Environment.CurrentDirectory, ExtractExistingFileAction.OverwriteSilently);
             * } */
        }
Exemple #2
0
 public static Uri teamCityDist(string buildId = "316")
 {
     return(new Uri(@"http://" + address + @"/repository/download/" + buildType + @"/" + buildId + @":id/dist-" + FreeSO.DistNum() + ".zip"));
 }