app-id: com.arteeh.Flasher # Libhandy depends on Vala, so the freedesktop platform is not enough runtime: org.gnome.Platform runtime-version: '43' sdk: org.gnome.Sdk command: pinetime-flasher finish-args: # Display: X11 - --share=ipc - --socket=fallback-x11 # Display: Wayland - --socket=wayland # Download binaries from the internet - --share=network # Access to ST-Link usb device - --device=all modules: # OpenOCD with ST-Link requires libusb to be installed - name: libusb sources: - type: git url: https://github.com/libusb/libusb.git tag: v1.0.24 commit: c6a35c56016ea2ab2f19115d2ea1e85e0edae155 # Flashing software this app uses - name: openocd config-opts: - --enable-stlink sources: - type: git url: https://git.code.sf.net/p/openocd/code tag: v0.11.0 commit: f342aac0845a69d591ad39a025d74e9c765f6420 # GTK widgets for mobile - name: libhandy buildsystem: meson builddir: true config-opts: - "-Dexamples=false" - "-Dtests=false" sources: - type: git url: https://gitlab.gnome.org/GNOME/libhandy.git tag: 1.0.3 commit: 7126d2e8da9dcdeb5751e60ff6a74930804f9637 # My app - name: flasher buildsystem: simple subdir: build build-commands: - make - install -D pinetime-flasher /app/bin/pinetime-flasher - install -D ../src/flash-init.ocd /app/bin/flash-init.ocd - install -D ../src/flash-program.ocd /app/bin/flash-program.ocd - install -D ../src/swd-stlink.ocd /app/bin/swd-stlink.ocd - install -D icon.svg /app/share/icons/hicolor/scalable/apps/com.arteeh.Flasher.svg - install -D icon.png /app/share/icons/hicolor/128x128/apps/com.arteeh.Flasher.png - install -D com.arteeh.Flasher.desktop /app/share/applications/com.arteeh.Flasher.desktop - install -D com.arteeh.Flasher.metainfo.xml /app/share/metainfo/com.arteeh.Flasher.metainfo.xml sources: - type: git url: https://github.com/arteeh/pinetime-flasher.git tag: 1.1 #- type: dir # path: /home/arteeh/git/pinetime-flasher