From 31f40d8b3d46300bed4ec044a2c16b703406cd75 Mon Sep 17 00:00:00 2001 From: Kamil Jarosz Date: Fri, 27 Sep 2024 12:25:20 +0200 Subject: [PATCH] ci: Download translated POs for metainfo and desktop file --- .github/workflows/download_translations.yml | 23 +++++++++++++++++++++ 1 file changed, 23 insertions(+) diff --git a/.github/workflows/download_translations.yml b/.github/workflows/download_translations.yml index 176c608909a6..08ed5589612c 100644 --- a/.github/workflows/download_translations.yml +++ b/.github/workflows/download_translations.yml @@ -16,6 +16,24 @@ jobs: - name: Checkout uses: actions/checkout@v4 + - name: Install dependencies + run: | + sudo apt-get install -y itstool gettext appstream + + - name: Generate desktop & metainfo sources + working-directory: desktop/packages/linux + run: | + make update + + # Crowdin action creates files and directories as root, + # however we need write access to them to apply changes, + # so just create them here instead of relying on Crowdin. + - name: Create locale directories + working-directory: desktop/packages/linux + run: | + mkdir -p locale/rs.ruffle.Ruffle.desktop + mkdir -p locale/rs.ruffle.Ruffle.metainfo.xml + - name: Crowdin download uses: crowdin/github-action@v2 with: @@ -28,6 +46,11 @@ jobs: env: CROWDIN_PERSONAL_TOKEN: ${{ secrets.CROWDIN_PERSONAL_TOKEN }} + - name: Apply desktop & metainfo sources + working-directory: desktop/packages/linux + run: | + make apply + - name: Commit run: | git config user.name "RuffleBuild"