diff --git a/.github/workflows/linux.yml b/.github/workflows/linux.yml index a5fb3bd..6c528d5 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 + snap: "${{ github.workspace }}/dist/Raindrop-x64.snap" + 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}' }