Skip to content
Draft
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
100 commits
Select commit Hold shift + click to select a range
5b15259
Build a signed Mac launcher test DMG with current trusted runtime and…
andersalm Nov 8, 2026
443bb7b
Use the available Apple silicon runner and preserve the adoption floor
andersalm Nov 8, 2026
f4f634e
Use upstream keychain password fix for Mac signing
andersalm Nov 8, 2026
832529a
Preserve redacted notarization failure diagnostics
andersalm Nov 8, 2026
a74afc6
Poll Mac lifecycle checks without CSP eval and exercise moving signed…
andersalm Nov 8, 2026
b39b907
test: show Install skips first boot after Set up
andersalm Nov 8, 2026
af8f889
fix: wait for first boot when the distro is already imported
andersalm Nov 8, 2026
37dff81
docs: drop comments that repeat the first-boot wait
andersalm Nov 8, 2026
8d048f4
Merge origin/test/launcher-mac-dmg into test/launcher-windows
andersalm Nov 8, 2026
1e51248
Isolate unit-test homes and exclude host ElastOS binaries automatically
andersalm Nov 8, 2026
dbee0cc
Build the Linux ARM64 launcher on the Ubuntu 22.04 runner.
andersalm Nov 8, 2026
2f5da45
Merge origin/test/launcher-mac-dmg into the Jetson test branch.
andersalm Nov 8, 2026
e449e36
Use electron-builder's arm64 fpm for the Jetson package.
andersalm Nov 8, 2026
b1f29a9
test: cover Open, Stop, Start, and the update check on Windows
andersalm Nov 8, 2026
b429223
Bridge Runtime 2.0 update status with signed metadata and preserve po…
andersalm Nov 8, 2026
bb7d4b6
Read a 2.0.0 update check from the command text when the status file …
andersalm Nov 8, 2026
0f0e6f1
Merge origin/test/launcher-mac-dmg into test/launcher-windows
andersalm Nov 8, 2026
dd4741f
Adopt curl-installed Home through its signed record and retain startu…
andersalm Nov 8, 2026
089710b
fix: write the signed update record on Windows
andersalm Nov 8, 2026
03d251c
Treat a Linux computer as glibc when its glibc loader is present.
andersalm Nov 8, 2026
8c2c68d
Keep control transitions authoritative over in-flight Mac status probes
andersalm Nov 8, 2026
16e5cc7
Use the existing verified removal guard for status temporary files
andersalm Nov 8, 2026
e947b47
Revert "Read a 2.0.0 update check from the command text when the stat…
andersalm Nov 8, 2026
905198c
Merge origin/test/launcher-mac-dmg into the Jetson test branch.
andersalm Nov 8, 2026
7429483
Expect Linux Update to stop Home and start it again.
andersalm Nov 8, 2026
f1eff78
Start Linux Home with the update controller.
andersalm Nov 8, 2026
09dc684
Refresh signed update status by capability and check the complete por…
andersalm Nov 8, 2026
352e840
Count a Home child as the owner of port 8090.
andersalm Nov 8, 2026
f87e9b5
fix: start Windows Home through the update controller
andersalm Nov 8, 2026
632dab6
Allow unsigned Mac test DMGs without blocking on notarization
andersalm Nov 8, 2026
c71e69c
Keep signed update fallback launcher-owned across platforms and refre…
andersalm Nov 8, 2026
a558e6a
Finish Mac Home window behavior and remove obsolete live rollback fix…
andersalm Nov 8, 2026
4dc76bd
Check packaged Mac loader and make ad-hoc signing runnable
andersalm Nov 8, 2026
c27ef58
Wait for Install screen before instrumenting Mac browser calls
andersalm Nov 8, 2026
ad0de4c
Preserve guarded cleanup for atomic launcher update records
andersalm Nov 8, 2026
1804f46
Merge origin/test/launcher-mac-dmg into the Jetson test branch.
andersalm Nov 8, 2026
effd1e8
Reproduce packaged Mac profile collision and guard local launches
andersalm Nov 8, 2026
592bb51
Keep Electron profile and logs outside the Runtime Home
andersalm Nov 8, 2026
a3e9355
Adopt a Linux Home only when its controller record still matches.
andersalm Nov 8, 2026
8607ddf
Read the launcher update check when Runtime 2.0.0 does not write one.
andersalm Nov 8, 2026
d6f7a22
Fix rollback floor and Mac Home lifecycle ownership
andersalm Nov 8, 2026
a57b6e2
Bind Mac adoption to native executable and precise launch identity
andersalm Nov 8, 2026
ffbf943
Accept verified custom Mac executable paths independently of basename
andersalm Nov 8, 2026
2850e51
Report refused Home stop signals as errors without discarding ownership
andersalm Nov 8, 2026
97cdeca
Signal a Linux Home only after the update controller still matches.
andersalm Nov 8, 2026
46a30eb
Read Mac process identity from libproc and verify the bundled helper
andersalm Nov 8, 2026
6aca8ea
Merge origin/test/launcher-mac-dmg into the Jetson test branch.
andersalm Nov 8, 2026
9360122
Pass the Home directory into the Linux controller read.
andersalm Nov 8, 2026
ff8ca70
Retain control of proved Home after a controller crash
andersalm Nov 8, 2026
9a32c22
Retry transient Mac ownership gaps without weakening process proof
andersalm Nov 8, 2026
66d8dd0
Check the renderer label for the Mac error state
andersalm Nov 8, 2026
76d8f45
Record the darwin listener failure as a kernel-path command check.
andersalm Nov 8, 2026
1b3c790
Merge origin/test/launcher-mac-dmg into the Jetson test branch.
andersalm Nov 8, 2026
23fd0e1
Merge origin/test/launcher-mac-dmg into test/launcher-windows
andersalm Nov 8, 2026
5e8989a
fix: cap the Windows Runtime update status read
andersalm Nov 8, 2026
e99b17c
fix: read the Windows update result from the launcher record
andersalm Nov 8, 2026
ab04442
fix: read the Windows launcher update record from the test home
andersalm Nov 8, 2026
8d486e8
Signal a Linux Home controller through a pidfd opened before the proc…
andersalm Nov 8, 2026
b7483d1
Add a regression for a Stop that leaks the pidfd helper.
andersalm Nov 8, 2026
c31efcd
Release the pidfd helper when Stop fails or replaces its controller.
andersalm Nov 8, 2026
07939c9
fix: signal only the proved Windows update controller
andersalm Nov 8, 2026
9d3b0ca
Remove test comments that only restate the helper count.
andersalm Nov 8, 2026
d87ed54
test: record the helper leak after a failed Windows Stop
andersalm Nov 8, 2026
0ea1baf
fix: release the Windows stop helper when Stop fails
andersalm Nov 8, 2026
76a361b
Add a regression for a Stop that outlasts the pidfd idle alarm.
andersalm Nov 8, 2026
43e5cbe
Stop the pidfd helper from dying while Stop waits on health.
andersalm Nov 8, 2026
bca0135
test: require the Windows facts helper to see the lock pid sockets
andersalm Nov 8, 2026
f0227b8
fix: read the distro gateway sockets from the lock pid net directory
andersalm Nov 8, 2026
41f15aa
test: a late Stop KILL must still use the original pidfd
andersalm Nov 8, 2026
51bca98
fix: refuse Windows Home unless every port 8090 listener is the WSL f…
andersalm Nov 8, 2026
a66ca52
Align Mac test launcher version with ElastOS 2.0.0
andersalm Nov 8, 2026
387e5c1
fix: restore Windows Home open from the listen-table check
andersalm Nov 8, 2026
93f655c
Reproduce packaged Mac dialog drag regions on the pinned test build
andersalm Nov 8, 2026
116f5d4
Merge remote-tracking branch 'origin/test/launcher-mac-dmg' into test…
andersalm Nov 8, 2026
bdb09ec
Keep packaged dialog status fixtures consistent with the background poll
andersalm Nov 8, 2026
187392b
Assert status copy independently of CSS text transformation
andersalm Nov 8, 2026
fdcb263
Measure native dialog hits at the launcher intended viewport height
andersalm Nov 8, 2026
cd2b0d0
Keep Mac launcher dialogs outside drag regions in test.2
andersalm Nov 8, 2026
59296f4
Keep native before and after dialog proofs at identical measured view…
andersalm Nov 8, 2026
770360a
Merge reviewed Jetson launcher into Mac test branch
andersalm Nov 8, 2026
c098b49
Merge reviewed Windows launcher while preserving platform lifecycles
andersalm Nov 8, 2026
bddaa3d
Scope launcher CI to branch platforms and cancel superseded runs
andersalm Nov 8, 2026
61b29a2
Keep release tags notarized; only test builds skip notarization
andersalm Nov 8, 2026
3420b7a
Redesign launcher window for test.3
andersalm Nov 8, 2026
5a57f9b
Say when ElastOS starts: when you log in to this computer
andersalm Nov 8, 2026
1fd5f79
Read launcher messages from the collapsed Details panel; accept macOS…
andersalm Nov 8, 2026
450b078
Make ElastOS a menu bar app with small action windows (test.4)
andersalm Nov 8, 2026
78efa28
Handle launcher status reads and setup errors
andersalm Nov 8, 2026
376019f
Guard launcher menu state and retain recovery safety facts
andersalm Nov 8, 2026
f7a53b5
Derive Home menu state from actions and observations
andersalm Nov 8, 2026
0ffa013
Prevent Home starts after controller shutdown
andersalm Nov 8, 2026
8711732
Prevent Home starts after launcher shutdown
andersalm Nov 8, 2026
453b72d
Start Home after installation and wait for native UI transitions
andersalm Nov 8, 2026
781988c
Update e2e focus waits and failure diagnostics
andersalm Nov 8, 2026
086364f
Check window focus within native clicks
andersalm Nov 8, 2026
3b2ee21
Use the displayed error for launcher recovery
andersalm Nov 8, 2026
71914b2
Publish stop fixture events atomically
andersalm Nov 8, 2026
8b98675
Preserve Home start outcomes when opening the browser
andersalm Nov 8, 2026
b5cd898
Wait for reused Home health in the supervisor
andersalm Nov 9, 2026
70372bc
Defer dialog observations to the main event loop
andersalm Nov 9, 2026
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
94 changes: 74 additions & 20 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,26 +4,53 @@ on:
push:
tags:
- 'v*' # Triggers on version tags like v0.1.1, v1.0.0
workflow_dispatch: # Allows manual trigger from GitHub UI
workflow_dispatch:
inputs:
platforms:
description: 'Platforms to run'
type: choice
options: [none, mac, linux, windows, all]
default: none
notarize:
description: 'Try Apple notarization for this test build (failure is nonblocking)'
type: boolean
default: false

# Grant write permissions for creating releases
permissions:
contents: write

concurrency:
group: build-${{ github.head_ref || github.ref }}
cancel-in-progress: true

jobs:
plan:
runs-on: ubuntu-latest
timeout-minutes: 2
outputs:
platforms: ${{ steps.plan.outputs.platforms }}
build: ${{ steps.plan.outputs.build }}
steps:
- uses: actions/checkout@v4
- id: plan
run: node scripts/ci-plan.js
env:
INPUT_PLATFORMS: ${{ inputs.platforms }}

build:
needs: [plan]
if: needs.plan.outputs.platforms != '[]'
strategy:
fail-fast: false # Don't cancel other builds if one fails
matrix:
include:
- os: macos-latest
platform: mac
- os: windows-latest
platform: win
- os: ubuntu-latest
platform: linux
include: ${{ fromJSON(needs.plan.outputs.build) }}

runs-on: ${{ matrix.os }}
timeout-minutes: 90
env:
MAC_RELEASE_STRICT: ${{ startsWith(github.ref, 'refs/tags/') }}
NOTARIZE_MAC: ${{ startsWith(github.ref, 'refs/tags/') || inputs.notarize == true }}

steps:
- name: Checkout code
Expand All @@ -45,12 +72,15 @@ jobs:
GH_TOKEN: ${{ secrets.GITHUB_TOKEN }}

- name: Build for macOS (with signing)
id: signed_mac
if: matrix.platform == 'mac'
continue-on-error: ${{ !startsWith(github.ref, 'refs/tags/') }}
run: |
# Unset empty signing vars so electron-builder skips signing gracefully
[ -z "$CSC_LINK" ] && unset CSC_LINK
[ -z "$CSC_KEY_PASSWORD" ] && unset CSC_KEY_PASSWORD
npm run build:mac -- --publish never
set -euo pipefail
for name in CSC_LINK CSC_KEY_PASSWORD; do
test -n "${!name}" || { echo "Missing required credential $name"; exit 1; }
done
npm run build:mac -- --arm64 --publish never -c.forceCodeSigning=true
env:
GH_TOKEN: ${{ secrets.GITHUB_TOKEN }}
CSC_LINK: ${{ secrets.CSC_LINK }}
Expand All @@ -59,14 +89,31 @@ jobs:
APPLE_APP_SPECIFIC_PASSWORD: ${{ secrets.APPLE_APP_SPECIFIC_PASSWORD }}
APPLE_TEAM_ID: ${{ secrets.APPLE_TEAM_ID }}

- name: Build macOS test app with ad-hoc signing
if: matrix.platform == 'mac' && steps.signed_mac.outcome == 'failure' && !startsWith(github.ref, 'refs/tags/')
run: npm run build:mac -- --arm64 --publish never -c.mac.identity=- -c.mac.hardenedRuntime=false -c.forceCodeSigning=false
env:
CSC_IDENTITY_AUTO_DISCOVERY: 'false'
GH_TOKEN: ${{ secrets.GITHUB_TOKEN }}

- name: Verify macOS code signature
if: matrix.platform == 'mac'
run: |
APP_PATH=$(find dist-electron -name "*.app" -maxdepth 2 | head -1)
if [ -n "$APP_PATH" ]; then
echo "Verifying signature on: $APP_PATH"
codesign --verify --deep --strict "$APP_PATH" && echo "Signature valid" || echo "WARNING: Signature verification failed"
set -euo pipefail
APP_PATH="dist-electron/mac-arm64/ElastOS.app"
test -d "$APP_PATH"
codesign --verify --deep --strict --verbose=2 "$APP_PATH"
codesign -dv "$APP_PATH" 2>&1
node scripts/verify-mac-app.js "$APP_PATH"
if [[ "$MAC_RELEASE_STRICT" == true && "$NOTARIZE_MAC" == true ]]; then
spctl -a -vv "$APP_PATH"
fi
for dmg in dist-electron/*.dmg; do
if [[ "$MAC_RELEASE_STRICT" == true && "$NOTARIZE_MAC" == true ]]; then
xcrun stapler validate "$dmg"
fi
shasum -a 256 "$dmg"
done

- name: Upload artifacts
uses: actions/upload-artifact@v4
Expand All @@ -78,12 +125,19 @@ jobs:
dist-electron/*.exe
dist-electron/*.AppImage
dist-electron/*.deb
if-no-files-found: ignore
if-no-files-found: error

linux-arm64:
needs: [plan]
if: contains(needs.plan.outputs.platforms, 'linux')
uses: ./.github/workflows/linux-arm64.yml
with:
platforms: linux

release:
needs: build
needs: [plan, build, linux-arm64]
runs-on: ubuntu-latest
if: startsWith(github.ref, 'refs/tags/')
if: startsWith(github.ref, 'refs/tags/') && needs.plan.outputs.platforms != '[]'

steps:
- name: Download all artifacts
Expand All @@ -92,7 +146,7 @@ jobs:
path: artifacts

- name: Create Release
uses: softprops/action-gh-release@v1
uses: softprops/action-gh-release@v2
with:
files: artifacts/**/*
draft: false
Expand Down
78 changes: 78 additions & 0 deletions .github/workflows/linux-arm64.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,78 @@
name: Linux ARM64 package

# Ubuntu 22.04 matches the Jetson glibc (2.35).
on:
pull_request:
paths-ignore: ['**/*.md', 'docs/**']
push:
branches: [main]
workflow_dispatch:
inputs:
platforms:
description: 'Platforms to run'
type: choice
options: [none, mac, linux, windows, all]
default: none
workflow_call:
inputs:
platforms:
description: 'Platforms selected by the caller'
type: string
default: ''

permissions:
contents: read

concurrency:
group: linux-arm64-${{ github.head_ref || github.ref }}
cancel-in-progress: true

jobs:
plan:
runs-on: ubuntu-latest
timeout-minutes: 2
outputs:
platforms: ${{ steps.plan.outputs.platforms }}
steps:
- uses: actions/checkout@v4
- id: plan
run: node scripts/ci-plan.js
env:
INPUT_PLATFORMS: ${{ inputs.platforms }}

package:
needs: [plan]
if: contains(needs.plan.outputs.platforms, 'linux')
runs-on: ubuntu-22.04-arm
timeout-minutes: 90
steps:
- name: Checkout code
uses: actions/checkout@v4

- name: Setup Node.js
uses: actions/setup-node@v4
with:
node-version: '20'
cache: npm

- name: Install dependencies
run: npm ci

- name: Build the arm64 AppImage and deb
run: npm run build:linux -- --arm64 --publish never

- name: Record checksums
run: |
set -euo pipefail
sha256sum dist-electron/*.AppImage dist-electron/*.deb
test -n "$(find dist-electron -maxdepth 1 -name '*arm64*.AppImage' -print)"
test -n "$(find dist-electron -maxdepth 1 -name '*arm64*.deb' -print)"

- name: Upload the arm64 packages
uses: actions/upload-artifact@v4
with:
name: ElastOS-linux-arm64
path: |
dist-electron/*.AppImage
dist-electron/*.deb
if-no-files-found: error
Loading
Loading