@bniladridas/cursor 0.1.11 → 0.1.13
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 +28 -3
- package/Formula/cursor.rb +8 -3
- package/package.json +1 -1
- package/release/checksums.txt +3 -3
- package/release/cursor-linux/cursor_v0.1.13_linux_amd64.tar.gz +0 -0
- package/release/cursor-macos/cursor_v0.1.13_darwin_arm64.tar.gz +0 -0
- package/release/cursor-windows/cursor__windows_amd64.zip +0 -0
- package/release/cursor-linux/cursor_v0.1.11_linux_amd64.tar.gz +0 -0
- package/release/cursor-macos/cursor_v0.1.11_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}')"
|
|
@@ -48,24 +48,37 @@ jobs:
|
|
|
48
48
|
- name: Install dependencies
|
|
49
49
|
run: |
|
|
50
50
|
export HOMEBREW_NO_REQUIRE_TAP_TRUST=1
|
|
51
|
-
brew install cmake nlohmann-json
|
|
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 release/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.13.tar.gz"
|
|
5
|
+
sha256 "11aa460a091e963cd09ac245eb10d0ed32997754687768b90c0c916f31b44552"
|
|
6
6
|
license "Apache-2.0"
|
|
7
7
|
|
|
8
|
+
bottle do
|
|
9
|
+
root_url "https://github.com/bniladridas/cursor/archive/refs/tags/v0.1.13.tar.gz"
|
|
10
|
+
sha256 arm64_sequoia: "PLACEHOLDER"
|
|
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,3 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
1
|
+
9db7500f5abc1fd7902b77234e1a82b973f6b2e9f028234d91b9a0e6e3f1252a release/cursor-macos/cursor_v0.1.13_darwin_arm64.tar.gz
|
|
2
|
+
afcb8af0f7b9c5634dc44b798eb4bcf937541052dcca06716acdf61065917276 release/cursor-linux/cursor_v0.1.13_linux_amd64.tar.gz
|
|
3
|
+
556494ab6d7fa4078763d69973bd9a545cdf43e1263fbe4b682012193cef5e73 release/cursor-windows/cursor__windows_amd64.zip
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|