Skip to content

armgit / muxin

Public Imported from GitHub
0

All your machines, one app. For you and your AI agents: agent sessions, desktops, files, logs and GitHub across your Macs, Linux and Windows machines, with an MCP server.

Releases for Arm: Linux aarch64 and Windows arm64, and the Windows Arm agent

Adib Hannaf2d10b410727
diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml
index b611963..c039d41 100644
--- a/.github/workflows/release.yml
+++ b/.github/workflows/release.yml
@@ -34,7 +34,7 @@ jobs:
[ "$GITHUB_REF_NAME" = "v$version" ] || { echo "::error::tag $GITHUB_REF_NAME, but Cargo.toml says $version"; exit 1; }
- uses: dtolnay/rust-toolchain@stable
with:
- targets: aarch64-apple-darwin,x86_64-apple-darwin,x86_64-unknown-linux-musl,aarch64-unknown-linux-musl,x86_64-pc-windows-gnu
+ targets: aarch64-apple-darwin,x86_64-apple-darwin,x86_64-unknown-linux-musl,aarch64-unknown-linux-musl,x86_64-pc-windows-gnu,aarch64-pc-windows-gnullvm
- uses: Swatinem/rust-cache@v2
- uses: mlugg/setup-zig@v2
- uses: taiki-e/install-action@v2
@@ -93,10 +93,19 @@ jobs:
path: dist/Muxen-*-macos.dmg
if-no-files-found: error
+ # Intel and Arm, each built on its own kind of machine. The oldest Ubuntu
+ # GitHub runs: the app needs this glibc (2.35) or newer.
linux:
needs: agents
- # The oldest Ubuntu GitHub runs: the app needs this glibc (2.35) or newer.
- runs-on: ubuntu-22.04
+ strategy:
+ fail-fast: false
+ matrix:
+ include:
+ - arch: x86_64
+ runner: ubuntu-22.04
+ - arch: aarch64
+ runner: ubuntu-22.04-arm
+ runs-on: ${{ matrix.runner }}
steps:
- uses: actions/checkout@v5
- name: GPUI's libraries
@@ -111,15 +120,31 @@ jobs:
path: dist/agents
- run: chmod +x dist/agents/*
- run: scripts/package-linux.sh --skip-agents
+ - name: It runs here
+ run: |
+ tar -xzf dist/Muxen-*-linux-${{ matrix.arch }}.tar.gz -C "$RUNNER_TEMP"
+ "$RUNNER_TEMP/Muxen/muxen" --version
+ "$RUNNER_TEMP/Muxen/agents/muxen-agent-linux-${{ matrix.arch }}" hash
- uses: actions/upload-artifact@v7
with:
- name: linux
- path: dist/Muxen-*-linux-*.tar.gz
+ name: linux-${{ matrix.arch }}
+ path: dist/Muxen-*-linux-${{ matrix.arch }}.tar.gz
if-no-files-found: error
+ # x64 and Arm, each built on its own kind of machine.
windows:
needs: agents
- runs-on: windows-2022
+ strategy:
+ fail-fast: false
+ matrix:
+ include:
+ - arch: x64
+ agent: x86_64
+ runner: windows-2022
+ - arch: arm64
+ agent: aarch64
+ runner: windows-11-arm
+ runs-on: ${{ matrix.runner }}
steps:
- uses: actions/checkout@v5
- uses: dtolnay/rust-toolchain@stable
@@ -131,15 +156,29 @@ jobs:
- name: Inno Setup, for the installer
shell: pwsh
run: |
- if (-not (Test-Path "${env:ProgramFiles(x86)}\Inno Setup 6\ISCC.exe")) { choco install innosetup --no-progress -y }
+ if (-not (Test-Path "${env:ProgramFiles(x86)}\Inno Setup 6\ISCC.exe")) {
+ if (Get-Command choco -ErrorAction SilentlyContinue) {
+ choco install innosetup --no-progress -y
+ } else {
+ # From its maker, where there's no Chocolatey.
+ Invoke-WebRequest https://jrsoftware.org/download.php/is.exe -OutFile "$env:RUNNER_TEMP\innosetup.exe"
+ Start-Process "$env:RUNNER_TEMP\innosetup.exe" -ArgumentList '/VERYSILENT', '/SUPPRESSMSGBOXES', '/NORESTART', '/SP-' -Wait
+ }
+ }
- run: scripts/package-windows.ps1
shell: pwsh
+ - name: It runs here
+ shell: pwsh
+ run: |
+ dist\windows\Muxen\muxen.exe --version
+ if ($LASTEXITCODE) { exit $LASTEXITCODE }
+ dist\windows\Muxen\agents\muxen-agent-windows-${{ matrix.agent }}.exe hash
- uses: actions/upload-artifact@v7
with:
- name: windows
+ name: windows-${{ matrix.arch }}
path: |
- dist/Muxen-*-windows-x64.zip
- dist/Muxen-*-windows-x64-setup.exe
+ dist/Muxen-*-windows-${{ matrix.arch }}.zip
+ dist/Muxen-*-windows-${{ matrix.arch }}-setup.exe
if-no-files-found: error
# A draft release with every file and their checksums, for a tag.
@@ -151,7 +190,7 @@ jobs:
- uses: actions/checkout@v5
- uses: actions/download-artifact@v8
with:
- pattern: '{macos,linux,windows}'
+ pattern: '{macos,linux-*,windows-*}'
path: dist
merge-multiple: true
- name: Checksums
diff --git a/README.md b/README.md
index e1a9971..4eceaff 100644
--- a/README.md
+++ b/README.md
@@ -53,7 +53,7 @@ To get a real app with the Muxen icon:
- **Linux:** `./scripts/package-linux.sh` makes a tarball; its `install.sh` puts Muxen in `~/.local` with an entry in your app menu.
- **Windows:** `scripts\package-windows.ps1` makes the installer.
-Releases (a notarized DMG, the Linux tarball and the Windows installer) are built by GitHub Actions from a version tag: see [RELEASING.md](RELEASING.md).
+Releases (a notarized DMG, and for Linux and Windows a tarball and an installer each for Intel/AMD and Arm) are built by GitHub Actions from a version tag: see [RELEASING.md](RELEASING.md).
## Quick start
@@ -343,7 +343,7 @@ muxen checkouts --machine beelink --path ~/code/api --git pull
Start an AI agent on one of your machines and come back to it whenever you like, from the app, from your own terminal, or through another agent.
- **Keeps running.** Sessions live in Muxen's agent on the machine (`~/.muxen/bin/muxen-agent`), a small background program that holds each session's terminal, the way tmux would. Closing the app, sleeping your laptop or losing the network only detaches; the agent keeps working until you end the session, and reopening it shows the screen as it is with its recent scrollback. A restart of the machine ends its sessions, as with tmux.
-- **Nothing to install.** When Muxen connects to a machine it uploads the agent build for that OS and CPU (macOS and Linux, x86_64 and arm64, and Windows x64; a few MB) and keeps it up to date.
+- **Nothing to install.** When Muxen connects to a machine it uploads the agent build for that OS and CPU (macOS, Linux and Windows, x86_64 and arm64; a few MB) and keeps it up to date.
- **Split panes.** ⌘D splits a terminal to the right, ⇧⌘D below it (or the buttons in its header): a new shell on the same machine, in the same folder. ⌥⌘← and ⌥⌘→ move between panes, or click one. Each pane is a session of its own, so it keeps running like any other; type `exit` to close it, or × on its bar to take it out of the split. Splits come back when you reopen Muxen.
- **A real terminal in the app.** Everything goes to the agent: Esc, Ctrl-C, Tab, arrows, Option/Shift+Enter for newlines. ⌘C copies a selection, ⌘V pastes, the wheel scrolls back. Nerd Font icons (Neovim's file icons, prompt glyphs) show with any terminal font: Muxen brings the symbols. Right-click a machine for a new terminal or agent session.
- **Names you choose.** Right-click a machine or a session and pick **Rename…** (or ⇧⌘P › Rename on its page). A machine keeps its id, so its runners, sessions and favorites stay with it; `config.toml` gets `id = "<old id>"` when the new name would give a different one. A session's title is kept by the agent on its machine (`~/.muxen/titles.json`), so every Muxen sees it; an empty title goes back to the one it started with.
@@ -540,7 +540,7 @@ muxen schedule log beelink s-ab12cd
Not yet on Windows: Docker runners and Docker workspaces, adding virtual monitors.
-**The app on Windows** is built on Windows (GPUI compiles its shaders with the Windows SDK's `fxc.exe`): install Rust and Visual Studio's C++ build tools with the Windows SDK, run `scripts/build-agents.sh` on a Mac or Linux (it makes the Windows agent too, with `cargo-zigbuild`), then `scripts\package-windows.ps1` on Windows. That makes `dist\Muxen-Setup-x64.exe` (an installer, with [Inno Setup](https://jrsoftware.org/isinfo.php): for this user, no administrator needed, a Start menu entry, optionally `muxen` on the PATH, an uninstaller) and `dist\Muxen-windows-x64.zip` (`muxen.exe` and its `agents\`). Started from Explorer it shows no console window; from a terminal it's the same CLI as elsewhere. Secrets go in Windows' Credential Manager.
+**The app on Windows** is built on Windows (GPUI compiles its shaders with the Windows SDK's `fxc.exe`): install Rust and Visual Studio's C++ build tools with the Windows SDK, run `scripts/build-agents.sh` on a Mac or Linux (it makes the Windows agent too, with `cargo-zigbuild`), then `scripts\package-windows.ps1` on Windows. That makes `dist\Muxen-<version>-windows-x64-setup.exe` (`arm64` on Windows on Arm: an installer, with [Inno Setup](https://jrsoftware.org/isinfo.php): for this user, no administrator needed, a Start menu entry, optionally `muxen` on the PATH, an uninstaller) and `dist\Muxen-<version>-windows-x64.zip` (`muxen.exe` and its `agents\`). Started from Explorer it shows no console window; from a terminal it's the same CLI as elsewhere. Secrets go in Windows' Credential Manager.
## Develop
diff --git a/RELEASING.md b/RELEASING.md
index b7e8b96..5b530a8 100644
--- a/RELEASING.md
+++ b/RELEASING.md
@@ -7,13 +7,18 @@ files in a **draft** GitHub release on this repository to look over and publish.
| File | What it is |
|---|---|
| `Muxen-<version>-macos.dmg` | The app for Apple silicon and Intel Macs (macOS 12 or later), signed with the Developer ID and notarized |
-| `Muxen-<version>-linux-x86_64.tar.gz` | The app for Linux (glibc 2.35 or newer: Ubuntu 22.04, Debian 12, Fedora 36 and later), with `install.sh` |
+| `Muxen-<version>-linux-x86_64.tar.gz` | The app for Linux on Intel and AMD (glibc 2.35 or newer: Ubuntu 22.04, Debian 12, Fedora 36 and later), with `install.sh` |
+| `Muxen-<version>-linux-aarch64.tar.gz` | The same for Linux on Arm |
| `Muxen-<version>-windows-x64-setup.exe` | The Windows installer (for the user, no administrator needed) |
| `Muxen-<version>-windows-x64.zip` | The same, unpacked |
+| `Muxen-<version>-windows-arm64-setup.exe` | The installer for Windows on Arm (which runs the x64 one too, emulated) |
+| `Muxen-<version>-windows-arm64.zip` | The same, unpacked |
| `SHA256SUMS.txt` | Their checksums |
Each one carries the agent for every platform (`agents/`), which the app
-installs on the machines it connects to.
+installs on the machines it connects to. The Arm builds are made on GitHub's
+Arm machines (`ubuntu-22.04-arm`, `windows-11-arm`), and each Linux and Windows
+build runs its `muxen --version` and agent there before it's kept.
## Making a release
@@ -103,7 +108,6 @@ again.
("Windows protected your PC" › More info › Run anyway) until it is.
- **Public downloads** and the links on muxin.dev.
- **Updates from inside the app.**
-- **The Linux app for ARM** (the agent already runs there).
## CI
diff --git a/scripts/build-agents.sh b/scripts/build-agents.sh
index f601bfc..e8ff3e5 100755
--- a/scripts/build-agents.sh
+++ b/scripts/build-agents.sh
@@ -4,9 +4,9 @@
# to each machine (~/.muxen/bin) when it connects.
#
# Needs: rustup targets (x86_64-apple-darwin, aarch64-apple-darwin,
-# x86_64-unknown-linux-musl, aarch64-unknown-linux-musl, x86_64-pc-windows-gnu),
-# cargo-zigbuild and zig for the Linux builds (static musl binaries that run on
-# any distro) and the Windows one.
+# x86_64-unknown-linux-musl, aarch64-unknown-linux-musl, x86_64-pc-windows-gnu,
+# aarch64-pc-windows-gnullvm), cargo-zigbuild and zig for the Linux builds
+# (static musl binaries that run on any distro) and the Windows ones.
#
# MUXEN_RELEASE=1 signs the macOS ones for notarization (hardened runtime and a
# secure timestamp), as scripts/bundle-macos.sh --release needs.
@@ -51,4 +51,5 @@ esac
build x86_64-unknown-linux-musl linux-x86_64 zigbuild
build aarch64-unknown-linux-musl linux-aarch64 zigbuild
build x86_64-pc-windows-gnu windows-x86_64 zigbuild .exe
+build aarch64-pc-windows-gnullvm windows-aarch64 zigbuild .exe
ls -lh "$out"
diff --git a/scripts/muxen.iss b/scripts/muxen.iss
index 4b1660f..b50ba09 100644
--- a/scripts/muxen.iss
+++ b/scripts/muxen.iss
@@ -6,6 +6,10 @@
#ifndef AppVersion
#define AppVersion "0.1.0"
#endif
+; x64, or arm64 for Windows on Arm (which also runs the x64 one).
+#ifndef Arch
+ #define Arch "x64"
+#endif
[Setup]
AppId={{6F0B8E52-3C8E-4C8C-9E5B-6C4D2A9B7E31}
@@ -19,13 +23,18 @@ DefaultGroupName=Muxen
DisableProgramGroupPage=yes
PrivilegesRequired=lowest
OutputDir=..\dist
-OutputBaseFilename=Muxen-Setup-x64
+OutputBaseFilename=Muxen-Setup-{#Arch}
SetupIconFile=..\assets\brand\muxen.ico
UninstallDisplayIcon={app}\muxen.exe
Compression=lzma2/max
SolidCompression=yes
+#if Arch == "arm64"
+ArchitecturesAllowed=arm64
+ArchitecturesInstallIn64BitMode=arm64
+#else
ArchitecturesAllowed=x64compatible
ArchitecturesInstallIn64BitMode=x64compatible
+#endif
WizardStyle=modern
ChangesEnvironment=yes
CloseApplications=yes
diff --git a/scripts/package-windows.ps1 b/scripts/package-windows.ps1
index 4649e31..30ace97 100644
--- a/scripts/package-windows.ps1
+++ b/scripts/package-windows.ps1
@@ -1,7 +1,8 @@
-# Builds Muxen for Windows and packs it: dist\Muxen-<version>-windows-x64-setup.exe
-# (an installer, with Inno Setup) and dist\Muxen-<version>-windows-x64.zip, both with
-# muxen.exe and, beside it in agents\, the agent builds it sets up on each
-# machine (made on a Mac or Linux by scripts/build-agents.sh).
+# Builds Muxen for Windows and packs it: dist\Muxen-<version>-windows-<arch>-setup.exe
+# (an installer, with Inno Setup) and dist\Muxen-<version>-windows-<arch>.zip, both
+# with muxen.exe and, beside it in agents\, the agent builds it sets up on each
+# machine (made on a Mac or Linux by scripts/build-agents.sh). <arch> is what
+# Rust builds for here: x64, or arm64 on Windows on Arm.
#
# Needs: Rust, Visual Studio's C++ build tools and the Windows SDK (for
# GPUI's shaders and the icon).
@@ -9,9 +10,14 @@ param([switch]$SkipBuild)
$ErrorActionPreference = 'Stop'
Set-Location (Split-Path $PSScriptRoot -Parent)
$version = (Select-String -Path Cargo.toml -Pattern '^version = "(.+)"' | Select-Object -First 1).Matches[0].Groups[1].Value
+$arch = if ((rustc -vV | Select-String '^host: (.+)').Matches[0].Groups[1].Value -like 'aarch64-*') { 'arm64' } else { 'x64' }
# GPUI compiles its shaders with the Windows SDK's fxc.exe.
if (-not $env:GPUI_FXC_PATH -and -not (Get-Command fxc.exe -ErrorAction SilentlyContinue)) {
- $fxc = Get-ChildItem "${env:ProgramFiles(x86)}\Windows Kits\10\bin" -Recurse -Filter fxc.exe -ErrorAction SilentlyContinue | Where-Object { $_.FullName -match '\\x64\\' } | Sort-Object FullName -Descending | Select-Object -First 1
+ # This machine's own build first (the x64 one also runs on Arm), newest SDK first.
+ $fxc = Get-ChildItem "${env:ProgramFiles(x86)}\Windows Kits\10\bin" -Recurse -Filter fxc.exe -ErrorAction SilentlyContinue |
+ Where-Object { $_.FullName -match '\\(x64|arm64)\\' } |
+ Sort-Object @{ Expression = { $_.FullName -match "\\$arch\\" }; Descending = $true }, @{ Expression = 'FullName'; Descending = $true } |
+ Select-Object -First 1
if (-not $fxc) { throw "The Windows SDK's fxc.exe isn't installed (Visual Studio Installer > Windows SDK)." }
$env:GPUI_FXC_PATH = $fxc.FullName
}
@@ -28,7 +34,7 @@ New-Item -ItemType Directory -Force (Join-Path $out 'agents') | Out-Null
Copy-Item target\release\muxen.exe $out
$agents | Copy-Item -Destination (Join-Path $out 'agents')
Copy-Item README.md, LICENSE, THIRD_PARTY_NOTICES.md $out
-$zip = "dist\Muxen-$version-windows-x64.zip"
+$zip = "dist\Muxen-$version-windows-$arch.zip"
Compress-Archive -Path $out -DestinationPath $zip -Force
"Built $zip ($([math]::Round((Get-Item $zip).Length / 1MB, 1)) MB)"
@@ -36,9 +42,9 @@ Compress-Archive -Path $out -DestinationPath $zip -Force
$iscc = @(Get-Command ISCC.exe -ErrorAction SilentlyContinue | Select-Object -ExpandProperty Source) +
@("$env:LOCALAPPDATA\Programs\Inno Setup 6\ISCC.exe", "${env:ProgramFiles(x86)}\Inno Setup 6\ISCC.exe") | Where-Object { $_ -and (Test-Path $_) } | Select-Object -First 1
if ($iscc) {
- & $iscc /Q "/DAppVersion=$version" "/FMuxen-$version-windows-x64-setup" scripts\muxen.iss
+ & $iscc /Q "/DAppVersion=$version" "/DArch=$arch" "/FMuxen-$version-windows-$arch-setup" scripts\muxen.iss
if ($LASTEXITCODE) { exit $LASTEXITCODE }
- $setup = "dist\Muxen-$version-windows-x64-setup.exe"
+ $setup = "dist\Muxen-$version-windows-$arch-setup.exe"
"Built $setup ($([math]::Round((Get-Item $setup).Length / 1MB, 1)) MB)"
} else {
'No Inno Setup here, so no installer (winget install JRSoftware.InnoSetup).'