Skip to content

Commit

Permalink
Update snap (#65)
Browse files Browse the repository at this point in the history
- Update website
- Build for all archs
- Update source
- Add locales
  • Loading branch information
hsbasu authored Jan 3, 2024
1 parent 9c6f0ce commit 8840a9b
Showing 1 changed file with 6 additions and 7 deletions.
13 changes: 6 additions & 7 deletions snap/snapcraft.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -4,14 +4,15 @@ description: |
Very simple Python3-based GUI application
to generate random password.
version: git
contact: https://github.com/hsbasu
contact: https://hsbasu.github.io/simple-pwgen

grade: stable
confinement: strict

base: core22
architectures:
- build-on: [amd64]
build-for: all

slots:
simple-pwgen:
Expand All @@ -34,21 +35,19 @@ apps:

parts:
simple-pwgen:
source: https://github.com/hsbasu/simple-pwgen.git
source: https://github.com/mamolinux/simple-pwgen.git
source-branch: master
plugin: python
build-environment:
- PATH: $CRAFT_PART_INSTALL/bin:$PATH
build-packages:
- libglib2.0-bin # to generate compiled gschema
- gettext # To generate translation files
stage-packages:
- gobject-introspection
- gir1.2-gtk-3.0
- python3
- python3-configobj
- python3-cryptography
- python3-gi
- python3-setproctitle

override-build: |
set -eu
Expand All @@ -57,8 +56,8 @@ parts:
# under '/', e.g. into '/bin', '/share'
# Move everything to from '/' to '/usr'
mv $CRAFT_PART_INSTALL/bin/simple-pwgen* $CRAFT_PART_INSTALL/usr/bin
cp -a $CRAFT_PART_INSTALL/share/{applications,glib-2.0,icons} $CRAFT_PART_INSTALL/usr/share
rm -r $CRAFT_PART_INSTALL/share/{applications,glib-2.0,icons}
cp -a $CRAFT_PART_INSTALL/share/{applications,glib-2.0,icons,locale} $CRAFT_PART_INSTALL/usr/share
rm -r $CRAFT_PART_INSTALL/share/{applications,glib-2.0,icons,locale}
override-prime: |
set -eu
Expand Down

0 comments on commit 8840a9b

Please sign in to comment.