Compare commits

...

9 Commits

Author SHA1 Message Date
madomado db5891516e sdk8?
Signed-off-by: madomado <madonuko@outlook.com>
2025-03-02 19:20:43 +08:00
madomado 66d3138751 Update grayjay.spec
Signed-off-by: madomado <madonuko@outlook.com>
2025-03-02 19:13:49 +08:00
madomado 24d3b3023f dotnet-hostfxr-9.0
Signed-off-by: madomado <madonuko@outlook.com>
2025-03-02 19:00:28 +08:00
madomado f06b1389ff Update grayjay.spec
Signed-off-by: madomado <madonuko@outlook.com>
2025-03-02 18:57:10 +08:00
madomado 481f79f0c6 Update grayjay.spec
Signed-off-by: madomado <madonuko@outlook.com>
2025-03-02 18:53:51 +08:00
madomado 5d58d6fc93 this?
Signed-off-by: madomado <madonuko@outlook.com>
2025-03-02 18:33:09 +08:00
madomado 480ef1b0a9 Merge branch 'frawhide' into mado/w/grayjay 2025-03-02 00:36:33 +08:00
madomado 066d126ee4 Update grayjay.speca
Signed-off-by: madomado <madonuko@outlook.com>
2025-01-12 22:15:53 +08:00
madonuko 6acdd17115 add: grayjay 2025-01-12 21:43:42 +08:00
3 changed files with 67 additions and 0 deletions
+5
View File
@@ -0,0 +1,5 @@
project pkg {
rpm {
spec = "grayjay.spec"
}
}
+61
View File
@@ -0,0 +1,61 @@
%define __strip /bin/true
%define debug_package %nil
Name: grayjay
Version: 5
Release: 1%?dist
Summary: Watch content on your own terms, ensuring you retain full ownership and control over what you watch
License: SFL-1.1
URL: https://grayjay.app/desktop
Source0: https://github.com/futo-org/Grayjay.Desktop/archive/refs/tags/%version.tar.gz
BuildRequires: npm dotnet-host dotnet-hostfxr-8.0 dotnet-sdk-8.0
BuildRequires: anda-srpm-macros git-core
BuildRequires: desktop-file-utils
%description
Grayjay is a multi-platform media application that allows you to watch content from multiple platforms in a single application. Using an extendable plugin system developers can make new integrations with additional platforms. Plugins are cross-compatible between Android and Desktop.
%prep
%autosetup -n Grayjay.Desktop-%version
git init
git remote add origin https://github.com/futo-org/Grayjay.Desktop
git submodule update --init --recursive #{?_smp_mflags}
%build
pushd Grayjay.Desktop.Web
npm i
rm -rf dist
npm run build
popd
pushd Grayjay.Desktop.CEF
rm -rf bin
dotnet publish -c Release
popd
# Copy wwwroot
dir=$(ls Grayjay.Desktop.CEF/bin/Release/net8.0)
mkdir -p Grayjay.Desktop.CEF/bin/Release/net8.0/$dir/publish/wwwroot
cp -r Grayjay.Desktop.Web/dist Grayjay.Desktop.CEF/bin/Release/net8.0/$dir/publish/wwwroot/web
gendesk \
--name=Grayjay \
--pkgname=%name \
--pkgdesc='%summary' \
--exec=%_bindir/grayjay \
--icon=%_datadir/grayjay/logo.ico
%install
mkdir -p %buildroot%_datadir/grayjay %buildroot%_bindir
cp -r Grayjay.Desktop.CEF/bin/Release/net8.0/*/publish/* %buildroot%_datadir/grayjay/
ln -s %_datadir/Grayjay %buildroot%_bindir/grayjay
install -Dm644 %buildroot%_datadir/grayjay/logo.ico %buildroot%_datadir/pixmaps/grayjay.ico
install -Dm644 grayjay.desktop -t %buildroot%_datadir/applications
%files
%doc README.md
%license LICENSE.md
%_bindir/grayjay
%_datadir/applications/grayjay.desktop
%_datadir/grayjay/
%_iconsdir/hicolor/256x256/apps/grayjay.ico
+1
View File
@@ -0,0 +1 @@
rpm.version(gh_tag("futo-org/Grayjay.Desktop"));