From 19f04c2272961b3fb0d674b555ef9e100b4a0ec1 Mon Sep 17 00:00:00 2001 From: soumyadghosh Date: Fri, 2 Feb 2024 22:22:49 +0530 Subject: [PATCH] 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 = [