Skip to content

Commit d537ad7

Browse files
generate libflatpak bindings
1 parent d7e6e01 commit d537ad7

File tree

4 files changed

+80063
-57616
lines changed

4 files changed

+80063
-57616
lines changed
Lines changed: 32 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,32 @@
1+
name: Generate libflatpak.dart bindings
2+
3+
on:
4+
push:
5+
branches: [ "main" ]
6+
pull_request:
7+
branches: [ "main" ]
8+
9+
jobs:
10+
build:
11+
runs-on: ubuntu-latest
12+
13+
permissions:
14+
# Give the default GITHUB_TOKEN write permission to commit and push the changed files back to the repository.
15+
contents: write
16+
17+
steps:
18+
- uses: actions/checkout@v4
19+
- uses: dart-lang/setup-dart@9a04e6d73cca37bd455e0608d7e5092f881fd603
20+
21+
- name: Install dependencies
22+
run: dart pub get
23+
24+
- name: Generate bindings
25+
run: |
26+
chmod +x ./gen_bin.sh
27+
./gen_bin.sh
28+
shell: bash
29+
30+
- uses: stefanzweifel/git-auto-commit-action@v5
31+
with:
32+
commit_message: Generate libflatpak.dart bindings.

build.sh

Lines changed: 0 additions & 2 deletions
This file was deleted.

gen_bin.sh

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
#!/bin/sh
2+
3+
# install libflatpak
4+
sudo apt-get install gir1.2-flatpak-1.0
5+
sudo apt-get install libflatpak-dev
6+
7+
# install glib-2.0
8+
sudo apt-get install libglib2.0-dev
9+
10+
# run ffigen
11+
dart run ffigen --compiler-opts "-isystem /usr/lib/clang/10/include/ -isystem /usr/include -I/usr/include/glib-2.0/ -I/usr/lib/x86_64-linux-gnu/glib-2.0/include/ -I/usr/include/flatpak/"

0 commit comments

Comments
 (0)