diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index f43c566a..c886950f 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -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. @@ -96,6 +96,8 @@ jobs: runs-on: ubuntu-latest steps: + - uses: actions/checkout@v4 + - uses: actions/download-artifact@v4 with: pattern: smallcode-* @@ -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 diff --git a/.qartez/index.lock b/.qartez/index.lock new file mode 100644 index 00000000..e69de29b diff --git a/.qartez/index.lock.pid b/.qartez/index.lock.pid new file mode 100644 index 00000000..7e185f14 --- /dev/null +++ b/.qartez/index.lock.pid @@ -0,0 +1 @@ +16956 \ No newline at end of file diff --git a/README.md b/README.md index dc77ce8d..82698ecc 100644 --- a/README.md +++ b/README.md @@ -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. diff --git a/install.ps1 b/install.ps1 index fab811c8..2cc18c8e 100644 --- a/install.ps1 +++ b/install.ps1 @@ -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) diff --git a/install.sh b/install.sh index c6d084a1..1b17c396 100644 --- a/install.sh +++ b/install.sh @@ -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) @@ -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 diff --git a/tmpsmallcode-artifactslinux/smallcode-Linux-X64.tar.gz b/tmpsmallcode-artifactslinux/smallcode-Linux-X64.tar.gz new file mode 100644 index 00000000..08cf0708 Binary files /dev/null and b/tmpsmallcode-artifactslinux/smallcode-Linux-X64.tar.gz differ