[AppImageBuilder.yml] -~50% size reduction

This commit is contained in:
Vinicius Moreira
2022-02-10 14:29:16 -03:00
parent 8225efc481
commit 1ba610da9d
2 changed files with 11 additions and 7 deletions

View File

@@ -26,7 +26,6 @@ AppDir:
- python3
- python3-pip
- python3-setuptools
- python3-wheel
- python3-requests
- python3-colorama
- python3-dateutil
@@ -36,19 +35,20 @@ AppDir:
- python3-lxml
- python3-bs4
- sqlite3
- axel
- aria2
- wget
- libfreetype6
- libfontconfig1
exclude: []
after_bundle:
- pip3 install bauh==$BAUH_VERSION --prefix=/usr --root=AppDir
after_bundle:
- mkdir -p AppDir/usr/share/icons/hicolor/scalable/apps
- cp AppDir/usr/lib/python3.8/site-packages/bauh/view/resources/img/logo.svg AppDir/usr/share/icons/hicolor/scalable/apps/bauh.svg
- mkdir -p AppDir/usr/share/applications
- cp AppDir/usr/lib/python3.8/site-packages/bauh/desktop/bauh.desktop AppDir/usr/share/applications
- wget https://github.com/vinifmor/bauh/archive/${BAUH_VERSION}.tar.gz || exit 1
- tar -xf ${BAUH_VERSION}.tar.gz || exit 1
- cd bauh-${BAUH_VERSION} || exit 1
- cp bauh/view/resources/img/logo.svg ../AppDir/usr/share/icons/hicolor/scalable/apps/bauh.svg || exit 1
- cp bauh/desktop/bauh.desktop ../AppDir/usr/share/applications || exit 1
- BAUH_SETUP_NO_REQS=1 python3 setup.py install --prefix=/usr --root=../AppDir --optimize=1 || exit 1
runtime:
version: "continuous"