1. 01 Mar, 2019 1 commit
    • Greg Spencer's avatar
      Be more strict about finding version number attached to a revision. (#28527) · 7ab3bc71
      Greg Spencer authored
      When we package Flutter, we used to find the "current" tag (which is the version number) by starting at the revision we are building on and looking backwards in time to find the most recent tag. This causes problems on release builds when we failed to tag properly.
      
      This PR makes the packaging script be more strict by requiring the given revision to itself have a tag, but only when we're publishing the result. When we're not publishing the result, it's more lenient, since otherwise we couldn't test packaging on non-release commits.
      
      I also renamed ProcessRunnerException to PreparePackageException, since we were using that exception more generally than just for processes.
      7ab3bc71
  2. 26 Feb, 2019 1 commit
  3. 26 Jan, 2019 1 commit
  4. 11 Jan, 2019 1 commit
  5. 30 Oct, 2018 1 commit
  6. 12 Sep, 2018 1 commit
  7. 17 Aug, 2018 1 commit
    • Ian Hickson's avatar
      Clean up usage of temporary directories (#20682) · 3dec6a69
      Ian Hickson authored
      All temporary directory start with `flutter_` and have their random component separated from the name by a period, as in `flutter_test_bundle.YFYQMY`.
      
      I've tried to find some of the places where we didn't cleanly delete temporary directories, too. This greatly reduces, though it does not entirely eliminate, the directories we leave behind when running tests, especially `flutter_tools` tests.
      
      While I was at it I standardized on `tempDir` as the variable name for temporary directories, since it was the most common, removing occurrences of `temp` and `tmp`, among others.
      
      Also I factored out some common code that used to catch exceptions that happen on Windows, and made more places use that pattern.
      3dec6a69
  8. 15 Aug, 2018 1 commit
    • Ian Hickson's avatar
      Shim package:test to avoid matcher issues (#20602) · 686d8f8a
      Ian Hickson authored
      * Upgrade everything except matcher.
      * Roll matcher (and test)
      * Adjust tests that depend on flutter:test directly to depend on a shim
      * Require use of package:test shim and remove other references to package:test
      686d8f8a
  9. 02 Aug, 2018 1 commit
  10. 27 Jul, 2018 1 commit
  11. 23 Jul, 2018 1 commit
  12. 16 Jul, 2018 2 commits
  13. 21 Jun, 2018 1 commit
  14. 20 Jun, 2018 1 commit
  15. 19 Jun, 2018 1 commit
  16. 22 Mar, 2018 1 commit
  17. 20 Mar, 2018 1 commit
  18. 14 Mar, 2018 2 commits
    • Greg Spencer's avatar
      Fix the remote setup to only change the URL. (#15528) · c345c1bb
      Greg Spencer authored
      This changes the packaging tool to only set the remote URL instead of recreating the remote.
      
      Recreating it was removing some metadata that identified the repo as having been cloned from the "real" repo, so flutter --version would report an unknown channel and source. This just sets the URL so that it looks like it came from GitHub.
      
      I also fixed some incorrect comments, and made unzip work on platforms other than Windows (even though we don't really need it there yet).
      
      Fixes #15518
      c345c1bb
    • Alexandre Ardhuin's avatar
      7667db63
  19. 10 Mar, 2018 1 commit
  20. 27 Feb, 2018 1 commit
    • Greg Spencer's avatar
      Switch Mac packaging to use .zip files. (#14894) · 29d59e3c
      Greg Spencer authored
      We can't use .tar.xz on Mac because although it can unpack them on the command line (with tar), the "Archive Utility" that runs when you double-click on them just does some crazy behavior (it
      converts it to a compressed cpio archive, and when you double-click on that, it converts it back to .tar.xz, without ever unpacking it!)
      
      So, this changes the script to use .zip for Mac, and the files are about 220MB larger than they need to be. 
      29d59e3c
  21. 22 Feb, 2018 1 commit
  22. 09 Feb, 2018 1 commit
  23. 07 Feb, 2018 2 commits
    • Greg Spencer's avatar
      Fix the build by removing offending test. (#14530) · 88e0d33c
      Greg Spencer authored
      I wanted to run a "real command" as part of the test, but in the interest of fixing the build, I'm just removing the test.
      88e0d33c
    • Greg Spencer's avatar
      Fix process running during package creation (#14508) · df791279
      Greg Spencer authored
      There were some problems I introduced with the last PR for this. It passed the test, but failed in practice.
      
      This adds tests for those failure cases, adds a "--help" and fixes the test so that it doesn't try and actually download MinGit as part of the Windows test.
      
      I added package:platform as a dependency, so I did a force upgrade on the packages.
      
      Also, re-enabling 'create package' in the cache warming code, now that #14448 is fixed.
      df791279
  24. 06 Feb, 2018 1 commit
  25. 10 Jan, 2018 3 commits
  26. 21 Dec, 2017 1 commit
  27. 20 Dec, 2017 1 commit
    • Greg Spencer's avatar
      Adding minzip to packaging steps for Windows (#13679) · 765191e7
      Greg Spencer authored
      This adds our self-compiled copy of the MinGit executable (built from the flutter/git repo) to the archive when building an archive for Windows.
      
      I also tweaked the internal API for prepare_package.dart so that there's a single entry point to build an archive.
      765191e7
  28. 18 Dec, 2017 1 commit
  29. 16 Dec, 2017 1 commit
  30. 15 Dec, 2017 1 commit
    • Greg Spencer's avatar
      Add a Dart script to prepare the flutter repo for packaging. (#13548) · f00c9023
      Greg Spencer authored
      This is the first step in a two-step process of moving the package preparation step from a recipe in chrome_infra to a dart script in the flutter repo. This will make it easier to make changes to the process. The second step is to change the infra recipe to call this script.
      
      In addition, I added a step to the packaging process to run flutter create for each type of template so that any pub dependencies of the templates get added to the cache that gets packaged (and thus users can run flutter create --offline and have it work).
      
      Note that the actual packaging into a "tar" or "zip" file now happens here, so a developer could actually run this script on their machine to create a package.
      f00c9023