2017-06-09 19:34:43 +02:00
|
|
|
app: osc
|
|
|
|
|
|
|
|
build:
|
|
|
|
packages:
|
|
|
|
- linuxdeployqt
|
|
|
|
|
|
|
|
ingredients:
|
|
|
|
packages:
|
|
|
|
- build
|
|
|
|
- osc
|
2023-05-23 09:00:14 +02:00
|
|
|
- obs-scm-bridge
|
|
|
|
- obs-service-download_files
|
|
|
|
- obs-service-format_spec_file
|
2019-10-24 11:14:08 +02:00
|
|
|
- obs-service-obs_scm
|
|
|
|
- obs-service-recompress
|
2023-05-23 09:00:14 +02:00
|
|
|
- obs-service-set_version
|
|
|
|
- obs-service-tar_scm
|
|
|
|
- obs-service-verify_file
|
2017-06-09 19:59:21 +02:00
|
|
|
- openSUSE-release
|
|
|
|
- openSUSE-release-ftp
|
|
|
|
- rsync
|
2023-05-23 09:00:14 +02:00
|
|
|
|
2017-06-09 19:34:43 +02:00
|
|
|
script:
|
|
|
|
- mkdir -p $BUILD_APPDIR/usr/share/pixmaps
|
|
|
|
- cp /usr/share/pixmaps/appimage.png $BUILD_APPDIR/usr/share/pixmaps
|
|
|
|
- mkdir -p $BUILD_APPDIR/usr/share/applications
|
2019-10-24 11:14:08 +02:00
|
|
|
- echo "[Desktop Entry]" > $BUILD_APPDIR/usr/share/applications/osc.desktop
|
|
|
|
- echo "Name=osc" >> $BUILD_APPDIR/usr/share/applications/osc.desktop
|
|
|
|
- echo "Exec=osc" >> $BUILD_APPDIR/usr/share/applications/osc.desktop
|
|
|
|
- echo "Icon=appimage" >> $BUILD_APPDIR/usr/share/applications/osc.desktop
|
|
|
|
- echo "Categories=Development" >> $BUILD_APPDIR/usr/share/applications/osc.desktop
|
|
|
|
- echo "Type=Application" >> $BUILD_APPDIR/usr/share/applications/osc.desktop
|
2023-05-23 09:00:14 +02:00
|
|
|
# /usr/bin/python3 would run system python3 with libs from the appimage
|
|
|
|
# while /usr/bin/env python3 uses the correct binary from the appimage
|
|
|
|
- sed -i -e 's,^#!/usr/bin/python3,#!/usr/bin/env python3,' $BUILD_APPDIR/usr/bin/osc
|
2017-06-09 19:34:43 +02:00
|
|
|
- linuxdeployqt $BUILD_APPDIR/usr/share/applications/*.desktop -bundle-non-qt-libs -verbose=2
|