Skip to content

Commit 2b81583

Browse files
Resolve rebase conflicts by adopting incoming changes
1 parent 913e0e3 commit 2b81583

File tree

6 files changed

+597
-345
lines changed

6 files changed

+597
-345
lines changed

.github/workflows/update.yml

Lines changed: 56 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@ jobs:
2929
run: bun install --frozen-lockfile
3030

3131
- name: Run update script
32-
run: bun run scripts/update-links.ts
32+
run: COMPUTE_SHA256=true bun run scripts/update-links.ts
3333
env:
3434
NOTIFICATION_SECRET: ${{ secrets.NOTIFICATION_SECRET }}
3535

@@ -49,3 +49,58 @@ jobs:
4949
git add --all
5050
git commit -m "Update Cursor download links and version history"
5151
git push
52+
53+
- name: Derive latest version
54+
id: latest
55+
if: steps.git-check.outputs.changes == 'true'
56+
run: |
57+
VERSION=$(jq -r '.versions[0].version' version-history.json)
58+
DATE=$(jq -r '.versions[0].date' version-history.json)
59+
echo "version=${VERSION}" >> $GITHUB_OUTPUT
60+
echo "date=${DATE}" >> $GITHUB_OUTPUT
61+
62+
- name: Build release notes
63+
id: notes
64+
if: steps.git-check.outputs.changes == 'true'
65+
run: |
66+
echo "Generating release notes for v${{ steps.latest.outputs.version }}"
67+
{
68+
echo "# Cursor v${{ steps.latest.outputs.version }}"
69+
echo "Released: ${{ steps.latest.outputs.date }}"
70+
echo
71+
echo "## Downloads"
72+
echo
73+
echo "| Platform | Link | Size | SHA256 |"
74+
echo "| --- | --- | --- | --- |"
75+
jq -r '
76+
.versions[0] as $v |
77+
($v.platforms | to_entries) as $p |
78+
($v.platformDetails // {}) as $d |
79+
$p[] | .key as $k | .value as $u |
80+
($d[$k].sizeBytes // null) as $sz |
81+
($d[$k].sha256 // null) as $sha |
82+
[ $k,
83+
"[Download](" + $u + ")",
84+
(if $sz then ($sz|tonumber) else null end),
85+
(if $sha then ("`" + $sha + "`") else "-" end)
86+
] | @tsv'
87+
version-history.json |
88+
awk -F"\t" '{
89+
size=$3; unit="";
90+
if (size=="") { printf "| %s | %s | - | %s |\n", $1,$2,$4; next }
91+
s=size+0; u[0]="B"; u[1]="KB"; u[2]="MB"; u[3]="GB"; i=0;
92+
while (s>=1024 && i<3) { s=s/1024; i++ }
93+
printf "| %s | %s | %.1f %s | %s |\n", $1,$2,s,u[i],$4;
94+
}'
95+
} > RELEASE_NOTES.md
96+
echo "path=RELEASE_NOTES.md" >> $GITHUB_OUTPUT
97+
98+
- name: Create GitHub release
99+
if: steps.git-check.outputs.changes == 'true'
100+
uses: softprops/action-gh-release@v2
101+
with:
102+
tag_name: v${{ steps.latest.outputs.version }}
103+
name: Cursor v${{ steps.latest.outputs.version }}
104+
body_path: ${{ steps.notes.outputs.path }}
105+
env:
106+
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}

LICENSE

Lines changed: 23 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,23 @@
1+
MIT License
2+
3+
Copyright (c) 2025 accesstechnology-mike
4+
5+
Permission is hereby granted, free of charge, to any person obtaining a copy
6+
of this software and associated documentation files (the "Software"), to deal
7+
in the Software without restriction, including without limitation the rights
8+
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
9+
copies of the Software, and to permit persons to whom the Software is
10+
furnished to do so, subject to the following conditions:
11+
12+
The above copyright notice and this permission notice shall be included in all
13+
copies or substantial portions of the Software.
14+
15+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16+
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17+
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18+
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19+
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20+
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
21+
SOFTWARE.
22+
23+

0 commit comments

Comments
 (0)