@bniladridas/cursor 0.1.12 → 0.1.14
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/.github/workflows/formula-sha.yml +2 -0
- package/.github/workflows/release.yml +27 -2
- package/Formula/cursor.rb +8 -3
- package/package.json +1 -1
- package/release/checksums.txt +4 -3
- package/release/cursor-linux/cursor_v0.1.14_linux_amd64.tar.gz +0 -0
- package/release/cursor-macos/cursor-0.1.14.arm64_sequoia.bottle.tar.gz +0 -0
- package/release/cursor-macos/cursor_v0.1.14_darwin_arm64.tar.gz +0 -0
- package/release/cursor-windows/cursor__windows_amd64.zip +0 -0
- package/release/cursor-linux/cursor_v0.1.12_linux_amd64.tar.gz +0 -0
- package/release/cursor-macos/cursor_v0.1.12_darwin_arm64.tar.gz +0 -0
|
@@ -42,6 +42,8 @@ jobs:
|
|
|
42
42
|
TAG="$tag" SHA="$sha" ruby -0pi -e 'gsub(/url "https:\/\/github\.com\/bniladridas\/cursor\/archive\/refs\/tags\/v[^\"]+\.tar\.gz"/, "url \"https:\/\/github.com\/bniladridas\/cursor\/archive\/refs\/tags\/#{ENV.fetch("TAG")}.tar.gz\""); gsub(/sha256 "[0-9a-f]{64}"/, "sha256 \"#{ENV.fetch("SHA")}\"")' Formula/cursor.rb
|
|
43
43
|
rm source.tar.gz
|
|
44
44
|
|
|
45
|
+
sed -i "s|root_url \".*\"|root_url \"https://github.com/bniladridas/cursor/releases/download/${tag}\"|" Formula/cursor.rb
|
|
46
|
+
|
|
45
47
|
bottle_url="https://github.com/bniladridas/cursor/releases/download/${tag}/cursor-${version}.arm64_sequoia.bottle.tar.gz"
|
|
46
48
|
if curl -fsSL "$bottle_url" -o bottle.tar.gz; then
|
|
47
49
|
bottle_sha="$(sha256sum bottle.tar.gz | awk '{print $1}')"
|
|
@@ -49,23 +49,36 @@ jobs:
|
|
|
49
49
|
run: |
|
|
50
50
|
export HOMEBREW_NO_REQUIRE_TAP_TRUST=1
|
|
51
51
|
brew install cmake nlohmann-json
|
|
52
|
+
# remove brew curl/cpr so cmake uses system curl and builds cpr from source
|
|
53
|
+
brew uninstall --ignore-dependencies curl cpr 2>/dev/null || true
|
|
52
54
|
|
|
53
55
|
- name: Configure
|
|
54
|
-
run:
|
|
56
|
+
run: |
|
|
57
|
+
SDK=$(xcrun --show-sdk-path)
|
|
58
|
+
cmake -S . -B build -DCMAKE_BUILD_TYPE=Release \
|
|
59
|
+
-DCURL_INCLUDE_DIR="$SDK/usr/include" \
|
|
60
|
+
-DCURL_LIBRARY="$SDK/usr/lib/libcurl.tbd"
|
|
55
61
|
|
|
56
62
|
- name: Build
|
|
57
63
|
run: cmake --build build --config Release
|
|
58
64
|
|
|
59
65
|
- name: Package
|
|
60
66
|
run: |
|
|
67
|
+
version="${GITHUB_REF_NAME#v}"
|
|
61
68
|
mkdir -p release
|
|
62
69
|
cp build/bin/cursor-agent release/cursor-macos
|
|
63
70
|
cd release && tar -czf cursor_${GITHUB_REF_NAME}_darwin_arm64.tar.gz cursor-macos
|
|
71
|
+
# build bottle
|
|
72
|
+
mkdir -p bottle/cursor/${version}/bin
|
|
73
|
+
cp ../build/bin/cursor-agent bottle/cursor/${version}/bin/cursor-agent
|
|
74
|
+
tar -C bottle -czf cursor-${version}.arm64_sequoia.bottle.tar.gz cursor
|
|
64
75
|
|
|
65
76
|
- uses: actions/upload-artifact@v6
|
|
66
77
|
with:
|
|
67
78
|
name: cursor-macos
|
|
68
|
-
path:
|
|
79
|
+
path: |
|
|
80
|
+
release/*.tar.gz
|
|
81
|
+
release/*.bottle.tar.gz
|
|
69
82
|
|
|
70
83
|
windows:
|
|
71
84
|
runs-on: windows-latest
|
|
@@ -135,6 +148,14 @@ jobs:
|
|
|
135
148
|
curl -sL "https://github.com/bniladridas/cursor/archive/refs/tags/${GITHUB_REF_NAME}.tar.gz" -o /tmp/source.tar.gz
|
|
136
149
|
echo "SOURCE_SHA=$(sha256sum /tmp/source.tar.gz | cut -d' ' -f1)" >> $GITHUB_ENV
|
|
137
150
|
|
|
151
|
+
- name: Compute bottle SHA
|
|
152
|
+
run: |
|
|
153
|
+
version="${GITHUB_REF_NAME#v}"
|
|
154
|
+
bottle=$(find release -name "*.bottle.tar.gz" | head -1)
|
|
155
|
+
if [ -n "$bottle" ]; then
|
|
156
|
+
echo "BOTTLE_SHA=$(sha256sum "$bottle" | cut -d' ' -f1)" >> $GITHUB_ENV
|
|
157
|
+
fi
|
|
158
|
+
|
|
138
159
|
- name: Publish release
|
|
139
160
|
env:
|
|
140
161
|
GH_TOKEN: ${{ steps.app-token.outputs.token }}
|
|
@@ -150,6 +171,10 @@ jobs:
|
|
|
150
171
|
version="${GITHUB_REF_NAME#v}"
|
|
151
172
|
sed -i "s|url \".*\"|url \"https://github.com/bniladridas/cursor/archive/refs/tags/${GITHUB_REF_NAME}.tar.gz\"|" Formula/cursor.rb
|
|
152
173
|
sed -i "s|sha256 \".*\"|sha256 \"${SOURCE_SHA}\"|" Formula/cursor.rb
|
|
174
|
+
sed -i "s|root_url \".*\"|root_url \"https://github.com/bniladridas/cursor/releases/download/${GITHUB_REF_NAME}\"|" Formula/cursor.rb
|
|
175
|
+
if [ -n "${BOTTLE_SHA}" ]; then
|
|
176
|
+
sed -i "s|sha256 arm64_sequoia: \".*\"|sha256 arm64_sequoia: \"${BOTTLE_SHA}\"|" Formula/cursor.rb
|
|
177
|
+
fi
|
|
153
178
|
|
|
154
179
|
- name: Update package version
|
|
155
180
|
run: |
|
package/Formula/cursor.rb
CHANGED
|
@@ -1,16 +1,21 @@
|
|
|
1
1
|
class Cursor < Formula
|
|
2
2
|
desc "Professional AI agent with command execution and file operations"
|
|
3
3
|
homepage "https://github.com/bniladridas/cursor"
|
|
4
|
-
url "https://github.com/bniladridas/cursor/archive/refs/tags/v0.1.
|
|
5
|
-
sha256 "
|
|
4
|
+
url "https://github.com/bniladridas/cursor/archive/refs/tags/v0.1.14.tar.gz"
|
|
5
|
+
sha256 "676c6dcaeefa4dc048793cd2baca0c36c3ae34c6122045ad97040df6d27354c5"
|
|
6
6
|
license "Apache-2.0"
|
|
7
7
|
|
|
8
|
+
bottle do
|
|
9
|
+
root_url "https://github.com/bniladridas/cursor/releases/download/v0.1.14"
|
|
10
|
+
sha256 arm64_sequoia: "5b0e27c981ba711dbaa88c1409ce80145343106d725eb8cbb711d85b3fc40154"
|
|
11
|
+
end
|
|
12
|
+
|
|
8
13
|
depends_on "cmake" => :build
|
|
9
14
|
depends_on "cpr"
|
|
10
15
|
depends_on "nlohmann-json"
|
|
11
16
|
|
|
12
17
|
def install
|
|
13
|
-
system "cmake", "-S", ".", "-B", "build", "-DCURSOR_BUILD_TESTS=OFF", *std_cmake_args
|
|
18
|
+
system "cmake", "-S", ".", "-B", "build", "-DCURSOR_BUILD_TESTS:BOOL=OFF", *std_cmake_args
|
|
14
19
|
system "cmake", "--build", "build"
|
|
15
20
|
bin.install "build/bin/cursor-agent"
|
|
16
21
|
|
package/package.json
CHANGED
package/release/checksums.txt
CHANGED
|
@@ -1,3 +1,4 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
1
|
+
5b0e27c981ba711dbaa88c1409ce80145343106d725eb8cbb711d85b3fc40154 release/cursor-macos/cursor-0.1.14.arm64_sequoia.bottle.tar.gz
|
|
2
|
+
3b5ef1209208058ead569f4061e1379361b8437f76212d976ac2adec3f9685ee release/cursor-macos/cursor_v0.1.14_darwin_arm64.tar.gz
|
|
3
|
+
f846e206c45f740ef96ef5bcabb5696aa27f1bbc03bb7acc8b6c0cddf1a32597 release/cursor-linux/cursor_v0.1.14_linux_amd64.tar.gz
|
|
4
|
+
848e52f6c50ae296fadc357763d7cad7e92fe59a90e2e1b7610e4de01d1292ba release/cursor-windows/cursor__windows_amd64.zip
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|