Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 4 additions & 4 deletions .github/workflows/build-android.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,19 +13,19 @@ jobs:
- name: Set env
run: if grep -Fxq "devel" cmd/go2tv/version.txt;then echo "GO2TV_VERSION=$(cat cmd/go2tv/version.txt)";else echo "GO2TV_VERSION=v$(cat cmd/go2tv/version.txt)";fi >> $GITHUB_ENV

- uses: WillAbides/setup-go-faster@v1.11.0
- uses: WillAbides/setup-go-faster@v1.14.0
id: setup-go-faster
with:
go-version: "*"

- name: Install fyne
run: go install fyne.io/fyne/v2/cmd/fyne@latest
run: go install fyne.io/tools/cmd/fyne@latest

- name: Download Android SDK
run: wget https://dl.google.com/android/repository/android-ndk-r23b-linux.zip && unzip android-ndk-r23b-linux.zip
run: wget https://dl.google.com/android/repository/android-ndk-r29-linux.zip && unzip android-ndk-r29-linux.zip

- name: Package (Android)
run: APATH=$(readlink -e android-ndk-r23b) && cd cmd/go2tv && GO386='softfloat' ANDROID_NDK_HOME=$APATH fyne package -os android -name Go2TV -appID app.go2tv.go2tv -icon ../../assets/go2tv-icon-android.png && mv Go2TV.apk ../../
run: APATH=$(readlink -e android-ndk-r29) && cd cmd/go2tv && GO386='softfloat' ANDROID_NDK_HOME=$APATH fyne package --os android --name Go2TV --app-id app.go2tv.go2tv --icon ../../assets/go2tv-icon-android.png && mv Go2TV.apk ../../

- uses: actions/upload-artifact@v4
with:
Expand Down
10 changes: 6 additions & 4 deletions .github/workflows/build-arm.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ on: [push]

jobs:
build:
runs-on: ubuntu-22.04
runs-on: ubuntu-24.04
steps:
- uses: actions/checkout@v3

Expand All @@ -19,12 +19,14 @@ jobs:
base_image: raspios_lite:latest
commands: |
cd /
df -h
sudo apt update
sudo apt install -y xorg-dev
sudo apt clean
wget -nv https://go.dev/dl/go1.23.4.linux-armv6l.tar.gz
tar -xzf go1.23.4.linux-armv6l.tar.gz
rm go1.23.4.linux-armv6l.tar.gz
sudo rm -rf /var/lib/apt/lists/*
wget -nv https://go.dev/dl/go1.25.1.linux-armv6l.tar.gz
tar -xzf go1.25.1.linux-armv6l.tar.gz
rm go1.25.1.linux-armv6l.tar.gz
export GOROOT=/go
cd /go2tv_dir
/go/bin/go build -tags migrated_fynedo -ldflags "-s -w" -o go2tv cmd/go2tv/go2tv.go
Expand Down
35 changes: 15 additions & 20 deletions .github/workflows/build-arm64.yml
Original file line number Diff line number Diff line change
@@ -1,33 +1,28 @@
name: Build for ARMv8 (64-bit)
name: Build for ARM64
on: [push]

jobs:
build:
runs-on: ubuntu-22.04
runs-on: ubuntu-24.04-arm
strategy:
fail-fast: false

steps:
- uses: actions/checkout@v3

- name: Set env
run: if grep -Fxq "devel" cmd/go2tv/version.txt;then echo "GO2TV_VERSION=$(cat cmd/go2tv/version.txt)";else echo "GO2TV_VERSION=v$(cat cmd/go2tv/version.txt)";fi >> $GITHUB_ENV

- uses: pguyot/arm-runner-action@v2
id: main_image
- uses: WillAbides/[email protected]
id: setup-go-faster
with:
copy_repository_path: /go2tv_dir
copy_artifact_path: go2tv
image_additional_mb: 4096
base_image: raspios_lite_arm64:latest
commands: |
cd /
sudo apt update
sudo apt install -y xorg-dev
sudo apt clean
wget -nv https://go.dev/dl/go1.23.4.linux-arm64.tar.gz
tar -xzf go1.23.4.linux-arm64.tar.gz
rm go1.23.4.linux-arm64.tar.gz
export GOROOT=/go
cd /go2tv_dir
/go/bin/go build -tags migrated_fynedo -ldflags "-s -w" -o go2tv cmd/go2tv/go2tv.go
go-version: "*"

- name: Get dependencies
run: sudo apt update && sudo apt install xorg-dev

- name: Package (Linux)
run: go build -tags migrated_fynedo -ldflags "-s -w" -o go2tv cmd/go2tv/go2tv.go

- uses: actions/upload-artifact@v4
with:
Expand All @@ -36,4 +31,4 @@ jobs:
LICENSE
README.md
go2tv
retention-days: 2
retention-days: 2
4 changes: 2 additions & 2 deletions .github/workflows/build-linux.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ on: [push]

jobs:
build:
runs-on: ubuntu-22.04
runs-on: ubuntu-24.04
strategy:
fail-fast: false

Expand All @@ -13,7 +13,7 @@ jobs:
- name: Set env
run: if grep -Fxq "devel" cmd/go2tv/version.txt;then echo "GO2TV_VERSION=$(cat cmd/go2tv/version.txt)";else echo "GO2TV_VERSION=v$(cat cmd/go2tv/version.txt)";fi >> $GITHUB_ENV

- uses: WillAbides/setup-go-faster@v1.11.0
- uses: WillAbides/setup-go-faster@v1.14.0
id: setup-go-faster
with:
go-version: "*"
Expand Down
6 changes: 3 additions & 3 deletions .github/workflows/build-mac-intel.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,16 +13,16 @@ jobs:
- name: Set env
run: if grep -Fxq "devel" cmd/go2tv/version.txt;then echo "GO2TV_VERSION=$(cat cmd/go2tv/version.txt)";else echo "GO2TV_VERSION=v$(cat cmd/go2tv/version.txt)";fi >> $GITHUB_ENV

- uses: WillAbides/setup-go-faster@v1.11.0
- uses: WillAbides/setup-go-faster@v1.14.0
id: setup-go-faster
with:
go-version: "*"

- name: Install fyne
run: go install fyne.io/fyne/v2/cmd/fyne@latest
run: go install fyne.io/tools/cmd/fyne@latest

- name: Package (macOS)
run: cd cmd/go2tv && fyne package --release -os darwin -icon ../../assets/go2tv-icon.png && mv go2tv.app ../../
run: cd cmd/go2tv && fyne package --release --os darwin --icon ../../assets/go2tv-icon.png && mv go2tv.app ../../

- uses: actions/upload-artifact@v4
with:
Expand Down
4 changes: 2 additions & 2 deletions .github/workflows/build-mac.yml
Original file line number Diff line number Diff line change
Expand Up @@ -19,10 +19,10 @@ jobs:
go-version: "*"

- name: Install fyne
run: go install fyne.io/fyne/v2/cmd/fyne@latest
run: go install fyne.io/tools/cmd/fyne@latest

- name: Package (macOS)
run: cd cmd/go2tv && GOARCH=arm64 fyne package --release -os darwin -icon ../../assets/go2tv-icon.png && mv go2tv.app ../../
run: cd cmd/go2tv && GOARCH=arm64 fyne package --release --os darwin --icon ../../assets/go2tv-icon.png && mv go2tv.app ../../

- uses: actions/upload-artifact@v4
with:
Expand Down
6 changes: 3 additions & 3 deletions .github/workflows/build-windows.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ jobs:
- name: Set env
run: if grep -Fxq "devel" cmd/go2tv/version.txt;then echo "GO2TV_VERSION=$(cat cmd/go2tv/version.txt)";else echo "GO2TV_VERSION=v$(cat cmd/go2tv/version.txt)";fi >> $GITHUB_ENV

- uses: WillAbides/setup-go-faster@v1.11.0
- uses: WillAbides/setup-go-faster@v1.14.0
id: setup-go-faster
with:
go-version: "*"
Expand All @@ -22,10 +22,10 @@ jobs:
run: sudo apt update && sudo apt install gcc xorg-dev gcc-mingw-w64

- name: Install fyne
run: go install fyne.io/fyne/v2/cmd/fyne@latest
run: go install fyne.io/tools/cmd/fyne@latest

- name: Package (Windows)
run: cd cmd/go2tv && CGO_ENABLED=1 CC=x86_64-w64-mingw32-gcc CXX=x86_64-w64-mingw32-g++ fyne package --release --appID app.go2tv.go2tv -os windows -icon ../../assets/go2tv-icon.png && mv go2tv.exe ../../
run: cd cmd/go2tv && CGO_ENABLED=1 CC=x86_64-w64-mingw32-gcc CXX=x86_64-w64-mingw32-g++ fyne package --release --app-id app.go2tv.go2tv --os windows --icon ../../assets/go2tv-icon.png && mv go2tv.exe ../../

- uses: actions/upload-artifact@v4
with:
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/go.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ jobs:
steps:
- uses: actions/checkout@v3

- uses: WillAbides/setup-go-faster@v1.11.0
- uses: WillAbides/setup-go-faster@v1.14.0
id: setup-go-faster
with:
go-version: "*"
Expand Down
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1 +1,2 @@
build
.vscode
2 changes: 1 addition & 1 deletion Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ FROM golang:1.23
ARG DEBIAN_FRONTEND=noninteractive
RUN \
apt-get update && \
apt-get install -y xorg-dev && \
apt-get install --no-install-recommends -y xorg-dev && \
apt-get clean && \
rm -rf /var/lib/apt/lists/*

Expand Down
3 changes: 2 additions & 1 deletion Makefile
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
LDFLAGS="-s -w"
LDFLAGS_WINDOWS="-s -w -H=windowsgui"
TAGS?=migrated_fynedo

BUILD_DIR=build
Expand All @@ -23,7 +24,7 @@ build: clean
go build -tags "$(TAGS)" -trimpath -ldflags $(LDFLAGS) -o $(BIN) cmd/go2tv/go2tv.go

windows: clean
env CGO_ENABLED=1 CC=x86_64-w64-mingw32-gcc CXX=x86_64-w64-mingw32-g++ GOOS=windows GOARCH=amd64 go build -trimpath -ldflags $(LDFLAGS) -o $(BIN_WIN) cmd/go2tv/go2tv.go
env CGO_ENABLED=1 CC=x86_64-w64-mingw32-gcc CXX=x86_64-w64-mingw32-g++ GOOS=windows GOARCH=amd64 go build -tags "$(TAGS)" -trimpath -ldflags $(LDFLAGS_WINDOWS) -o $(BIN_WIN) cmd/go2tv/go2tv.go

install: build
mkdir -vp /usr/local/bin/
Expand Down
14 changes: 14 additions & 0 deletions assets/linux/app.go2tv.go2tv.appdata.xml
Original file line number Diff line number Diff line change
Expand Up @@ -47,6 +47,20 @@
</branding>

<releases>
<release version="1.19.0" date="2025-10-13" type="stable">
<description>
<ul>
<li>Added "Same File Types Only" setting for auto-play functionality.</li>
<li>Fixed a compatibility issue with some old model Samsung TV.</li>
<li>Upgraded Go from 1.23.3 to 1.25.</li>
<li>Updated 15+ dependencies to latest versions.</li>
<li>Resolved FFmpeg video scaling issues.</li>
<li>Increased size of the subtitles when transcoding.</li>
<li>Added new translations for Chinese.</li>
</ul>
</description>
<url type="details">https://github.com/alexballas/go2tv/releases/tag/v1.19.0</url>
</release>
<release version="1.18.1" date="2025-01-02" type="stable">
<description>
<ul>
Expand Down
10 changes: 6 additions & 4 deletions cmd/go2tv-lite/go2tv.go
Original file line number Diff line number Diff line change
Expand Up @@ -61,10 +61,12 @@ func main() {
}

func run() error {
var absMediaFile, mediaType string
var mediaFile any
var isSeek bool
var s *httphandlers.HTTPserver
var (
absMediaFile, mediaType string
mediaFile any
isSeek bool
s *httphandlers.HTTPserver
)

exitCTX, cancel := signal.NotifyContext(context.Background(), syscall.SIGINT, syscall.SIGTERM)
defer cancel()
Expand Down
2 changes: 1 addition & 1 deletion cmd/go2tv-lite/version.txt
Original file line number Diff line number Diff line change
@@ -1 +1 @@
devel
1.19.0
2 changes: 1 addition & 1 deletion cmd/go2tv/FyneApp.toml
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ Website = "https://go2tv.app"
Icon = "assets/go2tv-icon-desktop-512.png"
Name = "go2tv"
ID = "app.go2tv.go2tv"
Version = "1.18.1"
Version = "1.19.0"
Build = 1

[Migrations]
Expand Down
8 changes: 5 additions & 3 deletions cmd/go2tv/go2tv.go
Original file line number Diff line number Diff line change
Expand Up @@ -55,9 +55,11 @@ func main() {
}

func run() error {
var absMediaFile, mediaType string
var mediaFile any
var isSeek bool
var (
absMediaFile, mediaType string
mediaFile any
isSeek bool
)

exitCTX, cancel := signal.NotifyContext(context.Background(), syscall.SIGINT, syscall.SIGTERM)
defer cancel()
Expand Down
2 changes: 1 addition & 1 deletion cmd/go2tv/version.txt
Original file line number Diff line number Diff line change
@@ -1 +1 @@
devel
1.19.0
22 changes: 11 additions & 11 deletions go.mod
Original file line number Diff line number Diff line change
Expand Up @@ -3,31 +3,31 @@ module github.com/alexballas/go2tv
go 1.25

require (
fyne.io/fyne/v2 v2.6.3
fyne.io/fyne/v2 v2.7.0
github.com/alexballas/go-ssdp v0.0.3
github.com/gdamore/tcell/v2 v2.9.0
github.com/go-viper/mapstructure/v2 v2.4.0
github.com/h2non/filetype v1.1.3
github.com/hashicorp/go-retryablehttp v0.7.8
github.com/mattn/go-runewidth v0.0.16
github.com/mattn/go-runewidth v0.0.19
github.com/pkg/errors v0.9.1
github.com/rs/zerolog v1.34.0
github.com/saintfish/chardet v0.0.0-20230101081208-5e3ef4b5456d
github.com/skratchdot/open-golang v0.0.0-20200116055534-eef842397966
golang.org/x/sys v0.36.0
golang.org/x/time v0.13.0
golang.org/x/time v0.14.0
)

require (
fyne.io/systray v1.11.0 // indirect
fyne.io/systray v1.11.1-0.20250603113521-ca66a66d8b58 // indirect
github.com/BurntSushi/toml v1.5.0 // indirect
github.com/clipperhouse/uax29/v2 v2.2.0 // indirect
github.com/davecgh/go-spew v1.1.1 // indirect
github.com/fredbi/uri v1.1.1 // indirect
github.com/fsnotify/fsnotify v1.9.0 // indirect
github.com/fyne-io/gl-js v0.2.0 // indirect
github.com/fyne-io/glfw-js v0.3.0 // indirect
github.com/fyne-io/image v0.1.1 // indirect
github.com/fyne-io/oksvg v0.1.0 // indirect
github.com/fyne-io/oksvg v0.2.0 // indirect
github.com/gdamore/encoding v1.0.1 // indirect
github.com/go-gl/gl v0.0.0-20231021071112-07e5d0ea2e71 // indirect
github.com/go-gl/glfw/v3.3/glfw v0.0.0-20250301202403-da16c1255728 // indirect
Expand All @@ -46,15 +46,15 @@ require (
github.com/nfnt/resize v0.0.0-20180221191011-83c6a9932646 // indirect
github.com/nicksnyder/go-i18n/v2 v2.6.0 // indirect
github.com/pmezard/go-difflib v1.0.0 // indirect
github.com/rivo/uniseg v0.4.7 // indirect
github.com/rymdport/portal v0.4.2 // indirect
github.com/srwiley/oksvg v0.0.0-20221011165216-be6e8873101c // indirect
github.com/srwiley/rasterx v0.0.0-20220730225603-2ab79fcdd4ef // indirect
github.com/stretchr/testify v1.11.1 // indirect
github.com/yuin/goldmark v1.7.13 // indirect
golang.org/x/image v0.31.0 // indirect
golang.org/x/net v0.44.0 // indirect
golang.org/x/term v0.35.0 // indirect
golang.org/x/text v0.29.0 // indirect
golang.org/x/image v0.32.0 // indirect
golang.org/x/net v0.46.0 // indirect
golang.org/x/sys v0.37.0 // indirect
golang.org/x/term v0.36.0 // indirect
golang.org/x/text v0.30.0 // indirect
gopkg.in/yaml.v3 v3.0.1 // indirect
)
Loading