Skip to content

Commit

Permalink
snap: update for core24
Browse files Browse the repository at this point in the history
  • Loading branch information
soumyaDghosh committed Jun 6, 2024
1 parent ee8dc8f commit e9a1b7d
Show file tree
Hide file tree
Showing 2 changed files with 30 additions and 3 deletions.
27 changes: 27 additions & 0 deletions .github/workflows/build-snap.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,27 @@
name: Build Dosage
on:
push:
branches:
- main
tags-ignore:
- '**'
permissions:
id-token: write
contents: read
jobs:
deploy-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
env:
SNAPCRAFT_ENABLE_EXPERIMENTAL_EXTENSIONS: 1
with:
snapcraft-args: "--verbosity debug"
- uses: actions/upload-artifact@v4
with:
name: dosage-snap
path: ${{ steps.snapcraft-build.outputs.snap }}
6 changes: 3 additions & 3 deletions snap/snapcraft.yaml
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
name: dosage-tracker
base: core22
base: core24
adopt-info: dosage-tracker
grade: stable
confinement: strict
Expand All @@ -21,7 +21,7 @@ parts:
source-tag: "v1.6.1"
build-environment:
- PYTHONPATH: $CRAFT_STAGE/usr/lib/python3/dist-packages:$PYTHONPATH
- GI_TYPELIB_PATH: /snap/gnome-42-2204-sdk/current/usr/lib/$CRAFT_ARCH_TRIPLET/girepository-1.0:/snap/gnome-42-2204-sdk/current/usr/lib/girepository-1.0
- GI_TYPELIB_PATH: /snap/gnome-46-2404-sdk/current/usr/lib/girepository-1.0:/snap/gnome-46-2404-sdk/current/usr/lib/$CRAFT_ARCH_TRIPLET/girepository-1.0:/snap/gnome-46-2404-sdk/current/usr/lib/$CRAFT_ARCH_TRIPLET/gjs/girepository-1.0:$GI_TYPELIB_PATH
meson-parameters:
- --prefix=/snap/dosage-tracker/current/usr
override-pull: |
Expand All @@ -46,7 +46,7 @@ apps:
autostart: dosage-tracker-startup.desktop
common-id: io.github.diegopvlk.Dosage
environment:
GI_TYPELIB_PATH: $SNAP/gnome-platform/usr/lib/$CRAFT_ARCH_TRIPLET/girepository-1.0:$SNAP/gnome-platform/usr/lib/$CRAFT_ARCH_TRIPLET/gjs/girepository-1.0
GI_TYPELIB_PATH: $SNAP/gnome-platform/usr/lib/$CRAFT_ARCH_TRIPLET/gjs/girepository-1.0:$GI_TYPELIB_PATH
extensions:
- gnome
plugs:
Expand Down

0 comments on commit e9a1b7d

Please sign in to comment.