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 = [