<p>I've been able to cut down on its size from 84 MB to 65 MB. Here is my yaml:</p>
<div class="highlight highlight-source-yaml"><pre><span class="pl-ent">app:</span> <span class="pl-s">Geany</span>
<span class="pl-ent">binpatch:</span> <span class="pl-c1">true</span>

<span class="pl-ent">ingredients:</span>
  <span class="pl-ent">packages:</span>
    - <span class="pl-s">geany</span>
    - <span class="pl-s">geany-plugins</span>
    - <span class="pl-s">python-gtk2</span>
  <span class="pl-ent">dist:</span>     <span class="pl-s">trusty</span>
  <span class="pl-ent">sources:</span>
    - <span class="pl-s">deb http://archive.ubuntu.com/ubuntu/ trusty main universe</span>
  <span class="pl-ent">ppas:</span>
    - <span class="pl-s">brentonhorne/geany2</span>

<span class="pl-ent">script:</span>
  - <span class="pl-s">cp ./usr/share/icons/hicolor/scalable/apps/geany.svg .</span>
  - <span class="pl-s">rm -rf ./bin/</span>
  - rm ./usr/bin/[ ./usr/bin/arch ./usr/bin/base64 ./usr/bin/basename ./usr/bin/chcon ./usr/bin/cksum ./usr/bin/comm ./usr/bin/csplit ./usr/bin/ctags-exuberant ./usr/bin/cut ./usr/bin/dh_python2 ./usr/bin/dircolors ./usr/bin/dirname ./usr/bin/du ./usr/bin/env ./usr/bin/expand ./usr/bin/expr ./usr/bin/factor ./usr/bin/fmt ./usr/bin/fold ./usr/bin/gcore ./usr/bin/groups ./usr/bin/head ./usr/bin/hostid ./usr/bin/id ./usr/bin/install ./usr/bin/join ./usr/bin/lcf ./usr/bin/link ./usr/bin/logname ./usr/bin/lspgpot ./usr/bin/md5sum* ./usr/bin/mkfifo ./usr/bin/nice ./usr/bin/nl ./usr/bin/nohup ./usr/bin/nproc ./usr/bin/numfmt ./usr/bin/od ./usr/bin/pathchk ./usr/bin/pinky ./usr/bin/pr ./usr/bin/precat ./usr/bin/preunzip ./usr/bin/prezip* ./usr/bin/printenv ./usr/bin/printf ./usr/bin/ptx ./usr/bin/runcon ./usr/bin/seq ./usr/bin/sha*sum ./usr/bin/shred ./usr/bin/shuf ./usr/bin/sort ./usr/bin/split ./usr/bin/stat ./usr/bin/stdbuf ./usr/bin/sum ./usr/bin/tac ./usr/bin/tail ./usr/bin/tee ./usr/bin/test ./usr/bin/timeout ./usr/bin/touch ./usr/bin/tr ./usr/bin/truncate ./usr/bin/tsort ./usr/bin/tty ./usr/bin/unexpand ./usr/bin/uniq ./usr/bin/unlink ./usr/bin/users ./usr/bin/wc ./usr/bin/who* ./usr/bin/X11 ./usr/bin/yes
  - <span class="pl-s">rm -rf ./usr/lib/python3.4 ./usr/share/doc ./usr/share/man ./usr/share/locale</span>
  - <span class="pl-s">rm -rf ./usr/share/aspell ./var/lib/aspell ./usr/lib/aspell ./usr/bin/*aspell* ./usr/share/info ./usr/share/enchant ./usr/share/doc-base</span>
  - <span class="pl-s">rm -rf ./usr/share/gconf ./usr/share/bug ./usr/share/debhelper ./usr/share/perl5 ./usr/share/dbus-1 ./usr/share/applications ./usr/share/lintian ./usr/share/X11 ./usr/share/readline ./usr/share/sgml ./usr/share/gnupg ./usr/lib/gnupg ./usr/bin/gpg*</span>
  - <span class="pl-s">rm -rf ./etc/gconf ./etc/python3.4 ./etc/X11</span>
  - <span class="pl-s">rm -rf ./usr/sbin ./usr/lib/sasl2 ./usr/lib/coreutils ./usr/lib/X11 ./usr/lib/x86_64-linux-gnu/enchant ./usr/lib/x86_64-linux-gnu/gconf ./usr/lib/x86_64-linux-gnu/openssl-1.0.0 ./usr/lib/x86_64-linux-gnu/sasl2</span>
  - <span class="pl-s">rm ./usr/lib/x86_64-linux-gnu/*dbus* ./usr/lib/x86_64-linux-gnu/*enchant* ./usr/lib/x86_64-linux-gnu/libgpgme* ./usr/lib/x86_64-linux-gnu/libgraphite* ./usr/lib/x86_64-linux-gnu/libhunspell* ./usr/lib/x86_64-linux-gnu/libpython3.4* ./usr/lib/x86_64-linux-gnu/*sasl2* ./usr/lib/x86_64-linux-gnu/*xslt* ./usr/lib/x86_64-linux-gnu/liblua5.1-c++.so.0 ./usr/lib/x86_64-linux-gnu/liblua5.1-c++.so.0.0.0 ./usr/lib/x86_64-linux-gnu/libsecret-1*</span>
  - <span class="pl-s">rm ./usr/lib/*spell*</span>
  - <span class="pl-s">rm -rf ./var/lib/dictionaries-common ./var/lib/gconf</span>
  - <span class="pl-s">rm ./lib/x86_64-linux-gnu/libreadline*</span></pre></div>
<p>I shared it because under the <code>script</code> section you can see what I have deleted from the AppImage. Every time I deleted something new I tested it out in a Debian 8 (with KDE Plasma 4) and Fedora 24 VM (with GNOME 3.20) that have the minimum amount of software installed (so as to make these tests fair) and found nothing to have gone awry.</p>
<p>Can I delete OpenLDAP libs? I know very little about OpenLDAP but it seems to be crypto-related.</p>

<p style="font-size:small;-webkit-text-size-adjust:none;color:#666;">—<br />You are receiving this because you are subscribed to this thread.<br />Reply to this email directly, <a href="https://github.com/geany/geany/issues/1303#issuecomment-262631534">view it on GitHub</a>, or <a href="https://github.com/notifications/unsubscribe-auth/ABDrJzL9-xl9VGuNgObrKPNpheYWTlRFks5rBKzEgaJpZM4KyPT8">mute the thread</a>.<img alt="" height="1" src="https://github.com/notifications/beacon/ABDrJxqGFe4yG5CTr0fKfjGfdq3eW4hlks5rBKzEgaJpZM4KyPT8.gif" width="1" /></p>
<div itemscope itemtype="http://schema.org/EmailMessage">
<div itemprop="action" itemscope itemtype="http://schema.org/ViewAction">
  <link itemprop="url" href="https://github.com/geany/geany/issues/1303#issuecomment-262631534"></link>
  <meta itemprop="name" content="View Issue"></meta>
</div>
<meta itemprop="description" content="View this Issue on GitHub"></meta>
</div>

<script type="application/json" data-scope="inboxmarkup">{"api_version":"1.0","publisher":{"api_key":"05dde50f1d1a384dd78767c55493e4bb","name":"GitHub"},"entity":{"external_key":"github/geany/geany","title":"geany/geany","subtitle":"GitHub repository","main_image_url":"https://cloud.githubusercontent.com/assets/143418/17495839/a5054eac-5d88-11e6-95fc-7290892c7bb5.png","avatar_image_url":"https://cloud.githubusercontent.com/assets/143418/15842166/7c72db34-2c0b-11e6-9aed-b52498112777.png","action":{"name":"Open in GitHub","url":"https://github.com/geany/geany"}},"updates":{"snippets":[{"icon":"PERSON","message":"@fusion809 in #1303: I've been able to cut down on its size from 84 MB to 65 MB. Here is my yaml:\r\n\r\n```yaml\r\napp: Geany\r\nbinpatch: true\r\n\r\ningredients:\r\n  packages:\r\n    - geany\r\n    - geany-plugins\r\n    - python-gtk2\r\n  dist:     trusty\r\n  sources:\r\n    - deb http://archive.ubuntu.com/ubuntu/ trusty main universe\r\n  ppas:\r\n    - brentonhorne/geany2\r\n\r\nscript:\r\n  - cp ./usr/share/icons/hicolor/scalable/apps/geany.svg .\r\n  - rm -rf ./bin/\r\n  - rm ./usr/bin/[ ./usr/bin/arch ./usr/bin/base64 ./usr/bin/basename ./usr/bin/chcon ./usr/bin/cksum ./usr/bin/comm ./usr/bin/csplit ./usr/bin/ctags-exuberant ./usr/bin/cut ./usr/bin/dh_python2 ./usr/bin/dircolors ./usr/bin/dirname ./usr/bin/du ./usr/bin/env ./usr/bin/expand ./usr/bin/expr ./usr/bin/factor ./usr/bin/fmt ./usr/bin/fold ./usr/bin/gcore ./usr/bin/groups ./usr/bin/head ./usr/bin/hostid ./usr/bin/id ./usr/bin/install ./usr/bin/join ./usr/bin/lcf ./usr/bin/link ./usr/bin/logname ./usr/bin/lspgpot ./usr/bin/md5sum* ./usr/bin/mkfifo ./usr/bin/nice ./usr/bin/nl ./usr/bin/nohup ./usr/bin/nproc ./usr/bin/numfmt ./usr/bin/od ./usr/bin/pathchk ./usr/bin/pinky ./usr/bin/pr ./usr/bin/precat ./usr/bin/preunzip ./usr/bin/prezip* ./usr/bin/printenv ./usr/bin/printf ./usr/bin/ptx ./usr/bin/runcon ./usr/bin/seq ./usr/bin/sha*sum ./usr/bin/shred ./usr/bin/shuf ./usr/bin/sort ./usr/bin/split ./usr/bin/stat ./usr/bin/stdbuf ./usr/bin/sum ./usr/bin/tac ./usr/bin/tail ./usr/bin/tee ./usr/bin/test ./usr/bin/timeout ./usr/bin/touch ./usr/bin/tr ./usr/bin/truncate ./usr/bin/tsort ./usr/bin/tty ./usr/bin/unexpand ./usr/bin/uniq ./usr/bin/unlink ./usr/bin/users ./usr/bin/wc ./usr/bin/who* ./usr/bin/X11 ./usr/bin/yes\r\n  - rm -rf ./usr/lib/python3.4 ./usr/share/doc ./usr/share/man ./usr/share/locale\r\n  - rm -rf ./usr/share/aspell ./var/lib/aspell ./usr/lib/aspell ./usr/bin/*aspell* ./usr/share/info ./usr/share/enchant ./usr/share/doc-base\r\n  - rm -rf ./usr/share/gconf ./usr/share/bug ./usr/share/debhelper ./usr/share/perl5 ./usr/share/dbus-1 ./usr/share/applications ./usr/share/lintian ./usr/share/X11 ./usr/share/readline ./usr/share/sgml ./usr/share/gnupg ./usr/lib/gnupg ./usr/bin/gpg*\r\n  - rm -rf ./etc/gconf ./etc/python3.4 ./etc/X11\r\n  - rm -rf ./usr/sbin ./usr/lib/sasl2 ./usr/lib/coreutils ./usr/lib/X11 ./usr/lib/x86_64-linux-gnu/enchant ./usr/lib/x86_64-linux-gnu/gconf ./usr/lib/x86_64-linux-gnu/openssl-1.0.0 ./usr/lib/x86_64-linux-gnu/sasl2\r\n  - rm ./usr/lib/x86_64-linux-gnu/*dbus* ./usr/lib/x86_64-linux-gnu/*enchant* ./usr/lib/x86_64-linux-gnu/libgpgme* ./usr/lib/x86_64-linux-gnu/libgraphite* ./usr/lib/x86_64-linux-gnu/libhunspell* ./usr/lib/x86_64-linux-gnu/libpython3.4* ./usr/lib/x86_64-linux-gnu/*sasl2* ./usr/lib/x86_64-linux-gnu/*xslt* ./usr/lib/x86_64-linux-gnu/liblua5.1-c++.so.0 ./usr/lib/x86_64-linux-gnu/liblua5.1-c++.so.0.0.0 ./usr/lib/x86_64-linux-gnu/libsecret-1*\r\n  - rm ./usr/lib/*spell*\r\n  - rm -rf ./var/lib/dictionaries-common ./var/lib/gconf\r\n  - rm ./lib/x86_64-linux-gnu/libreadline*\r\n```\r\n\r\nI shared it because under the `script` section you can see what I have deleted from the AppImage. Every time I deleted something new I tested it out in a Debian 8 (with KDE Plasma 4) and Fedora 24 VM (with GNOME 3.20) that have the minimum amount of software installed (so as to make these tests fair) and found nothing to have gone awry. \r\n\r\nCan I delete OpenLDAP libs? I know very little about OpenLDAP but it seems to be crypto-related."}],"action":{"name":"View Issue","url":"https://github.com/geany/geany/issues/1303#issuecomment-262631534"}}}</script>