Skip to content

Add AUR packaging and automated publishing#23

Open
rursache wants to merge 2 commits into
selimaj-dev:masterfrom
rursache:aur-packaging
Open

Add AUR packaging and automated publishing#23
rursache wants to merge 2 commits into
selimaj-dev:masterfrom
rursache:aur-packaging

Conversation

@rursache
Copy link
Copy Markdown
Contributor

@rursache rursache commented Apr 3, 2026

Summary

  • Adds a PKGBUILD and .SRCINFO for publishing linear-linux-bin to the AUR
  • Adds a GitHub Actions workflow that automatically publishes to AUR every time you create a new release
  • Supports both x86_64 and aarch64

What you need to do (one-time setup)

Step 1: Create the AUR package

  1. Go to https://aur.archlinux.org/register/ and create an account (if you don't have one)
  2. After logging in, go to https://aur.archlinux.org/pkgsubmit.php
  3. Type linear-linux-bin in the "Name" field
  4. Click Submit
  5. That's it. The package page now exists (it will be empty until the first publish)

Step 2: Generate an SSH key for AUR

You need an SSH key so the GitHub Action can push to AUR on your behalf.

  1. Open a terminal and run:
    ssh-keygen -t ed25519 -C "aur" -f ~/.ssh/aur_key -N ""
  2. This creates two files:
    • ~/.ssh/aur_key — this is the private key (keep it secret)
    • ~/.ssh/aur_key.pub — this is the public key

Step 3: Add the public key to your AUR account

  1. Copy the public key:
    cat ~/.ssh/aur_key.pub
  2. Go to https://aur.archlinux.org/account/ (make sure you're logged in)
  3. Find the "SSH Public Key" field
  4. Paste the entire output from step 1 into that field
  5. Scroll down and click Update

Step 4: Add the private key to GitHub Secrets

  1. Copy the private key:
    cat ~/.ssh/aur_key
  2. Go to this repo's Settings → Secrets → Actions
  3. Click "New repository secret"
  4. Name: AUR_SSH_PRIVATE_KEY
  5. Value: paste the entire private key (including the -----BEGIN and -----END lines)
  6. Click "Add secret"

Step 5: You're done

From now on, every time you create a new release (either through the existing Release workflow or manually), the AUR package will be updated automatically. The workflow:

  1. Detects the new release version
  2. Downloads the AppImage artifacts
  3. Computes SHA256 checksums
  4. Updates the PKGBUILD with the new version + checksums
  5. Pushes to AUR

You can also trigger it manually from Actions → "Publish to AUR" → "Run workflow" if you ever need to re-publish.


What Arch users will do to install

# Using an AUR helper (e.g. yay, paru)
yay -S linear-linux-bin

# Or manually
git clone https://aur.archlinux.org/linear-linux-bin.git
cd linear-linux-bin
makepkg -si

Files added

File What it does
aur/PKGBUILD The AUR build recipe — downloads the AppImage, extracts it, installs binary + desktop entry + icons
aur/.SRCINFO AUR metadata (auto-regenerated by the CI on each publish)
.github/workflows/aur-publish.yml GitHub Action that runs on every release and pushes to AUR

rursache added 2 commits April 3, 2026 14:16
- Add PKGBUILD and .SRCINFO for `linear-linux-bin` AUR package
- Add GitHub Actions workflow to auto-publish to AUR on each release
- Supports both x86_64 and aarch64 architectures
@selimaj-dev
Copy link
Copy Markdown
Owner

Thank you, i will check this out, but i'm currently hard focusing on another project

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants