Skip to content

armgit / Piik

Public Imported from GitHub
0

Free, open-source screen sharing for private live streams with friends. Watch together in a browser or self-host Piik. 免费开源的私密屏幕共享,支持游戏直播、一起看电影与自部署。

621 B
Raw Blame
// Package buildinfo owns the build identity shared by App entry points.
package buildinfo

import (
	"runtime"
	"strings"

	"golang.org/x/mod/semver"
)

// Packagers inject these values into desktop and mobile builds.
var Release = "development"
var Revision = "development"

func PackageTarget() string {
	if runtime.GOOS == "android" {
		return "android-universal"
	}
	return runtime.GOOS + "-" + runtime.GOARCH
}

func Version() string {
	version := strings.TrimSpace(Release)
	if version != "" && semver.Canonical(version) == version && semver.Prerelease(version) == "" {
		return version
	}
	return "development"
}