Mailspring/build/resources/linux/redhat/nylas.spec.in
mbilker c200306eeb fix(redhat-spec): copy 512x512 icon to /usr/local/share/nylas/resources/app/nylas.png
The icon build/resources/nylas.png is exactly the same as build/resources/linux/icons/512.png
Not confident that the spec script is run from base N1 directory to use the nylas.png in the spec file
2015-11-27 16:20:04 -05:00

43 lines
1.5 KiB
RPMSpec

Name: <%= name %>
Version: <%= version %>
Release: 0.1%{?dist}
Summary: Nylas is an Email OS
License: Proprietary
URL: https://nylas.com/
AutoReqProv: no # Avoid libchromiumcontent.so missing dependency
%description
<%= description %>
%install
mkdir -p %{buildroot}/usr/local/share/nylas
cp -r /tmp/nylas-build/Nylas/* %{buildroot}/usr/local/share/nylas
mkdir -p %{buildroot}/usr/local/bin/
ln -sf /usr/local/share/nylas/resources/app/apm/node_modules/.bin/apm %{buildroot}/usr/local/bin/apm
cp N1.sh %{buildroot}/usr/local/bin/nylas
chmod 755 %{buildroot}/usr/local/bin/nylas
mkdir -p %{buildroot}/usr/local/share/applications/
mv nylas.desktop %{buildroot}/usr/local/share/applications/
cp /tmp/nylas-build/icons/512.png %{buildroot}/usr/local/share/nylas/resources/app/nylas.png
for s in 16 32 64 128 256 512; do
mkdir -p %{buildroot}/usr/local/share/icons/hicolor/${s}x${s}/apps
cp -p /tmp/nylas-build/icons/${s}.png \
%{buildroot}/usr/local/share/icons/hicolor/${s}x${s}/apps/nylas.png
done
%files
/usr/local/bin/nylas
/usr/local/bin/apm
/usr/local/share/nylas/
/usr/local/share/applications/nylas.desktop
/usr/local/share/icons/hicolor/16x16/apps/nylas.png
/usr/local/share/icons/hicolor/32x32/apps/nylas.png
/usr/local/share/icons/hicolor/64x64/apps/nylas.png
/usr/local/share/icons/hicolor/128x128/apps/nylas.png
/usr/local/share/icons/hicolor/256x256/apps/nylas.png
/usr/local/share/icons/hicolor/512x512/apps/nylas.png