Skip to content

Commit 53fd466

Browse files
81reaplovasoa
andauthored
fix(release) :: update macOS binary to Apple Silicon (#1488)
* fix(release) :: update macOS binary to Apple Silicon Before `sqlpage-macos.tgz` was built for x86_64 and relied on Apple's Rosetta translation layer to run it. As of macOS 26, [Apple Silicon macs no longer ship with Rosetta](https://developer.apple.com/news/?id=w5ngl9k2). As of macOS 27, [Apple drops drops support for Intel macs](https://9to5mac.com/2026/09/01/apple-tells-mac-app-store-developers-they-can-now-drop-intel-support/). So now SQLPage ships arm64 tarballs to continue working on macs running in 2027. * docs: guide macOS users through Homebrew installation --------- Co-authored-by: Ophir Lojkine <contact@ophir.dev>
1 parent 70359bb commit 53fd466

4 files changed

Lines changed: 32 additions & 12 deletions

File tree

‎.github/workflows/release.yml‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@ jobs:
2626
target: x86_64-pc-windows-msvc
2727
features: ""
2828
- os: macos-latest
29-
target: x86_64-apple-darwin
29+
target: aarch64-apple-darwin
3030
features: "odbc-static"
3131
steps:
3232
- uses: actions/checkout@v7

‎CHANGELOG.md‎

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
# CHANGELOG.md
22

33
## v0.47.0 (unreleased)
4+
- **Mac users:** the downloadable `sqlpage-macos.tgz` now runs natively on Apple silicon (M-series Macs) and no longer runs on Intel Macs. Homebrew remains the recommended and easiest installation method. On an Intel Mac, [install Homebrew](https://brew.sh/) if needed, then run `brew install sqlpage` (or `brew update` followed by `brew upgrade sqlpage` if you already installed it with Homebrew). Open Terminal in your existing website folder and run `sqlpage` instead of `./sqlpage.bin`; keep your SQL files, database, and `sqlpage` configuration folder in place. Intel installations may build from source and take longer; see the [macOS installation guide](https://sql-page.com/your-first-sql-website/?os=macos#download) for setup and older macOS requirements.
45
- Updated sqlx-oldapi to v0.6.57 to fix SQL Server fallback expressions such as `ISNULL($missing, 'default')` truncating defaults or failing for date values when the bound variable is `NULL`.
56
- Fixed MSSQL `JSON_OBJECT('key': value)` expressions being rejected by SQLPage's parser, including when used in `SET` statements or nested in `sqlpage.*` function calls.
67
- OIDC now checks both normalized request paths and their resolved SQL files against protected prefixes, closing authentication bypasses through path and clean-URL aliases. Nonce verification also rejects provider-returned Argon2 parameters outside SQLPage's fixed low-cost profile before hashing.

‎README.md‎

Lines changed: 9 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -143,8 +143,9 @@ select
143143

144144
### Using executables
145145

146-
The easiest way to get started is to download the latest release from the
146+
Download the latest release from the
147147
[releases page](https://github.com/sqlpage/SQLPage/releases).
148+
On macOS, [Homebrew](#on-macos-with-homebrew) is the recommended and easiest installation method.
148149

149150
- Download the binary that corresponds to your operating system (linux, macos, or windows).
150151
- Uncompress it: `tar -xzf sqlpage-*.tgz`
@@ -172,21 +173,24 @@ To run on a server, you can use [the docker image](https://hub.docker.com/r/lova
172173
COPY --from=lovasoa/sqlpage:main /usr/local/bin/sqlpage /usr/local/bin/sqlpage
173174
```
174175

175-
We provide compiled binaries only for the x86_64 architecture, but provide docker images for other architectures, including arm64 and armv7. If you want to run SQLPage on a Raspberry Pi or
176+
We provide release binaries for Linux and Windows on x86_64, and macOS on Apple silicon (arm64). Intel Mac users should use [Homebrew](#on-macos-with-homebrew). We also provide docker images for arm64 and armv7. If you want to run SQLPage on a Raspberry Pi or
176177
a cheaper ARM cloud instance, using the docker image is the easiest way to do it.
177178

178179
### Hosting
179180

180181
For managed SQLPage hosting, use [DataPage](https://datapage.app). To run SQLPage yourself on a VPS, [Hostinger](https://www.hostg.xyz/aff_c?offer_id=815&aff_id=243720&url_id=6808) is another option; this is an affiliate link, so we receive a small commission if you buy through it.
181182

182-
### On Mac OS, with homebrew
183+
### On macOS, with Homebrew
183184

184-
An alternative for Mac OS users is to use [SQLPage's homebrew package](https://formulae.brew.sh/formula/sqlpage).
185+
[SQLPage's Homebrew package](https://formulae.brew.sh/formula/sqlpage) is the recommended way to install SQLPage on macOS, including Intel Macs.
185186
186-
- [Install homebrew](https://brew.sh/)
187+
- [Install Homebrew](https://brew.sh/) and follow the installer's instructions to add `brew` to your PATH.
187188
- In a terminal, run the following commands:
188189
- `brew install sqlpage`
189190

191+
To update an existing Homebrew installation, run `brew update` followed by `brew upgrade sqlpage`.
192+
Run `sqlpage` from your website folder. If you previously downloaded `sqlpage.bin`, use `sqlpage` instead of `./sqlpage.bin`; your website files and configuration stay in place.
193+
Intel Macs may need to build from source. See the [macOS installation guide](https://sql-page.com/your-first-sql-website/?os=macos#download) for details and older macOS requirements.
190194

191195
### ODBC Setup
192196

Lines changed: 21 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,18 +1,33 @@
1-
# Download SQLPage for Mac OS
1+
# Install SQLPage on macOS
22

3-
On Mac OS, Apple blocks the execution of downloaded files by default. The easiest way to run SQLPage is to use [Homebrew](https://brew.sh).
4-
Open a terminal and run the following commands:
3+
The recommended and easiest way to install SQLPage on macOS is [Homebrew](https://brew.sh/), including on Intel Macs.
4+
If you do not already have Homebrew, open Terminal and run:
55

66
```sh
77
/bin/bash -c "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/HEAD/install.sh)"
8+
```
9+
10+
Follow the installer's **Next steps** to add Homebrew to your PATH. Then install SQLPage:
11+
12+
```sh
813
brew install sqlpage
9-
sqlpage
1014
```
1115

16+
Open Terminal in your website folder and run `sqlpage` to start your website.
17+
To update SQLPage later, run `brew update` followed by `brew upgrade sqlpage`.
18+
19+
**Using an Intel Mac?** Starting with SQLPage v0.47.0, the `sqlpage-macos.tgz` download is for Apple silicon (M-series Macs) only.
20+
Use Homebrew on Intel Macs. If you previously used the downloaded executable, keep your SQL files, database, and `sqlpage` configuration folder in place and run `sqlpage` from the same website folder instead of `./sqlpage.bin`.
21+
If SQLPage is already installed through Homebrew, use the upgrade commands above.
22+
23+
Homebrew may compile SQLPage and its dependencies from source on Intel Macs, so installation can take longer.
24+
Source builds require Apple's Command Line Tools, which you can install with `xcode-select --install`.
25+
Homebrew classifies Intel Macs as Tier 3 (limited support); older macOS versions also have restrictions. Check [Homebrew's macOS requirements](https://docs.brew.sh/Installation#macos-requirements) if installation fails.
26+
1227
> **Note**: Advanced users can alternatively install SQLPage using
13-
> [the precompiled binaries](https://github.com/sqlpage/SQLPage/releases/latest),
28+
> [the precompiled binaries for Apple silicon](https://github.com/sqlpage/SQLPage/releases/latest),
1429
> [docker](https://hub.docker.com/repository/docker/lovasoa/SQLPage/general),
1530
> [nix](https://search.nixos.org/packages?channel=unstable&show=sqlpage),
1631
> or [cargo](https://crates.io/crates/sqlpage).
1732
18-
> **Not on Mac OS?** See the instructions for [Windows](?os=windows#download), or for [Other Systems](?os=any#download).
33+
> **Not on Mac OS?** See the instructions for [Windows](?os=windows#download), or for [Other Systems](?os=any#download).

0 commit comments

Comments
 (0)