Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
25 changes: 19 additions & 6 deletions .github/workflows/linux.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand All @@ -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
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
28 changes: 27 additions & 1 deletion build/config.js
Original file line number Diff line number Diff line change
Expand Up @@ -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',
Expand All @@ -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}'
}
Expand Down