Skip to content
Merged
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
1 change: 1 addition & 0 deletions docs/58281bc65781121ae58aa2728f6e8036.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
58281bc65781121ae58aa2728f6e8036
271 changes: 271 additions & 0 deletions docs/export-claude-design-project.html

Large diffs are not rendered by default.

1 change: 1 addition & 0 deletions docs/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -189,6 +189,7 @@
<a href="#how">How it works</a>
<a href="#install">Install</a>
<a href="#safety" class="hide-sm">Safety</a>
<a href="export-claude-design-project.html" class="hide-sm">Guide</a>
<a href="reverse-engineering-claude-design.html" class="hide-sm">Build&nbsp;log</a>
<a href="https://github.com/somework/dsx">GitHub&nbsp;↗</a>
</nav>
Expand Down
5 changes: 5 additions & 0 deletions docs/sitemap.xml
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,11 @@
<changefreq>weekly</changefreq>
<priority>1.0</priority>
</url>
<url>
<loc>https://somework.github.io/dsx/export-claude-design-project.html</loc>
<changefreq>monthly</changefreq>
<priority>0.9</priority>
</url>
<url>
<loc>https://somework.github.io/dsx/reverse-engineering-claude-design.html</loc>
<changefreq>monthly</changefreq>
Expand Down
17 changes: 17 additions & 0 deletions packaging/aur/.SRCINFO
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
pkgbase = dsx-bin
pkgdesc = Sync files between a Claude Design project and a local directory, without the bytes passing through a model's context
pkgver = 0.1.2
pkgrel = 1
url = https://github.com/somework/dsx
arch = x86_64
arch = aarch64
license = MIT
provides = dsx
conflicts = dsx
options = !strip
source_x86_64 = dsx-0.1.2-x86_64.tar.gz::https://github.com/somework/dsx/releases/download/v0.1.2/dsx_0.1.2_linux_amd64.tar.gz
sha256sums_x86_64 = 288e5f68ef6bb5751837ba47e19406b4611a504a449d040b732161c4d4d57fd5
source_aarch64 = dsx-0.1.2-aarch64.tar.gz::https://github.com/somework/dsx/releases/download/v0.1.2/dsx_0.1.2_linux_arm64.tar.gz
sha256sums_aarch64 = 076f6a2aa08444e9f0c38d97c12786f786c8cbe1c76ff5d0d6b151f9ea5fff85

pkgname = dsx-bin
26 changes: 26 additions & 0 deletions packaging/aur/PKGBUILD
Original file line number Diff line number Diff line change
@@ -0,0 +1,26 @@
# Maintainer: somework <https://github.com/somework/dsx>
pkgname=dsx-bin
pkgver=0.1.2
pkgrel=1
pkgdesc="Sync files between a Claude Design project and a local directory, without the bytes passing through a model's context"
arch=('x86_64' 'aarch64')
url="https://github.com/somework/dsx"
license=('MIT')
provides=('dsx')
conflicts=('dsx')
options=('!strip')
source_x86_64=("dsx-${pkgver}-x86_64.tar.gz::${url}/releases/download/v${pkgver}/dsx_${pkgver}_linux_amd64.tar.gz")
source_aarch64=("dsx-${pkgver}-aarch64.tar.gz::${url}/releases/download/v${pkgver}/dsx_${pkgver}_linux_arm64.tar.gz")
sha256sums_x86_64=('288e5f68ef6bb5751837ba47e19406b4611a504a449d040b732161c4d4d57fd5')
sha256sums_aarch64=('076f6a2aa08444e9f0c38d97c12786f786c8cbe1c76ff5d0d6b151f9ea5fff85')

package() {
install -Dm755 dsx "${pkgdir}/usr/bin/dsx"
install -Dm644 LICENSE "${pkgdir}/usr/share/licenses/${pkgname}/LICENSE"
install -Dm644 README.md "${pkgdir}/usr/share/doc/${pkgname}/README.md"

# Shell completions, generated by the shipped binary (offline, no network, no auth).
./dsx completion bash | install -Dm644 /dev/stdin "${pkgdir}/usr/share/bash-completion/completions/dsx"
./dsx completion zsh | install -Dm644 /dev/stdin "${pkgdir}/usr/share/zsh/site-functions/_dsx"
./dsx completion fish | install -Dm644 /dev/stdin "${pkgdir}/usr/share/fish/vendor_completions.d/dsx.fish"
}
37 changes: 37 additions & 0 deletions packaging/aur/README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,37 @@
# AUR packaging for dsx

`PKGBUILD` and `.SRCINFO` for the [`dsx-bin`](https://aur.archlinux.org/packages/dsx-bin)
Arch User Repository package. It installs the pre-compiled binary from a GitHub release
(there is no `dsx` source package; the source lives in this repo and builds with `go install`).

This directory is the canonical source. Publishing to the AUR is manual, by a maintainer with
an AUR account and an SSH key registered there — the same split as the Homebrew tap.

## Update on a new release

1. Bump `pkgver` in `PKGBUILD` to the new version (and reset `pkgrel=1`).
2. Refresh both checksums from the release's `checksums.txt`:

```sh
gh release download vX.Y.Z --repo somework/dsx --pattern checksums.txt --output -
```

Copy the `linux_amd64` sum into `sha256sums_x86_64` and `linux_arm64` into
`sha256sums_aarch64`.
3. Regenerate `.SRCINFO` (on an Arch box) or edit it by hand to match:

```sh
makepkg --printsrcinfo > .SRCINFO
```

## Publish to the AUR

```sh
git clone ssh://aur@aur.archlinux.org/dsx-bin.git
cp PKGBUILD .SRCINFO dsx-bin/
cd dsx-bin
git commit -am "upgpkg: dsx-bin X.Y.Z"
git push
```

Test locally first with `makepkg -si` in a clean checkout.