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

Install Calculator Flatpak #231

Merged
merged 7 commits into from
Nov 2, 2022
Merged
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
2 changes: 1 addition & 1 deletion debian/control
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ Homepage: https://github.com/elementary/calculator

Package: io.elementary.calculator
Architecture: any
Depends: ${misc:Depends}, ${shlibs:Depends}
Depends: flatpak, ${misc:Depends}, ${shlibs:Depends}
Breaks: pantheon-calculator
Replaces: pantheon-calculator
Description: Calculate in an elementary way.
Expand Down
2 changes: 0 additions & 2 deletions debian/io.elementary.calculator.install

This file was deleted.

10 changes: 10 additions & 0 deletions debian/postinst
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
#!/bin/sh

set -e

flatpak remote-add --if-not-exists --system appcenter https://flatpak.elementary.io/repo.flatpakrepo
flatpak install --system --noninteractive appcenter io.elementary.calculator//stable || true

#DEBHELPER#

exit 0
9 changes: 9 additions & 0 deletions debian/prerm
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
#!/bin/sh

set -e

flatpak remove --system --noninteractive io.elementary.calculator//stable || true

#DEBHELPER#

exit 0
6 changes: 1 addition & 5 deletions debian/rules
Original file line number Diff line number Diff line change
Expand Up @@ -10,8 +10,4 @@
#export DH_VERBOSE=1

%:
dh $@ --buildsystem=meson

override_dh_install:
dh_install --fail-missing

dh $@