Advertisement
Guest User

Untitled

a guest
Jul 17th, 2019
69
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
YAML 1.31 KB | None | 0 0
  1. name: heidisql
  2. version: latest
  3. version-script: cat $SNAPCRAFT_STAGE/version
  4. summary: heidisql
  5. description: |
  6.        HeidiSQL
  7. confinement: devmode
  8. grade: stable
  9. architectures:
  10.   - build-on: amd64
  11.   - build-on: i386
  12. base: core18
  13.  
  14. plugs:
  15.   wine-runtime:
  16.     interface: content
  17.     target: $SNAP/wine-runtime
  18.     default-provider: wine-platform-runtime
  19.   wine-3-stable:
  20.     interface: content
  21.     target: $SNAP/wine-platform
  22.     default-provider: wine-platform-3-stable
  23.   icon-themes:
  24.       interface: content
  25.       target: $SNAP/data-dir/icons
  26.       default-provider: gtk-common-themes
  27.  
  28. apps:
  29.   heidisql:
  30.     command: heidisql
  31.     desktop: usr/share/applications/heidisql.desktop
  32.     plugs: [ wayland, x11, opengl, home, desktop, desktop-legacy, network, hardware-observe, process-control, cups-control, removable-media, icon-themes, wine-runtime, wine-3-stable ]
  33.  
  34. parts:
  35.   heidisql:
  36.     plugin: nil
  37.     source: ./snap/local/src
  38.     override-build: |
  39.      snapcraftctl build
  40.       set -ex
  41.       ver=$(wget https://www.heidisql.com -q -S -O - 2>&1 | grep 'Version</t' | cut -c19-24 | sed 's| -||' | sed 's/ //g')
  42.       echo $ver > $SNAPCRAFT_STAGE/version
  43.       ./dl_hs
  44.     stage:
  45.      - bin
  46.       - usr
  47.       - wine-platform
  48.       - wine-runtime
  49.       - winedata
  50.     build-packages: [wget]
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement