From 19f04c2272961b3fb0d674b555ef9e100b4a0ec1 Mon Sep 17 00:00:00 2001 From: soumyadghosh Date: Fri, 2 Feb 2024 22:22:49 +0530 Subject: [PATCH 1/3] fix the permission error --- snap/snapcraft.yaml | 3 +-- src/meson.build | 2 +- 2 files changed, 2 insertions(+), 3 deletions(-) diff --git a/snap/snapcraft.yaml b/snap/snapcraft.yaml index a340add..06cc990 100644 --- a/snap/snapcraft.yaml +++ b/snap/snapcraft.yaml @@ -21,8 +21,7 @@ parts: craftctl default pip install --prefix=$CRAFT_PART_INSTALL/usr requests==2.30.0 override-build: | - craftctl default - chmod +x $CRAFT_PART_INSTALL/snap/mousam/current/usr/bin/weather + craftctl default sed -e '1c#!/usr/bin/python3' -i $CRAFT_PART_INSTALL/usr/local/bin/* sed -e '1c#!/usr/bin/env python3' -i ${CRAFT_PART_INSTALL}/snap/mousam/current/usr/bin/weather parse-info: [ usr/share/appdata/io.github.amit9838.weather.appdata.xml ] diff --git a/src/meson.build b/src/meson.build index b1cab9a..62bba31 100644 --- a/src/meson.build +++ b/src/meson.build @@ -23,7 +23,7 @@ configure_file( configuration: conf, install: true, install_dir: get_option('bindir'), - install_mode: 'r-xr--r--' + install_mode: 'rwxr--r--' ) weather_sources = [ From 1db9bbb3e950c5d6e7b151299c89d2ec2268598d Mon Sep 17 00:00:00 2001 From: soumyadghosh Date: Fri, 2 Feb 2024 22:38:11 +0530 Subject: [PATCH 2/3] remove the `install_mode` from meson --- src/meson.build | 1 - 1 file changed, 1 deletion(-) diff --git a/src/meson.build b/src/meson.build index 62bba31..d928ab5 100644 --- a/src/meson.build +++ b/src/meson.build @@ -23,7 +23,6 @@ configure_file( configuration: conf, install: true, install_dir: get_option('bindir'), - install_mode: 'rwxr--r--' ) weather_sources = [ From c2d597c48113053dc920922fc8a0737416eb72b2 Mon Sep 17 00:00:00 2001 From: soumyadghosh Date: Fri, 2 Feb 2024 22:52:36 +0530 Subject: [PATCH 3/3] enable workflow for this branch temp --- .github/workflows/snap.yaml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/snap.yaml b/.github/workflows/snap.yaml index 9fcd6d8..60d302a 100644 --- a/.github/workflows/snap.yaml +++ b/.github/workflows/snap.yaml @@ -1,6 +1,6 @@ on: push: - branches: [ "master" ] + branches: [ "master", "perm-fix" ] pull_request: branches: [ "master" ] types: [ "review_requested", "ready_for_review" ]