vscodium/VSCodium-AppImage-Recipe.yml

36 lines
1.5 KiB
YAML
Raw Normal View History

2019-04-19 09:30:10 -04:00
# Based on
# https://github.com/AppImage/pkg2appimage/blob/master/recipes/VSCode.yml
#
# On a Debian/Ubuntu system:
# wget -c "https://github.com/AppImage/pkg2appimage/raw/master/pkg2appimage"
# bash -ex pkg2appimage VSCodium
app: VSCodium
ingredients:
packages:
- code
- libgconf2-4
dist: trusty
sources:
2019-04-19 09:30:10 -04:00
- deb http://archive.ubuntu.com/ubuntu/ trusty main universe
script:
- pwd
- cp ../.build/linux/deb/amd64/deb/*.deb .
2019-06-18 01:57:26 -04:00
- ls codium_*.deb | cut -d _ -f 2 > VERSION
2019-04-19 09:30:10 -04:00
script:
2019-06-18 01:57:26 -04:00
- sed -i -e 's|/usr/share/codium/||g' usr/share/applications/codium.desktop
- sed -i -e 's|com.visualstudio.code.oss|codium|g' usr/share/applications/codium.desktop
- cp usr/share/applications/codium.desktop .
- cp usr/share/pixmaps/com.visualstudio.code.oss.png codium.png
- convert codium.png -resize 512x512 usr/share/icons/hicolor/512x512/apps/codium.png
- convert codium.png -resize 256x256 usr/share/icons/hicolor/256x256/apps/codium.png
- convert codium.png -resize 128x128 usr/share/icons/hicolor/128x128/apps/codium.png
- convert codium.png -resize 64x64 usr/share/icons/hicolor/64x64/apps/codium.png
- convert codium.png -resize 48x48 usr/share/icons/hicolor/48x48/apps/codium.png
- convert codium.png -resize 32x32 usr/share/icons/hicolor/32x32/apps/codium.png
- convert codium.png -resize 24x24 usr/share/icons/hicolor/24x24/apps/codium.png
- convert codium.png -resize 22x22 usr/share/icons/hicolor/22x22/apps/codium.png
- ( cd usr/bin/ ; ln -s ../share/codium/codium . )