From b0cd269d4a479f18fba0f9dbab6865f5909b110c Mon Sep 17 00:00:00 2001 From: "copilot-swe-agent[bot]" <198982749+Copilot@users.noreply.github.com> Date: Fri, 13 Mar 2026 09:45:44 +0000 Subject: [PATCH 1/2] Add .deb, .rpm, .AppImage Linux build targets for x64 and arm64 architectures Co-authored-by: MigProPlayer <86320279+MigProPlayer@users.noreply.github.com> --- .github/workflows/linux.yml | 23 ++++++++++++++++++----- build/config.js | 28 +++++++++++++++++++++++++++- 2 files changed, 45 insertions(+), 6 deletions(-) diff --git a/.github/workflows/linux.yml b/.github/workflows/linux.yml index a5fb3bd..6a0103c 100644 --- a/.github/workflows/linux.yml +++ b/.github/workflows/linux.yml @@ -9,18 +9,21 @@ jobs: build: runs-on: ubuntu-latest steps: - - uses: actions/checkout@v3 + - uses: actions/checkout@v4 with: submodules: 'recursive' - name: Install Snapcraft uses: samuelmeuli/action-snapcraft@v1 - + - name: Use Node.js 20.x - uses: actions/setup-node@v1 + uses: actions/setup-node@v4 with: node-version: 20.x + - name: Install Linux build dependencies + run: sudo apt-get update && sudo apt-get install -y rpm + - name: install dependencies run: npm i @@ -30,10 +33,20 @@ jobs: SENTRY_AUTH_TOKEN: ${{ secrets.SENTRY_AUTH_TOKEN }} run: npm run build:linux -- --publish never - - name: publish amd64 + - name: publish snap amd64 uses: snapcore/action-publish@v1 env: SNAPCRAFT_STORE_CREDENTIALS: ${{ secrets.SNAPCRAFT_EXPORT }} with: snap: "${{ github.workspace }}/dist/Raindrop-amd64.snap" - release: stable \ No newline at end of file + release: stable + + - name: Upload Linux artifacts + uses: actions/upload-artifact@v4 + with: + name: linux-builds + path: | + dist/*.deb + dist/*.rpm + dist/*.AppImage + dist/*.snap \ No newline at end of file diff --git a/build/config.js b/build/config.js index cdec7f2..9f59ed6 100644 --- a/build/config.js +++ b/build/config.js @@ -91,7 +91,24 @@ exports.default = ()=>({ executableName: 'raindrop', icon: 'build/linux', category: 'GNOME;GTK;Network;Education;Science', - target: ['snap'], + target: [ + { + target: 'deb', + arch: ['x64', 'arm64'] + }, + { + target: 'rpm', + arch: ['x64', 'arm64'] + }, + { + target: 'AppImage', + arch: ['x64', 'arm64'] + }, + { + target: 'snap', + arch: ['x64'] + } + ], desktop: { entry: { StartupWMClass: 'Raindrop.io', @@ -100,6 +117,15 @@ exports.default = ()=>({ } }, + deb: { + artifactName: 'Raindrop-${arch}.${ext}' + }, + rpm: { + artifactName: 'Raindrop-${arch}.${ext}' + }, + appImage: { + artifactName: 'Raindrop-${arch}.${ext}' + }, snap: { artifactName: 'Raindrop-${arch}.${ext}' } From 789efc5497c9ae75fd369a89765b3e6f163f5e15 Mon Sep 17 00:00:00 2001 From: MigPro <86320279+MigProPlayer@users.noreply.github.com> Date: Fri, 13 Mar 2026 16:06:54 +0000 Subject: [PATCH 2/2] Fix snap publish step to use the correct arch naming Co-authored-by: Copilot Autofix powered by AI <175728472+Copilot@users.noreply.github.com> --- .github/workflows/linux.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/linux.yml b/.github/workflows/linux.yml index 6a0103c..6c528d5 100644 --- a/.github/workflows/linux.yml +++ b/.github/workflows/linux.yml @@ -38,7 +38,7 @@ jobs: env: SNAPCRAFT_STORE_CREDENTIALS: ${{ secrets.SNAPCRAFT_EXPORT }} with: - snap: "${{ github.workspace }}/dist/Raindrop-amd64.snap" + snap: "${{ github.workspace }}/dist/Raindrop-x64.snap" release: stable - name: Upload Linux artifacts