Schrodingers-cat

Snapcraft Config Atom Text Editor

Sep 6th, 2017
76
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
YAML 2.77 KB | None | 0 0
  1. name: snapped-atom # you probably want to 'snapcraft register <name>'
  2. version: '1.19.6' # just for humans -  typically '1.2+git' or '1.3.2'
  3. summary: Hackable editor # 79 char long summary
  4. description: |
  5.  This is a fork off of atom @ https://github.com/atom/atom.git .
  6.   Forked to create a confined snappy atom on ubuntu core 16 and later.
  7.   Atom is a hackable text editor for the 21st century, built on Electron, and based on everything we love about our favorite editors.
  8. grade: devel # must be 'stable' to release into candidate/stable channels
  9. confinement: strict # use 'strict' once you have the right plugs and slots
  10. type: app
  11.  
  12. parts:
  13.   foundation:
  14.     plugin: nodejs
  15.     node-engine: 8.4.0
  16.     source: https://github.com/retrocausal/atom.git
  17.     source-type: git
  18.     source-branch: locallts
  19.     build-packages:
  20.         - build-essential
  21.          - git
  22.          - libsecret-1-0
  23.          - libsecret-common
  24.          - libsecret-1-dev
  25.          - fakeroot
  26.          - libx11-dev
  27.          - libxkbfile-dev
  28.          - gcc-5
  29.          - g++-5        
  30.     prepare: |
  31.        sh prepare.sh
  32.     build: |
  33.         sh run.sh
  34.     install: |
  35.        cp -R out/ $SNAPCRAFT_PART_INSTALL
  36.     organize:
  37.         out/: lib/application/
  38.     filesets:
  39.         app:
  40.         - lib/application/*
  41.     stage:
  42.       - $app
  43.   construction:
  44.       plugin: dump
  45.       source: $SNAPCRAFT_STAGE/lib/application/atom-amd64.deb
  46.       source-type: deb
  47.       after:
  48.       - desktop-gtk2
  49.        - foundation
  50.       stage-packages:
  51.         -  gconf2
  52.          -  gconf-service
  53.          -  gir1.2-gnomekeyring-1.0
  54.          -  libgtk2.0-0
  55.          -  libasound2
  56.          -  libnspr4
  57.          -  libudev1
  58.          -  libpulse0
  59.          -  libxss1
  60.          -  libgcrypt20
  61.          -  libnotify4
  62.          -  libxtst6
  63.          -  libnss3
  64.          -  python
  65.          -  gvfs-bin
  66.          -  xdg-utils
  67.          -  libcap2
  68.          -  libatk-adaptor
  69.          -  libgail-common
  70.          -  libgl1-mesa-glx
  71.          -  libglu1-mesa
  72.          -  ubuntu-make
  73.       prepare:
  74.         sed -i 's|Icon=atom|Icon=/usr/share/pixmaps/atom\.png|g' usr/share/applications/atom.desktop
  75.  
  76.  
  77.  
  78.  
  79. apps:
  80.     snapped-atom:
  81.         command: env TMPDIR=$XDG_RUNTIME_DIR PATH=/usr/local/bin:${PATH} ${SNAP}/bin/desktop-launch ${SNAP}/usr/share/atom/atom
  82.         desktop: usr/share/applications/atom.desktop
  83.         plugs:
  84.            - home
  85.             - network
  86.             - screen-inhibit-control
  87.             - removable-media
  88.             - pulseaudio
  89.             - opengl
  90.             - gsettings
  91.             - browser-support
  92.             - unity7
  93.             - upower-observe
  94.             - x11
  95.            
  96. #plugs:    
  97. #    browser-sandbox:
  98. #     interface: browser-support
  99. #     allow-sandbox: true
Add Comment
Please, Sign In to add comment