aboutsummarylogtreecommitdiffstats
path: root/README.md
blob: 4a51175cf5018ef695abe75247c55ef484c54e96 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
# AUR Package for GSDB

This directory contains the files needed to publish GSDB to the Arch User Repository (AUR).

## Package Variants

- **PKGBUILD** - Builds from source (recommended for AUR)
- **PKGBUILD-bin** - Pre-built binary package (for faster installation)

## Publishing to AUR

### Prerequisites

1. Create an AUR account at https://aur.archlinux.org/register/
2. Generate an SSH key and add it to your AUR account:
   ```bash
   ssh-keygen -t ed25519 -C "ginkcode@gmail.com"
   # Copy the public key to your AUR account settings
   ```

### First-time Setup

```bash
# Clone the AUR package repository
git clone ssh://aur@aur.archlinux.org/gsdb.git
cd gsdb

# Copy the package files
cp /path/to/gsdb/pkg/aur/PKGBUILD .
cp /path/to/gsdb/pkg/aur/.SRCINFO .
cp /path/to/gsdb/pkg/aur/gsdb.desktop .

# Generate .SRCINFO
makepkg --printsrcinfo > .SRCINFO

# Commit and push
git add PKGBUILD .SRCINFO gsdb.desktop
git commit -m "Initial upload"
git push
```

### Updating the Package

1. Update the version in `PKGBUILD` and `.SRCINFO`
2. Update checksums if needed:
   ```bash
   updpkgsums
   makepkg --printsrcinfo > .SRCINFO
   ```
3. Commit and push changes

## Local Testing

To test the package locally before publishing:

```bash
cd pkg/aur
makepkg -si
```

This will build and install the package on your local system.

## Binary Package (gsdb-bin)

For the `-bin` variant, you need to:

1. Build the AppImage:

   ```bash
   npm run tauri build -- --bundles appimage
   ```

2. Create a GitHub release with the AppImage

3. Update the download URL in `PKGBUILD-bin`

4. Publish to AUR as `gsdb-bin`