Skip to content

Commit 8321b69

Browse files
committed
Add credits and fix release publishing workflow
1 parent a22d3bb commit 8321b69

5 files changed

Lines changed: 43 additions & 18 deletions

File tree

.github/workflows/release.yml

Lines changed: 9 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@ jobs:
2727
- runner: windows-11-arm
2828
artifact_name: free-code-windows-arm64
2929
targets: windows-arm64
30-
- runner: macos-13
30+
- runner: macos-15-intel
3131
artifact_name: free-code-macos-x64
3232
targets: macos-x64
3333
- runner: macos-14
@@ -60,22 +60,27 @@ jobs:
6060
dist/release/*.zip
6161
6262
publish-release:
63-
if: startsWith(github.ref, 'refs/tags/')
63+
if: startsWith(github.ref, 'refs/tags/') && always()
6464
needs: build-release
6565
runs-on: ubuntu-latest
6666

6767
steps:
6868
- name: Download workflow artifacts
6969
uses: actions/download-artifact@v4
70+
continue-on-error: true
7071
with:
7172
path: dist/collected
7273

7374
- name: Flatten release files
7475
run: |
7576
mkdir -p dist/release
76-
find dist/collected -type f -exec cp {} dist/release/ \;
77+
if [ -d dist/collected ]; then
78+
find dist/collected -type f -exec cp {} dist/release/ \;
79+
fi
7780
7881
- name: Publish GitHub release assets
7982
uses: softprops/action-gh-release@v2
8083
with:
81-
files: dist/release/*
84+
files: |
85+
dist/release/*.tar.gz
86+
dist/release/*.zip

README.md

Lines changed: 16 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -8,12 +8,14 @@ Now with full-platform deployment: prebuilt one-command installers for Linux, ma
88

99
All telemetry stripped. All injected security-prompt guardrails removed. All experimental features unlocked. One binary, zero callbacks home.
1010

11+
> This repository extends the original reconstructed free-code work by [paoloanzn](https://github.com/paoloanzn), adding full-platform deployment, one-command installers, and GitHub Actions release automation. A preserved mirror of the original repo is available at https://gitlawb.com/node/repos/z6MkgKkb/paoloanzn-free-code
12+
1113
```bash
12-
curl -fsSL https://raw.githubusercontent.com/paoloanzn/free-code/main/install.sh | bash
14+
curl -fsSL https://raw.githubusercontent.com/Cross2pro/free-coder/main/install.sh | bash
1315
```
1416

1517
```powershell
16-
powershell -ExecutionPolicy Bypass -c "irm https://raw.githubusercontent.com/paoloanzn/free-code/main/install.ps1 | iex"
18+
powershell -ExecutionPolicy Bypass -c "irm https://raw.githubusercontent.com/Cross2pro/free-coder/main/install.ps1 | iex"
1719
```
1820

1921
> The installers now prefer prebuilt release packages for Linux, macOS, and Windows. If a matching release asset is unavailable, they fall back to building from source.
@@ -78,11 +80,11 @@ See [FEATURES.md](FEATURES.md) for the full audit of all 88 flags and their stat
7880
## Quick install
7981

8082
```bash
81-
curl -fsSL https://raw.githubusercontent.com/paoloanzn/free-code/main/install.sh | bash
83+
curl -fsSL https://raw.githubusercontent.com/Cross2pro/free-coder/main/install.sh | bash
8284
```
8385

8486
```powershell
85-
powershell -ExecutionPolicy Bypass -c "irm https://raw.githubusercontent.com/paoloanzn/free-code/main/install.ps1 | iex"
87+
powershell -ExecutionPolicy Bypass -c "irm https://raw.githubusercontent.com/Cross2pro/free-coder/main/install.ps1 | iex"
8688
```
8789

8890
On supported releases, this downloads a prebuilt binary for your platform and installs `free-code` onto your PATH. If no release asset matches, the installer falls back to a source build.
@@ -107,8 +109,8 @@ free-code
107109

108110
```bash
109111
# Clone the repo
110-
git clone https://github.com/paoloanzn/claude-code.git
111-
cd claude-code
112+
git clone https://github.com/Cross2pro/free-coder.git
113+
cd free-coder
112114

113115
# Install dependencies
114116
bun install
@@ -256,6 +258,14 @@ If this repo gets taken down, the code lives on.
256258

257259
---
258260

261+
## Credits
262+
263+
- Original product: [Anthropic Claude Code](https://docs.anthropic.com/en/docs/claude-code)
264+
- Original reconstructed free-code repository and research packaging work: [paoloanzn](https://github.com/paoloanzn)
265+
- Original reconstructed repo mirror: https://gitlawb.com/node/repos/z6MkgKkb/paoloanzn-free-code
266+
267+
---
268+
259269
## License
260270

261271
The original Claude Code source is the property of Anthropic. This fork exists because the source was publicly exposed through their npm distribution. Use at your own discretion.

README.zh-CN.md

Lines changed: 16 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -8,12 +8,14 @@
88

99
已移除全部遥测。已移除额外注入的安全提示词护栏。已解锁全部可编译的实验特性。一个二进制,无需回传。
1010

11+
> 当前仓库是在 [paoloanzn](https://github.com/paoloanzn) 最初重构的 free-code 工作基础上继续扩展而来,新增了全平台部署、一键安装器以及 GitHub Actions 自动发版能力。原始重构仓库的保留镜像见:https://gitlawb.com/node/repos/z6MkgKkb/paoloanzn-free-code
12+
1113
```bash
12-
curl -fsSL https://raw.githubusercontent.com/paoloanzn/free-code/main/install.sh | bash
14+
curl -fsSL https://raw.githubusercontent.com/Cross2pro/free-coder/main/install.sh | bash
1315
```
1416

1517
```powershell
16-
powershell -ExecutionPolicy Bypass -c "irm https://raw.githubusercontent.com/paoloanzn/free-code/main/install.ps1 | iex"
18+
powershell -ExecutionPolicy Bypass -c "irm https://raw.githubusercontent.com/Cross2pro/free-coder/main/install.ps1 | iex"
1719
```
1820

1921
> 安装器会优先下载 Linux、macOS、Windows 对应的预编译发布包。如果没有匹配的发布资产,则会自动回退为源码构建。
@@ -78,11 +80,11 @@ Claude Code 内部包含大量由 `bun:bundle` 编译期开关控制的特性标
7880
## 快速安装
7981

8082
```bash
81-
curl -fsSL https://raw.githubusercontent.com/paoloanzn/free-code/main/install.sh | bash
83+
curl -fsSL https://raw.githubusercontent.com/Cross2pro/free-coder/main/install.sh | bash
8284
```
8385

8486
```powershell
85-
powershell -ExecutionPolicy Bypass -c "irm https://raw.githubusercontent.com/paoloanzn/free-code/main/install.ps1 | iex"
87+
powershell -ExecutionPolicy Bypass -c "irm https://raw.githubusercontent.com/Cross2pro/free-coder/main/install.ps1 | iex"
8688
```
8789

8890
在已发布对应资产的情况下,安装器会下载与你平台匹配的预编译二进制并安装 `free-code` 到 PATH 中。如果没有匹配的发布包,则会自动回退为源码构建。
@@ -108,8 +110,8 @@ free-code
108110

109111
```bash
110112
# 克隆仓库
111-
git clone https://github.com/paoloanzn/claude-code.git
112-
cd claude-code
113+
git clone https://github.com/Cross2pro/free-coder.git
114+
cd free-coder
113115

114116
# 安装依赖
115117
bun install
@@ -257,6 +259,14 @@ src/
257259

258260
---
259261

262+
## 致谢
263+
264+
- 原始产品:[Anthropic Claude Code](https://docs.anthropic.com/en/docs/claude-code)
265+
- 最初的 free-code 重构仓库与研究打包工作:[paoloanzn](https://github.com/paoloanzn)
266+
- 原始重构仓库镜像:https://gitlawb.com/node/repos/z6MkgKkb/paoloanzn-free-code
267+
268+
---
269+
260270
## 许可证
261271

262272
原始 Claude Code 源码版权归 Anthropic 所有。这个分支之所以存在,是因为源码曾通过他们的 npm 分发包被公开暴露。请自行判断使用风险。

install.ps1

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
$ErrorActionPreference = 'Stop'
22

3-
$Repo = if ($env:FREE_CODE_REPO) { $env:FREE_CODE_REPO } else { 'paoloanzn/free-code' }
3+
$Repo = if ($env:FREE_CODE_REPO) { $env:FREE_CODE_REPO } else { 'Cross2pro/free-coder' }
44
$Version = if ($env:FREE_CODE_VERSION) { $env:FREE_CODE_VERSION } else { 'latest' }
55
$InstallRoot = if ($env:FREE_CODE_HOME) { $env:FREE_CODE_HOME } else { Join-Path $HOME 'AppData\Local\free-code' }
66
$BinDir = if ($env:FREE_CODE_BIN_DIR) { $env:FREE_CODE_BIN_DIR } else { Join-Path $InstallRoot 'bin' }

install.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ BOLD='\033[1m'
99
DIM='\033[2m'
1010
RESET='\033[0m'
1111

12-
REPO="${FREE_CODE_REPO:-paoloanzn/free-code}"
12+
REPO="${FREE_CODE_REPO:-Cross2pro/free-coder}"
1313
VERSION="${FREE_CODE_VERSION:-latest}"
1414
INSTALL_ROOT="${FREE_CODE_HOME:-$HOME/.free-code}"
1515
BIN_DIR="${FREE_CODE_BIN_DIR:-$HOME/.local/bin}"

0 commit comments

Comments
 (0)