Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

add: grayjay #2934

Open
wants to merge 2 commits into
base: frawhide
Choose a base branch
from
Open
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
5 changes: 5 additions & 0 deletions anda/apps/grayjay/anda.hcl
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
project pkg {
rpm {
spec = "grayjay.spec"
}
}
58 changes: 58 additions & 0 deletions anda/apps/grayjay/grayjay.spec
Original file line number Diff line number Diff line change
@@ -0,0 +1,58 @@
%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
%dnl Source0: https://github.com/futo-org/Grayjay.Desktop/archive/refs/tags/%version.tar.gz
BuildRequires: npm dotnet-host
BuildRequires: anda-srpm-macros
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
%git_clone https://github.com/futo-org/Grayjay.Desktop

%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 change: 1 addition & 0 deletions anda/apps/grayjay/update.rhai
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
rpm.version(gh_tag("futo-org/Grayjay.Desktop"));
Loading