Skip to content

fix: support nightly installations and auto-detect architecture in linux installer#12551

Open
Robinlovelace wants to merge 2 commits into
logseq:masterfrom
Robinlovelace:fix/install-linux-nightly
Open

fix: support nightly installations and auto-detect architecture in linux installer#12551
Robinlovelace wants to merge 2 commits into
logseq:masterfrom
Robinlovelace:fix/install-linux-nightly

Conversation

@Robinlovelace
Copy link
Copy Markdown
Contributor

This PR enhances the scripts/install-linux.sh installer script to support the "nightly" (Database version) releases and automatically detect the system architecture (x86_64 and arm64).

Changes Made:

  • Nightly Support: Added logic to resolve the nightly tag using the GitHub API (/releases/tags/nightly).
  • Architecture Detection: The script now uses uname -m to detect x86_64 or arm64 and selects the appropriate asset. It handles the x64 vs x86_64 naming variation between stable and nightly releases.
  • Robust Asset Discovery: Instead of hardcoding the URL, the script now queries the GitHub API for the specific version/tag to find the correct .zip download URL.
  • Flexible Extraction: Updated the find command to be architecture-agnostic when locating the extracted directory.

How to test:

  1. Install the latest stable version (default):
    bash scripts/install-linux.sh --user
  2. Install the nightly version:
    bash scripts/install-linux.sh nightly --user

Fixes #12550

@Robinlovelace Robinlovelace force-pushed the fix/install-linux-nightly branch from 7ddbcaa to 9148cc1 Compare May 1, 2026 23:06
@CLAassistant
Copy link
Copy Markdown

CLA assistant check
Thank you for your submission! We really appreciate it. Like many open source projects, we ask that you sign our Contributor License Agreement before we can accept your contribution.


Robinlovelace seems not to be a GitHub user. You need a GitHub account to be able to sign the CLA. If you have already a GitHub account, please add the email address used for this commit to your account.
You have signed the CLA already but the status is still pending? Let us recheck it.

@tiensonqin
Copy link
Copy Markdown
Contributor

@Robinlovelace Please sign CLA so that we can process this PR, thanks.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Bug: Linux installer script fails to install nightly (Database version) releases

3 participants