Skip to content

Commit 82fe6ae

Browse files
committed
fix(release): unblock macos installer builds
1 parent 4ac0f4d commit 82fe6ae

File tree

5 files changed

+26
-8
lines changed

5 files changed

+26
-8
lines changed

apps/desktop/src-tauri/tauri.conf.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
{
22
"$schema": "https://schema.tauri.app/config/2",
33
"productName": "OpenLinear",
4-
"version": "0.1.29",
4+
"version": "0.1.30",
55
"identifier": "com.openlinear.app",
66
"build": {
77
"beforeDevCommand": "PORT=3000 pnpm --filter @openlinear/desktop-ui dev",

packages/openlinear/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "openlinear",
3-
"version": "0.1.29",
3+
"version": "0.1.30",
44
"description": "OpenLinear launcher, installer, and validation utilities",
55
"license": "MIT",
66
"repository": {

packaging/aur/openlinear-bin/.SRCINFO

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
pkgbase = openlinear-bin
22
pkgdesc = AI-powered project management that actually writes the code — desktop app
3-
pkgver = 0.1.29
3+
pkgver = 0.1.30
44
pkgrel = 1
55
url = https://github.com/kaizen403/openlinear
66
arch = x86_64
@@ -12,9 +12,9 @@ pkgbase = openlinear-bin
1212
optdepends = xdg-utils: open links in browser
1313
provides = openlinear
1414
conflicts = openlinear
15-
source = openlinear-0.1.29-x86_64.AppImage::https://github.com/kaizen403/openlinear/releases/download/v0.1.29/openlinear-0.1.29-x86_64.AppImage
15+
source = openlinear-0.1.30-x86_64.AppImage::https://github.com/kaizen403/openlinear/releases/download/v0.1.30/openlinear-0.1.30-x86_64.AppImage
1616
source = openlinear.desktop
17-
source = openlinear.png::https://raw.githubusercontent.com/kaizen403/openlinear/v0.1.29/apps/desktop/src-tauri/icons/icon.png
17+
source = openlinear.png::https://raw.githubusercontent.com/kaizen403/openlinear/v0.1.30/apps/desktop/src-tauri/icons/icon.png
1818
sha256sums = SKIP
1919
sha256sums = SKIP
2020
sha256sums = SKIP

packaging/aur/openlinear-bin/PKGBUILD

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
# Maintainer: kaizen403 <kaizen403@proton.me>
22
pkgname=openlinear-bin
3-
pkgver=0.1.29
3+
pkgver=0.1.30
44
pkgrel=1
55
pkgdesc="AI-powered project management that actually writes the code — desktop app"
66
arch=('x86_64')

scripts/sync-aur-metadata.sh

Lines changed: 20 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,24 @@ PACKAGE_VERSION="$(node -p "require('./packages/openlinear/package.json').versio
1212
TAURI_VERSION="$(node -p "require('./apps/desktop/src-tauri/tauri.conf.json').version")"
1313
VERSION="${1:-$PACKAGE_VERSION}"
1414

15+
replace_line() {
16+
local file="$1"
17+
local pattern="$2"
18+
local replacement="$3"
19+
local tmp
20+
tmp="$(mktemp)"
21+
22+
awk -v pattern="$pattern" -v replacement="$replacement" '
23+
$0 ~ pattern {
24+
print replacement
25+
next
26+
}
27+
{ print }
28+
' "$file" > "$tmp"
29+
30+
mv "$tmp" "$file"
31+
}
32+
1533
if [ "$PACKAGE_VERSION" != "$VERSION" ]; then
1634
echo "packages/openlinear/package.json version ($PACKAGE_VERSION) does not match requested version ($VERSION)." >&2
1735
exit 1
@@ -22,8 +40,8 @@ if [ "$TAURI_VERSION" != "$VERSION" ]; then
2240
exit 1
2341
fi
2442

25-
sed -i "s/^pkgver=.*/pkgver=${VERSION}/" "$PKGBUILD"
26-
sed -i "s/^pkgrel=.*/pkgrel=1/" "$PKGBUILD"
43+
replace_line "$PKGBUILD" "^pkgver=" "pkgver=${VERSION}"
44+
replace_line "$PKGBUILD" "^pkgrel=" "pkgrel=1"
2745

2846
cat > "$SRCINFO" <<EOF
2947
pkgbase = openlinear-bin

0 commit comments

Comments
 (0)