diff --git a/.github/workflows/desktop.publish.yml b/.github/workflows/desktop.publish.yml index 89d706f0d3..50f7218963 100644 --- a/.github/workflows/desktop.publish.yml +++ b/.github/workflows/desktop.publish.yml @@ -84,6 +84,26 @@ jobs: files: ./notesnook_build_v${{ steps.app_metadata.outputs.app_version }}.zip prerelease: ${{ endsWith(steps.app_metadata.outputs.app_version, '-beta') }} + - name: Generate flatpak sources + if: inputs.publish-github && inputs.build-linux + run: | + sudo apt-get install -y flatpak flatpak-builder pipx + git clone https://github.com/flatpak/flatpak-builder-tools.git /tmp/flatpak-builder-tools + cd /tmp/flatpak-builder-tools/node + pipx install . + cd - + node scripts/generate-sources.mjs + + - name: Upload flatpak sources + uses: softprops/action-gh-release@v1 + if: inputs.publish-github && inputs.build-linux + with: + draft: true + name: Notesnook Desktop v${{ steps.app_metadata.outputs.app_version }} + tag_name: v${{ steps.app_metadata.outputs.app_version }} + files: ./generated-sources.json + prerelease: ${{ endsWith(steps.app_metadata.outputs.app_version, '-beta') }} + build-macos: name: Build for macOS needs: build diff --git a/scripts/generate-sources.mjs b/scripts/generate-sources.mjs index 00eec089f3..a16329ee72 100644 --- a/scripts/generate-sources.mjs +++ b/scripts/generate-sources.mjs @@ -52,6 +52,10 @@ const directoryTree = { "package.json": ["packages", "sodium", "package.json"], "package-lock.json": ["packages", "sodium", "package-lock.json"] }, + intl: { + "package.json": ["packages", "intl", "package.json"], + "package-lock.json": ["packages", "intl", "package-lock.json"] + }, crypto: { "package.json": ["packages", "crypto", "package.json"], "package-lock.json": ["packages", "crypto", "package-lock.json"]