源码快照 @ 2026-09-02 (source-only, 剔除非源码素材)
This commit is contained in:
@@ -0,0 +1,27 @@
|
||||
pkgbase = openwork
|
||||
pkgdesc = An Open source alternative to Claude Cowork
|
||||
pkgver = 0.0.0
|
||||
pkgrel = 1
|
||||
url = https://github.com/different-ai/openwork
|
||||
arch = x86_64
|
||||
arch = aarch64
|
||||
license = MIT
|
||||
depends = gtk3
|
||||
depends = nss
|
||||
depends = alsa-lib
|
||||
depends = libxss
|
||||
depends = libxtst
|
||||
depends = xdg-utils
|
||||
depends = at-spi2-core
|
||||
depends = libdrm
|
||||
depends = libxkbcommon
|
||||
depends = mesa
|
||||
depends = dbus
|
||||
depends = hicolor-icon-theme
|
||||
options = !strip
|
||||
source_x86_64 = openwork-0.0.0-x64.tar.gz::https://github.com/different-ai/openwork/releases/download/v0.0.0/openwork-linux-x64-0.0.0.tar.gz
|
||||
sha256sums_x86_64 = 0000000000000000000000000000000000000000000000000000000000000000
|
||||
source_aarch64 = openwork-0.0.0-arm64.tar.gz::https://github.com/different-ai/openwork/releases/download/v0.0.0/openwork-linux-arm64-0.0.0.tar.gz
|
||||
sha256sums_aarch64 = 0000000000000000000000000000000000000000000000000000000000000000
|
||||
|
||||
pkgname = openwork
|
||||
@@ -0,0 +1,63 @@
|
||||
# TEMPLATE — the committed copy is never release-specific. The release
|
||||
# workflow renders pkgver + sha256sums via scripts/aur/update-aur.sh in the
|
||||
# CI workspace and pushes the result to aur.archlinux.org only. Edit this
|
||||
# file for packaging logic changes; never commit a real version here.
|
||||
pkgname=openwork
|
||||
pkgver=0.0.0
|
||||
pkgrel=1 # pkgrel should change when PKGBUILD does. Standard is to change back to 1 next time. Any interger is valid.
|
||||
pkgdesc="An Open source alternative to Claude Cowork"
|
||||
arch=('x86_64' 'aarch64')
|
||||
url="https://github.com/different-ai/openwork"
|
||||
license=('MIT')
|
||||
depends=('gtk3' 'nss' 'alsa-lib' 'libxss' 'libxtst' 'xdg-utils' 'at-spi2-core' 'libdrm' 'libxkbcommon' 'mesa' 'dbus' 'hicolor-icon-theme')
|
||||
options=(!strip)
|
||||
|
||||
# Architecture-specific sources and checksums
|
||||
source_x86_64=("${pkgname}-${pkgver}-x64.tar.gz::${url}/releases/download/v${pkgver}/openwork-linux-x64-${pkgver}.tar.gz")
|
||||
sha256sums_x86_64=('0000000000000000000000000000000000000000000000000000000000000000')
|
||||
|
||||
source_aarch64=("${pkgname}-${pkgver}-arm64.tar.gz::${url}/releases/download/v${pkgver}/openwork-linux-arm64-${pkgver}.tar.gz")
|
||||
sha256sums_aarch64=('0000000000000000000000000000000000000000000000000000000000000000')
|
||||
|
||||
package() {
|
||||
cd "${srcdir}"
|
||||
|
||||
local bundle_dir
|
||||
case "${CARCH}" in
|
||||
x86_64)
|
||||
bundle_dir="openwork-linux-x64-${pkgver}"
|
||||
;;
|
||||
aarch64)
|
||||
bundle_dir="openwork-linux-arm64-${pkgver}"
|
||||
;;
|
||||
*)
|
||||
echo "Unsupported architecture: ${CARCH}" >&2
|
||||
return 1
|
||||
;;
|
||||
esac
|
||||
|
||||
install -d "${pkgdir}/opt/openwork"
|
||||
cp -a "${bundle_dir}/." "${pkgdir}/opt/openwork/"
|
||||
|
||||
install -d "${pkgdir}/usr/bin"
|
||||
ln -s /opt/openwork/@openworkdesktop "${pkgdir}/usr/bin/openwork"
|
||||
|
||||
install -Dm644 "${pkgdir}/opt/openwork/resources/app-dist/openwork-logo-square.svg" \
|
||||
"${pkgdir}/usr/share/icons/hicolor/scalable/apps/openwork.svg"
|
||||
|
||||
install -d "${pkgdir}/usr/share/applications"
|
||||
cat > "${pkgdir}/usr/share/applications/openwork.desktop" <<'EOF'
|
||||
[Desktop Entry]
|
||||
Name=OpenWork
|
||||
Comment=Run agents, skills, and MCP workflows
|
||||
Exec=openwork %U
|
||||
Terminal=false
|
||||
Type=Application
|
||||
Icon=openwork
|
||||
StartupWMClass=OpenWork
|
||||
Categories=Development;Utility;
|
||||
MimeType=x-scheme-handler/openwork;
|
||||
EOF
|
||||
|
||||
chmod 4755 "${pkgdir}/opt/openwork/chrome-sandbox"
|
||||
}
|
||||
@@ -0,0 +1,79 @@
|
||||
# Arch Linux package
|
||||
|
||||
Use this directory to build and install the OpenWork package locally on Arch Linux without Docker.
|
||||
|
||||
## What this packaging does
|
||||
|
||||
- Targets `x86_64` and `aarch64` Arch Linux.
|
||||
- Downloads the published Electron GitHub release asset for the current architecture.
|
||||
- Installs the Electron bundle under `/opt/openwork`.
|
||||
- Adds `/usr/bin/openwork`, a desktop entry, and the OpenWork icon.
|
||||
|
||||
## Prerequisites
|
||||
|
||||
- Arch Linux on `x86_64` or `aarch64`
|
||||
- `base-devel`
|
||||
- `curl`
|
||||
|
||||
Install the packaging prerequisites once:
|
||||
|
||||
```bash
|
||||
sudo pacman -S --needed base-devel curl
|
||||
```
|
||||
|
||||
## Build and install the current packaged version
|
||||
|
||||
From the repo root:
|
||||
|
||||
```bash
|
||||
cd packaging/aur
|
||||
makepkg -si
|
||||
```
|
||||
|
||||
That will:
|
||||
|
||||
1. download the Electron tarball pinned in `PKGBUILD`
|
||||
2. build an Arch package such as `openwork-<version>-1-x86_64.pkg.tar.zst`
|
||||
3. install it locally with `pacman`
|
||||
|
||||
After install, `openwork` is available as the desktop launcher. The bundled sidecars remain inside `/opt/openwork`; the package does not claim the standalone `opencode` command.
|
||||
|
||||
## Update the package to a newer release
|
||||
|
||||
If the GitHub release version changed, refresh the packaging metadata first:
|
||||
|
||||
```bash
|
||||
scripts/aur/update-aur.sh v0.13.4
|
||||
```
|
||||
|
||||
Then rebuild:
|
||||
|
||||
```bash
|
||||
cd packaging/aur
|
||||
makepkg -si
|
||||
```
|
||||
|
||||
## Build without installing
|
||||
|
||||
```bash
|
||||
cd packaging/aur
|
||||
makepkg -s
|
||||
```
|
||||
|
||||
This leaves the built package in `packaging/aur/` so you can install it later with:
|
||||
|
||||
```bash
|
||||
sudo pacman -U openwork-<version>-1-x86_64.pkg.tar.zst
|
||||
```
|
||||
|
||||
## Verify the installed app
|
||||
|
||||
```bash
|
||||
openwork
|
||||
```
|
||||
|
||||
If you want to confirm the package contents first:
|
||||
|
||||
```bash
|
||||
pacman -Ql openwork
|
||||
```
|
||||
Reference in New Issue
Block a user