Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
25 changes: 23 additions & 2 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,10 +8,10 @@ name: Build and Release

on:
push:
branches: [main]
branches: [master]
tags: ['v*']
pull_request:
branches: [main]
branches: [master]

# Force JavaScript actions to run on Node.js 24 to avoid deprecation warnings.
# Node.js 20 actions are deprecated and will be removed September 16th, 2026.
Expand Down Expand Up @@ -96,6 +96,8 @@ jobs:
runs-on: ubuntu-latest

steps:
- uses: actions/checkout@v4

- uses: actions/download-artifact@v4
with:
pattern: smallcode-*
Expand All @@ -104,6 +106,25 @@ jobs:
- name: List release assets
run: ls -lh smallcode-*.tar.gz

- name: Extract changelog section for this version
run: |
TAG="${GITHUB_REF#refs/tags/}"
VERSION="${TAG#v}"
cat > .github/_extract.awk << 'AWKEOF'
BEGIN { found = 0 }
{
# Match ## [X.X.X] or ## [X.X.X-preview] style headers
if (match($0, /^## \[([0-9]+\.[0-9]+\.[0-9]+(-[a-zA-Z0-9]+)?)\]/, m)) {
if (found) exit
if (m[1] == ver) { found = 1; print; next }
}
found { print }
}
AWKEOF
awk -v ver="$VERSION" -f .github/_extract.awk CHANGELOG.md > _release_body.md || true
echo "Extracted $(wc -c < _release_body.md) bytes for version $VERSION"

- uses: softprops/action-gh-release@v2
with:
body_path: _release_body.md
files: smallcode-*.tar.gz
Empty file added .qartez/index.lock
Empty file.
1 change: 1 addition & 0 deletions .qartez/index.lock.pid
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
16956
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -41,8 +41,8 @@ Pre-compiled tarballs for Windows, macOS, and Linux are built on every release

| Platform | One‑line install |
|---|---|
| Linux / macOS | `bash <(curl -fsSL https://raw.githubusercontent.com/Doorman11991/smallcode/main/install.sh)` |
| Windows | `iwr -Uri https://raw.githubusercontent.com/Doorman11991/smallcode/main/install.ps1 -UseBasicParsing \| iex` |
| Linux / macOS | `bash <(curl -fsSL https://raw.githubusercontent.com/Doorman11991/smallcode/master/install.sh)` |
| Windows | `iwr -Uri https://raw.githubusercontent.com/Doorman11991/smallcode/master/install.ps1 -UseBasicParsing \| iex` |

The install script downloads the correct tarball for your platform, extracts it to `~/.smallcode`, and adds it to your PATH. Run `smallcode --help` to verify.

Expand Down
2 changes: 1 addition & 1 deletion install.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
# and installs it locally. No npm / node-gyp build tools needed.
#
# Usage (run as normal user, not admin):
# irm https://raw.githubusercontent.com/Zireael/smallcode/main/install.ps1 | iex
# irm https://raw.githubusercontent.com/Doorman11991/smallcode/master/install.ps1 | iex
#
# Environment variables (all optional):
# SMALLCODE_HOME Install directory (default: ~\.smallcode)
Expand Down
4 changes: 2 additions & 2 deletions install.sh
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
# Downloads the platform-specific portable tarball from GitHub Releases
# and installs it locally. No npm / node-gyp build tools needed.
#
# Usage: bash <(curl -fsSL https://raw.githubusercontent.com/Zireael/smallcode/main/install.sh)
# Usage: bash <(curl -fsSL https://raw.githubusercontent.com/Doorman11991/smallcode/master/install.sh)
#
# Environment variables (all optional):
# SMALLCODE_HOME Install directory (default: ~/.smallcode)
Expand All @@ -29,7 +29,7 @@ esac

case "${ARCH}" in
x86_64|amd64) ARCH_TAG="X64" ;;
aarch64|arm64) ARCH_TAG="Arm64" ;;
aarch64|arm64) ARCH_TAG="ARM64" ;;
*) echo "Unsupported architecture: ${ARCH}"; exit 1 ;;
esac

Expand Down
Binary file not shown.
Loading