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
14 changes: 13 additions & 1 deletion .github/workflows/pr.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -90,7 +90,19 @@ jobs:
- name: Install Dependencies
run: |
sudo apt-get update
sudo apt-get install -y clang cmake ninja-build pkg-config libgtk-3-dev liblzma-dev libmpv-dev mpv libasound2-dev
sudo apt-get install -y clang cmake libgtk-3-dev unzip libasound2-dev gcc g++ autoconf automake \
debhelper glslang-dev ladspa-sdk xutils-dev libasound2-dev libarchive-dev libbluray-dev \
libdav1d-dev libdvdnav-dev libegl1-mesa-dev libepoxy-dev libfontconfig-dev libfreetype6-dev \
libfribidi-dev libgl1-mesa-dev libgbm-dev libgme-dev libgsm1-dev libharfbuzz-dev libjpeg-dev \
libbrotli-dev liblcms2-dev libmodplug-dev libmp3lame-dev libopenal-dev \
libopus-dev libopencore-amrnb-dev libopencore-amrwb-dev libpulse-dev librtmp-dev \
libsdl2-dev libsixel-dev libssh-dev libsoxr-dev libspeex-dev libtool \
libv4l-dev libva-dev libvdpau-dev libvorbis-dev libvo-amrwbenc-dev \
libunwind-dev libvpx-dev libwayland-dev libx11-dev libxext-dev libdrm-dev \
libxkbcommon-dev libxrandr-dev libxss-dev libxv-dev libxvidcore-dev \
linux-libc-dev nasm ninja-build pkg-config python3 python3-docutils wayland-protocols \
x11proto-core-dev zlib1g-dev libfdk-aac-dev libtheora-dev libwebp-dev \
unixodbc-dev libpq-dev libxxhash-dev libaom-dev libbs2b-dev libcaca-dev libcdio-paranoia-dev

- name: Enable Flutter Desktop
run: flutter config --enable-linux-desktop
Expand Down
18 changes: 16 additions & 2 deletions .github/workflows/publish_app_dev.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -197,7 +197,21 @@ jobs:
- name: Update apt-get
run: sudo apt-get update
- name: Install Dependencies
run: sudo apt-get install -y clang cmake ninja-build pkg-config libgtk-3-dev liblzma-dev libmpv-dev mpv libasound2-dev
run: |
sudo apt-get update
sudo apt-get install -y clang cmake libgtk-3-dev unzip libasound2-dev gcc g++ autoconf automake \
debhelper glslang-dev ladspa-sdk xutils-dev libasound2-dev libarchive-dev libbluray-dev \
libdav1d-dev libdvdnav-dev libegl1-mesa-dev libepoxy-dev libfontconfig-dev libfreetype6-dev \
libfribidi-dev libgl1-mesa-dev libgbm-dev libgme-dev libgsm1-dev libharfbuzz-dev libjpeg-dev \
libbrotli-dev liblcms2-dev libmodplug-dev libmp3lame-dev libopenal-dev \
libopus-dev libopencore-amrnb-dev libopencore-amrwb-dev libpulse-dev librtmp-dev \
libsdl2-dev libsixel-dev libssh-dev libsoxr-dev libspeex-dev libtool \
libv4l-dev libva-dev libvdpau-dev libvorbis-dev libvo-amrwbenc-dev \
libunwind-dev libvpx-dev libwayland-dev libx11-dev libxext-dev libdrm-dev \
libxkbcommon-dev libxrandr-dev libxss-dev libxv-dev libxvidcore-dev \
linux-libc-dev nasm ninja-build pkg-config python3 python3-docutils wayland-protocols \
x11proto-core-dev zlib1g-dev libfdk-aac-dev libtheora-dev libwebp-dev \
unixodbc-dev libpq-dev libxxhash-dev libaom-dev libbs2b-dev libcaca-dev libcdio-paranoia-dev
# 打开 Linux Desktop 支持
- name: Enable Flutter Desktop
run: flutter config --enable-linux-desktop
Expand Down Expand Up @@ -329,7 +343,7 @@ jobs:
--install-deps-from=flathub \
--ccache \
--disable-rofiles-fuse
flatpak build-bundle ${{ matrix.arch }} Slive-${{ matrix.arch }}.flatpak io.github.SlotSun.dart_simple_live
flatpak build-bundle ${{ matrix.arch }} Slive-${{ matrix.arch }}.flatpak io.github.SlotSun.Slive

# 上传 Flatpak 包至 Artifacts
- name: Upload linux flatpak to artifacts
Expand Down
18 changes: 16 additions & 2 deletions .github/workflows/publish_app_release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -122,7 +122,21 @@ jobs:
- name: Update apt-get
run: sudo apt-get update
- name: Install Dependencies
run: sudo apt-get install -y clang cmake ninja-build pkg-config libgtk-3-dev liblzma-dev libmpv-dev mpv libasound2-dev
run: |
sudo apt-get update
sudo apt-get install -y clang cmake libgtk-3-dev unzip libasound2-dev gcc g++ autoconf automake \
debhelper glslang-dev ladspa-sdk xutils-dev libasound2-dev libarchive-dev libbluray-dev \
libdav1d-dev libdvdnav-dev libegl1-mesa-dev libepoxy-dev libfontconfig-dev libfreetype6-dev \
libfribidi-dev libgl1-mesa-dev libgbm-dev libgme-dev libgsm1-dev libharfbuzz-dev libjpeg-dev \
libbrotli-dev liblcms2-dev libmodplug-dev libmp3lame-dev libopenal-dev \
libopus-dev libopencore-amrnb-dev libopencore-amrwb-dev libpulse-dev librtmp-dev \
libsdl2-dev libsixel-dev libssh-dev libsoxr-dev libspeex-dev libtool \
libv4l-dev libva-dev libvdpau-dev libvorbis-dev libvo-amrwbenc-dev \
libunwind-dev libvpx-dev libwayland-dev libx11-dev libxext-dev libdrm-dev \
libxkbcommon-dev libxrandr-dev libxss-dev libxv-dev libxvidcore-dev \
linux-libc-dev nasm ninja-build pkg-config python3 python3-docutils wayland-protocols \
x11proto-core-dev zlib1g-dev libfdk-aac-dev libtheora-dev libwebp-dev \
unixodbc-dev libpq-dev libxxhash-dev libaom-dev libbs2b-dev libcaca-dev libcdio-paranoia-dev
# 打开 Linux Desktop 支持
- name: Enable Flutter Desktop
run: flutter config --enable-linux-desktop
Expand Down Expand Up @@ -297,7 +311,7 @@ jobs:
--install-deps-from=flathub \
--ccache \
--disable-rofiles-fuse
flatpak build-bundle ${{ matrix.arch }} Slive-${{ matrix.arch }}.flatpak io.github.SlotSun.dart_simple_live
flatpak build-bundle ${{ matrix.arch }} Slive-${{ matrix.arch }}.flatpak io.github.SlotSun.Slive

# 上传 Flatpak 包至 Artifacts
- name: Upload linux flatpak to artifacts
Expand Down
2 changes: 1 addition & 1 deletion assets/update-linux-metainfo.dart
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ void main() {
final projectRoot = Directory.current.path;
final jsonPath = '$projectRoot/assets/app_version.json';
final targetPath =
'$projectRoot/simple_live_app/assets/io.github.SlotSun.dart_simple_live.metainfo.xml';
'$projectRoot/simple_live_app/assets/io.github.SlotSun.Slive.metainfo.xml';

final jsonFile = File(jsonPath);
if (!jsonFile.existsSync()) {
Expand Down
10 changes: 5 additions & 5 deletions flatpak/flatpak-manifest.yaml
Original file line number Diff line number Diff line change
@@ -1,10 +1,10 @@
app-id: io.github.SlotSun.dart_simple_live
app-id: io.github.SlotSun.Slive
runtime: org.freedesktop.Platform
runtime-version: '25.08'
sdk: org.freedesktop.Sdk
sdk-extensions:
- org.freedesktop.Sdk.Extension.llvm21
command: Slive
command: io.github.SlotSun.Slive
finish-args:
- --share=ipc
- --socket=fallback-x11
Expand Down Expand Up @@ -47,7 +47,7 @@ modules:
url: https://static.rust-lang.org/rustup/dist/aarch64-unknown-linux-gnu/rustup-init
sha256: e3853c5a252fca15252d07cb23a1bdd9377a8c6f3efa01531109281ae47f841c

- name: dart_simple_live
- name: Slive
buildsystem: simple
build-options:
build-args:
Expand All @@ -59,12 +59,12 @@ modules:
aarch64:
env:
BUNDLE_PATH: simple_live_app/build/linux/arm64/release/bundle
append-path: /var/lib/rustup/bin:/usr/lib/sdk/llvm21/bin:/run/build/dart_simple_live/flutter/bin
append-path: /var/lib/rustup/bin:/usr/lib/sdk/llvm21/bin:/run/build/Slive/flutter/bin
prepend-ld-library-path: /usr/lib/sdk/llvm21/lib
env:
RUSTUP_HOME: /var/lib/rustup
CARGO_HOME: /var/lib/rustup
PUB_CACHE: /run/build/dart_simple_live/.pub-cache
PUB_CACHE: /run/build/Slive/.pub-cache
build-commands:
- cd simple_live_app && flutter build linux --release
- install -dvm755 ${FLATPAK_DEST}/bin
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,8 @@
Type=Application
Name=Slive
GenericName=Livestream Player
Icon=io.github.SlotSun.dart_simple_live
Exec=Slive %U
Icon=io.github.SlotSun.Slive
Exec=io.github.SlotSun.Slive %U
Categories=AudioVideo;Audio;Video;Network
Keywords=Livestream;Video
StartupNotify=true
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
<?xml version="1.0" encoding="UTF-8"?>
<component type="desktop">
<id>io.github.SlotSun.dart_simple_live</id>
<launchable type="desktop-id">io.github.SlotSun.dart_simple_live.desktop</launchable>
<id>io.github.SlotSun.Slive</id>
<launchable type="desktop-id">io.github.SlotSun.Slive.desktop</launchable>
<name>Slive</name>
<developer id="io.github.slotsun">
<name>SlotSun</name>
Expand Down
6 changes: 3 additions & 3 deletions simple_live_app/linux/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -4,10 +4,10 @@ project(runner LANGUAGES CXX)

# The name of the executable created for the application. Change this to change
# the on-disk name of your application.
set(BINARY_NAME "Slive")
set(BINARY_NAME "io.github.SlotSun.Slive")
# The unique GTK application identifier for this application. See:
# https://wiki.gnome.org/HowDoI/ChooseApplicationID
set(APPLICATION_ID "io.github.SlotSun.dart_simple_live")
set(APPLICATION_ID "io.github.SlotSun.Slive")

# Explicitly opt in to modern CMake behaviors to avoid warnings with recent
# versions of CMake.
Expand Down Expand Up @@ -40,7 +40,7 @@ endif()
# default. In most cases, you should add new options to specific targets instead
# of modifying this function.
function(APPLY_STANDARD_SETTINGS TARGET)
target_compile_features(${TARGET} PUBLIC cxx_std_14)
target_compile_features(${TARGET} PUBLIC cxx_std_17)
target_compile_options(${TARGET} PRIVATE -Wall -Werror)
target_compile_options(${TARGET} PRIVATE "$<$<NOT:$<CONFIG:Debug>>:-O3>")
target_compile_definitions(${TARGET} PRIVATE "$<$<NOT:$<CONFIG:Debug>>:NDEBUG>")
Expand Down
6 changes: 3 additions & 3 deletions simple_live_app/linux/packaging/aur/slive.desktop
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
[Desktop Entry]
Name=Slive
Exec=Slive
Icon=io.github.SlotSun.dart_simple_live
Exec=io.github.SlotSun.Slive
Icon=io.github.SlotSun.Slive
Comment=Slive is a lightweight and user-friendly application for watching live streams across multiple platforms, offering a seamless watching experience with support for popular streaming services.
Comment[zh_CN]=Slive 是一个轻量且用户友好的应用程序,可跨多个平台观看直播流,提供无缝的观看体验,并支持流行的流媒体服务。
Type=Application
Terminal=false
Categories=Video;AudioVideo;Player;
Categories=Video;AudioVideo;Player;
5 changes: 1 addition & 4 deletions simple_live_app/linux/packaging/deb/make_config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,4 @@ categories:

startup_notify: true

dependencies:
- libmpv2

metainfo: assets/io.github.SlotSun.dart_simple_live.metainfo.xml
metainfo: assets/io.github.SlotSun.Slive.metainfo.xml
9 changes: 9 additions & 0 deletions simple_live_app/linux/runner/my_application.cc
Original file line number Diff line number Diff line change
@@ -1,3 +1,7 @@
#include <filesystem>
using namespace std;
using namespace std::filesystem;

#include "my_application.h"

#include <flutter_linux/flutter_linux.h>
Expand Down Expand Up @@ -36,6 +40,11 @@ static void my_application_activate(GApplication* application) {
GtkWindow* window =
GTK_WINDOW(gtk_application_window_new(GTK_APPLICATION(application)));

const string iconFilename = "assets/images/logo.png";
path execDir = canonical(read_symlink("/proc/self/exe")).parent_path();
path iconPath = execDir / "data/flutter_assets" / iconFilename;
gtk_window_set_icon_from_file(GTK_WINDOW(window), iconPath.c_str(), NULL);

// Use a header bar when running in GNOME as this is the common style used
// by applications and is the setup most users will be using (e.g. Ubuntu
// desktop).
Expand Down
Empty file modified simple_live_app/rust_builder/cargokit/run_build_tool.sh
100644 → 100755
Empty file.
Loading