name: ubuntu-budgie-welcome version: '0.24.5' summary: Welcome screen to greet new Ubuntu Budgie users on their first login. description: | The ubuntu-budgie-welcome application was designed to greet a new user at the first run after installing Ubuntu Budgie. This app will show you around the official Ubuntu flavour, make a few recommendations, showcase some of the available budgie applets (to personalize your desktop), and ease the installation effort around a few common applications. grade: stable confinement: classic base: core22 # this line enables LZO compression for the snap compression: lzo apps: budgie-welcome: command: usr/bin/budgie-welcome command-chain: [bin/wrapper] desktop: usr/share/applications/budgie-welcome.desktop environment: PATH: $SNAP/usr/bin:$SNAP/bin:$PATH #LIBGL_DRIVERS_PATH: $SNAP/usr/lib/$CRAFT_ARCH_TRIPLET/dri #GIO_MODULE_DIR: $SNAP/usr/lib/$CRAFT_ARCH_TRIPLET/gio/modules LIVE_RUN: 1 # overcome 200% incorrect scaling issues WEBKIT_DISABLE_COMPOSITING_MODE: 1 SNAP_PYTHON: python3 budgie-applets: command: usr/bin/budgie-welcome command-chain: [bin/wrapper] desktop: usr/share/applications/budgie-applets.desktop environment: PATH: $SNAP/usr/bin:$SNAP/bin:$PATH #LIBGL_DRIVERS_PATH: $SNAP/usr/lib/$CRAFT_ARCH_TRIPLET/dri #GIO_MODULE_DIR: $SNAP/usr/lib/$CRAFT_ARCH_TRIPLET/gio/modules LIVE_RUN: 1 # overcome 200% incorrect scaling issues WEBKIT_DISABLE_COMPOSITING_MODE: 1 SNAP_PYTHON: python3 budgie-themes: command: usr/bin/budgie-welcome command-chain: [bin/wrapper] desktop: usr/share/applications/budgie-themes.desktop environment: PATH: $SNAP/usr/bin:$SNAP/bin:$PATH #LIBGL_DRIVERS_PATH: $SNAP/usr/lib/$CRAFT_ARCH_TRIPLET/dri #GIO_MODULE_DIR: $SNAP/usr/lib/$CRAFT_ARCH_TRIPLET/gio/modules LIVE_RUN: 1 # overcome 200% incorrect scaling issues WEBKIT_DISABLE_COMPOSITING_MODE: 1 SNAP_PYTHON: python3 budgie-discourse: command: usr/bin/xdg-open command-chain: [bin/wrapper] desktop: usr/share/applications/budgie-discourse.desktop environment: PATH: $SNAP/usr/bin:$SNAP/bin:$PATH #LIBGL_DRIVERS_PATH: $SNAP/usr/lib/$CRAFT_ARCH_TRIPLET/dri #GIO_MODULE_DIR: $SNAP/usr/lib/$CRAFT_ARCH_TRIPLET/gio/modules LIVE_RUN: 1 LOG_LEVEL: debug SNAP_PYTHON: python3 parts: budgie-welcome: plugin: nil build-packages: - python3 - python3-polib - gettext - node-uglify - xdg-utils - sassc stage-packages: - python3-apt - xdg-utils - mesa-utils - libgl1-mesa-glx override-build: | snapcraftctl build cd $SNAPCRAFT_PROJECT_DIR sh ./sassc-compile.sh cd scripts && ./rebuild-translations.sh cd ../ && uglifyjs -o data/js/bootstrap.min.js data/js/bootstrap.js && uglifyjs -o data/js/baguetteBox.min.js data/js/baguetteBox.js && uglifyjs -o data/js/popper.min.js data/js/popper.js mkdir -p $SNAPCRAFT_PART_INSTALL/usr/share/budgie-welcome/ cp -r data/* $SNAPCRAFT_PART_INSTALL/usr/share/budgie-welcome/ mkdir -p $SNAPCRAFT_PART_INSTALL/usr/share/locale/ cp -r locale/* $SNAPCRAFT_PART_INSTALL/usr/share/locale/ cp -p budgie-welcome $SNAPCRAFT_PART_INSTALL/usr/bin/ mkdir -p $SNAPCRAFT_PART_INSTALL/usr/lib/budgie-welcome cp budgie-welcome-privileged-actions $SNAPCRAFT_PART_INSTALL/usr/lib/budgie-welcome cp budgie-welcome.1 $SNAPCRAFT_PART_INSTALL/usr/share/man/man1 mkdir -p $SNAPCRAFT_PART_INSTALL/usr/share/icons/hicolor/ cp -a hicolor/* $SNAPCRAFT_PART_INSTALL/usr/share/icons/hicolor/ # Modify the icon paths for the snap. mkdir -p $SNAPCRAFT_PART_INSTALL/usr/share/applications/ # sed 's|Icon=distributor-logo-ubuntu-budgie|Icon=${SNAP}/usr/share/icons/hicolor/scalable/apps/distributor-logo-ubuntu-budgie\.svg|' desktop/budgie-welcome.desktop > $SNAPCRAFT_PART_INSTALL/usr/share/applications/budgie-welcome.desktop # sed 's|Icon=distributor-logo-ubuntu-budgie|Icon=${SNAP}/usr/share/icons/hicolor/scalable/apps/distributor-logo-ubuntu-budgie\.svg|' desktop/budgie-applets.desktop > $SNAPCRAFT_PART_INSTALL/usr/share/applications/budgie-applets.desktop # sed 's|Icon=distributor-logo-ubuntu-budgie|Icon=${SNAP}/usr/share/icons/hicolor/scalable/apps/distributor-logo-ubuntu-budgie\.svg|' desktop/budgie-themes.desktop > $SNAPCRAFT_PART_INSTALL/usr/share/applications/budgie-themes.desktop # sed 's|Icon=distributor-logo-ubuntu-budgie|Icon=${SNAP}/usr/share/icons/hicolor/scalable/apps/distributor-logo-ubuntu-budgie\.svg|' desktop/budgie-discourse.desktop > $SNAPCRAFT_PART_INSTALL/usr/share/applications/budgie-discourse.desktop cp desktop/*.desktop $SNAPCRAFT_PART_INSTALL/usr/share/applications/ prime: - usr/bin/ - usr/share/budgie-welcome/ - usr/share/icons/hicolor/*/apps/distributor-logo-ubuntu-budgie.svg - usr/share/locale/ - usr/share/applications/ - usr/lib/budgie-welcome/ - usr/share/man/man1/budgie-welcome.1 wrapper: after: - budgie-welcome plugin: dump override-build: | chmod +x bin/wrapper snapcraftctl build source: files/