)]}'
{
  "commit": "cf7b56ce4d39ecc2ef80b08697d029daee4ce452",
  "tree": "ca15f7d8923de1dae0f8023bb5eb7f13152f00c4",
  "parents": [
    "d76584860b562a169ac31a8e57b42f08467d9119"
  ],
  "author": {
    "name": "吴晟 Wu Sheng",
    "email": "wu.sheng@foxmail.com",
    "time": "Wed Nov 11 10:46:26 2026 +0800"
  },
  "committer": {
    "name": "GitHub",
    "email": "noreply@github.com",
    "time": "Wed Nov 11 10:46:26 2026 +0800"
  },
  "message": "Fix the quick install scripts, and test them on Linux, macOS and Windows (#245)\n\ninstall.sh and install.bat read the latest version from data/releases.yml on the website, which the website no\nlonger has, so both stopped at \"Can\u0027t get the latest version\".\n\n- Both take the version from the latest GitHub release, whose URL redirects to .../releases/tag/\u003cversion\u003e; no API\n  rate limit and no JSON to parse, in bash or cmd.\n- Both download from downloads.apache.org, falling back to archive.apache.org, which has every release but picks up\n  a new one later. Downloads go to a temporary directory that is removed afterwards.\n- install.sh installs the binary for the machine\u0027s architecture (amd64, arm64, 386) instead of always amd64, also\n  under Rosetta 2, accepts sha512sum or shasum, and uses sudo only when /usr/local/bin is not writable.\n- install.bat picks windows-386 on 32-bit Windows, checks the sha512 with Get-FileHash instead of parsing CertUtil\n  output, and adds the install directory to the system PATH once. setx wrote the merged user and system PATH into\n  the system PATH, cut it at 1024 characters, and added the directory again on every run.\n- A new Install Scripts workflow runs install.sh on ubuntu x64, ubuntu arm64 and macOS, and install.bat on Windows,\n  twice each, when the scripts change and every Monday, since an outside change broke them last time.",
  "tree_diff": [
    {
      "type": "add",
      "old_id": "0000000000000000000000000000000000000000",
      "old_mode": 0,
      "old_path": "/dev/null",
      "new_id": "598f9dfee1b8fbc03362f3c67da1ff220a753818",
      "new_mode": 33188,
      "new_path": ".github/workflows/install-scripts.yaml"
    },
    {
      "type": "modify",
      "old_id": "3ce9cabbaea1cd1f944b30db7302dd7cde34db39",
      "old_mode": 33188,
      "old_path": "CHANGES.md",
      "new_id": "c72531b6d1d20936754ad994c9266e30c29917af",
      "new_mode": 33188,
      "new_path": "CHANGES.md"
    },
    {
      "type": "modify",
      "old_id": "5797480524eb92057f9e1376268901f670740f68",
      "old_mode": 33188,
      "old_path": "scripts/install.bat",
      "new_id": "fea755ada578553d3094638c6bd1a45f660e984d",
      "new_mode": 33188,
      "new_path": "scripts/install.bat"
    },
    {
      "type": "modify",
      "old_id": "83508f3441d7c9f0ebad7dd01a07573c88bcb867",
      "old_mode": 33188,
      "old_path": "scripts/install.sh",
      "new_id": "381b9b76ba197f15935d9c3d2a9ed09fc9b3b082",
      "new_mode": 33188,
      "new_path": "scripts/install.sh"
    }
  ]
}
