github.com/supabase/cli@v1.168.1/internal/utils/deno_generic.go (about)

     1  //go:build !darwin
     2  
     3  package utils
     4  
     5  import (
     6  	"runtime"
     7  
     8  	"github.com/go-errors/errors"
     9  )
    10  
    11  func getDenoAssetFileName() (string, error) {
    12  	if runtime.GOOS == "linux" && runtime.GOARCH == "amd64" {
    13  		return "deno-x86_64-unknown-linux-gnu.zip", nil
    14  	} else if runtime.GOOS == "linux" && runtime.GOARCH == "arm64" {
    15  		// TODO: version pin to official release once available https://github.com/denoland/deno/issues/1846
    16  		return "deno-linux-arm64.zip", nil
    17  	} else if runtime.GOOS == "windows" && runtime.GOARCH == "amd64" {
    18  		return "deno-x86_64-pc-windows-msvc.zip", nil
    19  	} else {
    20  		return "", errors.New("Platform " + runtime.GOOS + "/" + runtime.GOARCH + " is currently unsupported for Functions.")
    21  	}
    22  }