Skip to content

Commit

Permalink
Merge branch 'master' of https://github.com/alainm23/planify
Browse files Browse the repository at this point in the history
  • Loading branch information
alainm23 committed Feb 20, 2024
2 parents e5c91ef + 62b9242 commit 2b2a1f4
Show file tree
Hide file tree
Showing 4 changed files with 22 additions and 2 deletions.
15 changes: 15 additions & 0 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -31,3 +31,18 @@ jobs:
cache-key: flatpak-builder-${{ github.sha }}
repository-name: flathub-beta
repository-url: https://flathub.org/beta-repo/flathub-beta.flatpakrepo # until GNOME 45
snap:
name: "Snap"
runs-on: ubuntu-latest
steps:
- name: Checkout Git repository
uses: actions/checkout@v4
- name: Build Snap
uses: snapcore/action-build@v1
id: snapcraft-build
with:
snapcraft-args: "--verbosity debug"
- uses: actions/upload-artifact@v4
with:
name: planify_amd64_snap
path: ${{ steps.snapcraft-build.outputs.snap }}
3 changes: 2 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -7,4 +7,5 @@ build-aux/.flatpak-builder
build-aux/io.github.alainm23.planify.Devel.flatpak
.flatpak-builder/
subprojects/gxml

*.snap
planify*txt
4 changes: 4 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -41,6 +41,10 @@

<a href="https://flathub.org/apps/details/io.github.alainm23.planify" rel="noreferrer noopener" target="_blank"><img loading="lazy" draggable="false" width='240' alt='Download on Flathub' src='https://dl.flathub.org/assets/badges/flathub-badge-en.png' /></a>

<a href="https://snapcraft.io/planify">
<img alt="Get it from the Snap Store" src="https://snapcraft.io/static/images/badges/en/snap-store-black.svg" loading="lazy" width='240' draggable="false"/>
</a>

## 🛠 Compile

You'll need the following dependencies:
Expand Down
2 changes: 1 addition & 1 deletion src/Dialogs/Preferences/PreferencesWindow.vala
Original file line number Diff line number Diff line change
Expand Up @@ -1060,7 +1060,7 @@ public class Dialogs.Preferences.PreferencesWindow : Adw.PreferencesWindow {

private Adw.NavigationPage get_quick_add_page () {
var settings_header = new Dialogs.Preferences.SettingsHeader (_("Quick Add"));
string quick_add_command = "flatpak run --command=io.github.alainm23.planify.quick-add %s".printf (Build.APPLICATION_ID);
string quick_add_command = GLib.Environment.get_variable("SNAP") != "" ? "planify.quick-add" : "flatpak run --command=io.github.alainm23.planify.quick-add %s".printf (Build.APPLICATION_ID);

var description_label = new Gtk.Label (
_("Use Quick Add to create to-dos from anywhere on your desktop with just a few keystrokes. You don’t even have to leave the app you’re currently in.") // vala-lint=line-length
Expand Down

0 comments on commit 2b2a1f4

Please sign in to comment.