From 12baafbd9d1a72be80f795c1ccc3de2ca3480e92 Mon Sep 17 00:00:00 2001 From: wiiznokes <78230769+wiiznokes@users.noreply.github.com> Date: Jul 19 2025 00:37:38 +0000 Subject: fix player build --- diff --git a/justfile b/justfile index 0239ba4..9b2f676 100644 --- a/justfile +++ b/justfile @@ -1,6 +1,6 @@ -set export +set export := true -NAME := 'cosmic-applets' +NAME := 'cosmic-player' TAG := 'nightly' all *FLAGS: clean (init FLAGS) sources spec build @@ -9,26 +9,27 @@ all-srpm *FLAGS: clean (init FLAGS) sources spec build-srpm # Requires python3 init *FLAGS: - python3 ../scripts/cosmic-packaging-bootstrap.py {{NAME}} ../rpms/{{NAME}} --cwd . --tag {{TAG}} {{FLAGS}} + python3 ../scripts/cosmic-packaging-bootstrap.py {{ NAME }} ../rpms/{{ NAME }} --cwd . --tag {{ TAG }} {{ FLAGS }} # Make sure rpm tree is setup (rpmdev-setuptree) + # Install rpmdevtools sources: cp vendor-* ~/rpmbuild/SOURCES/ cp *.patch ~/rpmbuild/SOURCES/ 2>/dev/null || true - spectool -g -R {{NAME}}.spec + spectool -g -R {{ NAME }}.spec spec: - cp {{NAME}}.spec ~/rpmbuild/SPECS/ + cp {{ NAME }}.spec ~/rpmbuild/SPECS/ build: - rpmbuild --undefine=_disable_source_fetch -bb ~/rpmbuild/SPECS/{{NAME}}.spec + rpmbuild --undefine=_disable_source_fetch -bb ~/rpmbuild/SPECS/{{ NAME }}.spec build-srpm: - rpmbuild -bs ~/rpmbuild/SPECS/{{NAME}}.spec + rpmbuild -bs ~/rpmbuild/SPECS/{{ NAME }}.spec fast-build: - rpmbuild -bb --short-circuit ~/rpmbuild/SPECS/{{NAME}}.spec + rpmbuild -bb --short-circuit ~/rpmbuild/SPECS/{{ NAME }}.spec clean: rm -rf ./* @@ -39,12 +40,12 @@ clean-rpmbuild-dir: rm -rf ~/rpmbuild rpmdev-setuptree - clone-upstream: - rm -rf upstream/{{NAME}} - git clone https://src.fedoraproject.org/rpms/{{NAME}}.git upstream/{{NAME}} + rm -rf upstream/{{ NAME }} + git clone https://src.fedoraproject.org/rpms/{{ NAME }}.git upstream/{{ NAME }} create-patch commit_msg patch_name: - git -C upstream/{{NAME}} add . - git -C upstream/{{NAME}} commit -m "{{commit_msg}}" - git -C upstream/{{NAME}} format-patch -1 --stdout > patches/{{NAME}}/{{patch_name}}.patch \ No newline at end of file + git -C upstream/{{ NAME }} add . + git -C upstream/{{ NAME }} commit -m "{{ commit_msg }}" + mkdir -p patches/{{ NAME }} + git -C upstream/{{ NAME }} format-patch -1 --stdout > patches/{{ NAME }}/{{ patch_name }}.patch diff --git a/patches/cosmic-player/thumbnailers-file.patch b/patches/cosmic-player/thumbnailers-file.patch new file mode 100644 index 0000000..2060625 --- /dev/null +++ b/patches/cosmic-player/thumbnailers-file.patch @@ -0,0 +1,24 @@ +From d30227ca56a47283f7a27c9dd6b2603c18fc280b Mon Sep 17 00:00:00 2001 +From: wiiznokes <78230769+wiiznokes@users.noreply.github.com> +Date: Sat, 19 Jul 2025 02:33:53 +0200 +Subject: [PATCH] add thumbailer for cosmic player + +--- + cosmic-player.spec | 1 + + 1 file changed, 1 insertion(+) + +diff --git a/cosmic-player.spec b/cosmic-player.spec +index 20e935d..5ad4964 100644 +--- a/cosmic-player.spec ++++ b/cosmic-player.spec +@@ -110,6 +110,7 @@ export VERGEN_GIT_SHA="%{commit}" + %{_datadir}/applications/com.system76.CosmicPlayer.desktop + %{_metainfodir}/com.system76.CosmicPlayer.metainfo.xml + %{_datadir}/icons/hicolor/*/apps/com.system76.CosmicPlayer.svg ++%{_datadir}/thumbnailers/com.system76.CosmicPlayer.thumbnailer + + %changelog + %autochangelog +-- +2.50.1 +