Feat: dev build default use dev web version

pull/8/head
zijiren233 1 year ago
parent 4a3b0b2025
commit 991e0da8fc

@ -116,7 +116,11 @@ function FixArgs() {
exit 1
fi
if [ ! "$WEB_VERSION" ]; then
GetLatestWebVersion "synctv-org/synctv-web"
if [ "$VERSION" == "dev" ]; then
WEB_VERSION="dev"
else
GetLatestWebVersion "synctv-org/synctv-web"
fi
fi
LDFLAGS="$LDFLAGS \
-X 'github.com/synctv-org/synctv/internal/conf.Version=$VERSION' \

@ -6,7 +6,7 @@ type RtmpConfig struct {
CustomPublishHost string `yaml:"custom_publish_host" lc:"publish host (default use http header host)" env:"RTMP_CUSTOM_PUBLISH_HOST"`
RtmpPlayer bool `yaml:"rtmp_player" lc:"enable rtmp player (default: false)" env:"RTMP_PLAYER"`
HlsPlayer bool `yaml:"hls_player" lc:"enable hls player (default: false)" env:"HLS_PLAYER"`
HlsPlayer bool `yaml:"hls_player" lc:"enable hls player (default: true)" env:"HLS_PLAYER"`
}
func DefaultRtmpConfig() RtmpConfig {
@ -15,6 +15,6 @@ func DefaultRtmpConfig() RtmpConfig {
Port: 0,
CustomPublishHost: "",
RtmpPlayer: false,
HlsPlayer: false,
HlsPlayer: true,
}
}

Loading…
Cancel
Save