Skip to content

Commit

Permalink
Merge pull request #25 from fluentmoheshwar/master
Browse files Browse the repository at this point in the history
(chore) added desktop icon for linux and fixed some bugs
  • Loading branch information
nomandhoni-cs committed Apr 2, 2024
2 parents b4d1cd2 + a3257a9 commit 4816204
Show file tree
Hide file tree
Showing 3 changed files with 15 additions and 2 deletions.
6 changes: 6 additions & 0 deletions BlinkEye.desktop
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
[Desktop Entry]
Name=BlinkEye
Exec=/usr/bin/BlinkEye
Icon=/usr/share/icons/BlinkEye.png
Type=Application
Terminal=true
6 changes: 6 additions & 0 deletions BlinkEye_Fedora.spec
Original file line number Diff line number Diff line change
Expand Up @@ -12,13 +12,19 @@ Blink Eye is a minimalist eye care reminder app designed to reduce eye strain du
%install
rm -rf $RPM_BUILD_ROOT
mkdir -p $RPM_BUILD_ROOT/%{_bindir}
mkdir -p $RPM_BUILD_ROOT/%{_datadir}/icons
mkdir -p $RPM_BUILD_ROOT/%{_datadir}/applications/
cp dist/%{name} $RPM_BUILD_ROOT/%{_bindir}
cp %{name}.desktop $RPM_BUILD_ROOT/%{_datadir}/applications/
cp blink-eye-logo.png $RPM_BUILD_ROOT/%{_datadir}/icons/%{name}.png

%clean
rm -rf $RPM_BUILD_ROOT

%files
%{_bindir}/%{name}
%{_datadir}/applications/%{name}.desktop
%{_datadir}/icons/%{name}.png
%license LICENSE.txt

%changelog
Expand Down
5 changes: 3 additions & 2 deletions build_fedora.sh
Original file line number Diff line number Diff line change
Expand Up @@ -8,10 +8,11 @@ pip install wheel
pip install -r REQUIREMENTS.txt
pip install pyinstaller
echo Building the executable...
pyinstaller --name BlinkEye --onefile --windowed --hidden-import plyer.platforms.linux.notification blink-eye.py
pyinstaller --name BlinkEye --onefile --windowed --hidden-import plyer.platforms.linux.notification --add-data "*.png:." blink-eye.py
echo Building the installer...
rpmdev-setuptree
cp -r ./* ~/rpmbuild/BUILD
rpmbuild -bb ./BlinkEye_Fedora.spec
rm -rf ~/rpmbuild/BUILD
mv ~/rpmbuild/RPMS/x86_64/BlinkEye-$ver-1.fc39.x86_64.rpm ./ExecutableFile/BlinkEye-$ver-1.fc39.x86_64.rpm
mkdir -p ./ExecutableFile/
mv ~/rpmbuild/RPMS/x86_64/BlinkEye-$ver-1.fc39.x86_64.rpm ./ExecutableFile/

0 comments on commit 4816204

Please sign in to comment.