Skip to content

Commit

Permalink
flutter buildpack: use _ for channel choice
Browse files Browse the repository at this point in the history
  • Loading branch information
nictuku committed Jul 2, 2019
1 parent 4187e19 commit dd5f6b2
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions buildpacks/build_flutter.go
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ import (
. "github.com/yourbase/yb/types"
)

//https://archive.apache.org/dist/flutter/flutter-3/3.3.3/binaries/apache-flutter-3.3.3-bin.tar.gz
// https://archive.apache.org/dist/flutter/flutter-3/3.3.3/binaries/apache-flutter-3.3.3-bin.tar.gz
var FLUTTER_DIST_MIRROR = "https://storage.googleapis.com/flutter_infra/releases/{{.Channel}}/{{.OS}}/flutter_{{.OS}}_v{{.Version}}-{{.Channel}}.{{.Extension}}"

type FlutterBuildTool struct {
Expand Down Expand Up @@ -47,7 +47,7 @@ func (bt FlutterBuildTool) DownloadUrl() string {
}

version := bt.Version()
parts := strings.Split(version, "/")
parts := strings.Split(version, "_")
if len(parts) > 2 {
version = parts[0]
} else if len(parts) == 2 {
Expand Down

0 comments on commit dd5f6b2

Please sign in to comment.