From db6f8f762813c957c902b548bfdbd94197ea88d9 Mon Sep 17 00:00:00 2001 From: "Silvio Tomatis (aider)" Date: Sun, 8 Dec 2024 11:20:52 +0100 Subject: [PATCH] ci: Add gresource compilation step for macOS builds --- .github/workflows/build.yml | 13 +++++++++++++ 1 file changed, 13 insertions(+) diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index 54a68a0..c95d38c 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -151,6 +151,19 @@ jobs: PKG_CONFIG_SYSROOT_DIR: "" PKG_CONFIG_PATH: "${{ env.PKG_CONFIG_PATH }}" run: cargo build --release --target ${{ matrix.target }} + - name: Install glib-compile-resources + if: matrix.arch == 'x86_64' + run: arch -x86_64 /usr/local/bin/brew install glib || echo ERROR + + - name: Install glib-compile-resources ARM64 + if: matrix.arch == 'arm64' + run: brew install glib || echo ERROR + + - name: Compile GResource + run: | + mkdir -p target/${{ matrix.target }}/release/ + glib-compile-resources --sourcedir src --target target/${{ matrix.target }}/release/aardvark.gresource src/aardvark.gresource.xml + - name: Create App Bundle run: | mkdir -p Aardvark.app/Contents/{MacOS,Resources}