Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
160 commits
Select commit Hold shift + click to select a range
a74306c
workspace: move the tab bar, sidebar and status bar into their own mo…
ForeverInLaw Dec 1, 2026
4ff390b
sidebar: show only the sections listed in the config
ForeverInLaw Dec 1, 2026
e0cd150
settings: toggle sidebar sections on the Appearance page
ForeverInLaw Dec 1, 2026
7915bd6
sidebar: resize by dragging its right edge
ForeverInLaw Dec 1, 2026
c9ee705
terminal: keep the selection while programs repaint
ForeverInLaw Dec 1, 2026
14c59bb
terminal: report mouse drags and motion to programs
ForeverInLaw Dec 1, 2026
a5143ae
docs: describe mouse selection and reporting in the terminal
ForeverInLaw Dec 1, 2026
606130c
app: paint the terminal background once so the image shows through
ForeverInLaw Dec 1, 2026
b90d9b8
app: apply window_background without a restart
ForeverInLaw Dec 1, 2026
35a448d
settings: explain how the background layers and when opacity applies
ForeverInLaw Dec 1, 2026
4a2a6c2
sidebar: share the chrome surface so it follows window transparency
ForeverInLaw Dec 1, 2026
50776eb
ui: end truncated text with an ellipsis
ForeverInLaw Dec 1, 2026
9950b17
ui: keep wrapped tooltip titles clear of the second line
ForeverInLaw Dec 1, 2026
6eb39c3
ui: add a platform-aware title bar
ForeverInLaw Dec 1, 2026
317fcc0
app: host the tabs in the title bar
ForeverInLaw Dec 1, 2026
7a86cd5
app: paint the title bar with the chrome surface
ForeverInLaw Dec 1, 2026
1c99c15
app: let tabs fill the strip up to their maximum width
ForeverInLaw Dec 1, 2026
18a7c41
assets: add the app icon and a script that renders it
ForeverInLaw Dec 1, 2026
bf5208f
release: ship a desktop entry and hicolor icons with the linux build
ForeverInLaw Dec 1, 2026
691e38c
app: embed the icon and version info in the windows executable
ForeverInLaw Dec 1, 2026
83e9f27
core: decide when to check for updates and what to announce
ForeverInLaw Dec 1, 2026
fa50267
ui: let toasts carry several actions
ForeverInLaw Dec 1, 2026
dd77778
app: check GitHub for newer releases
ForeverInLaw Dec 1, 2026
19c5c84
settings: toggle update checks on the Safety page
ForeverInLaw Dec 1, 2026
eff2107
state: detect launch profiles once instead of on every render
ForeverInLaw Dec 1, 2026
ab06a31
ui: fit modals into small windows and scroll their content
ForeverInLaw Dec 1, 2026
31d98a4
ui: select, drag and edit text in inputs like a native field
ForeverInLaw Dec 1, 2026
47c9e4e
ui: add a select control for longer lists of choices
ForeverInLaw Dec 1, 2026
8b6f9e3
settings: offer the shell, theme pairing, font weight and pane dimming
ForeverInLaw Dec 1, 2026
08fe783
status bar: show the grid size only while it changes
ForeverInLaw Dec 1, 2026
e72591e
terminal: apply letter_spacing to the cell width
ForeverInLaw Dec 1, 2026
c08c727
app: say what happened in plain words instead of developer terms
ForeverInLaw Dec 1, 2026
425d00a
ui: wrap long setting descriptions instead of pushing the control out
ForeverInLaw Dec 1, 2026
2d60aa3
commands: list default keys per platform
ForeverInLaw Dec 1, 2026
20e73c1
commands: drop the theme picker chord so Ctrl+K reaches the shell
ForeverInLaw Dec 1, 2026
4cad44e
workspace: keep app shortcuts from firing behind modals
ForeverInLaw Dec 1, 2026
bbc384b
commands: copy and paste with Ctrl+C / Ctrl+V on Windows
ForeverInLaw Dec 1, 2026
044afca
terminal: send mouse pastes through the multi-line paste guard
ForeverInLaw Dec 1, 2026
124bda0
commands: find with Ctrl+Shift+F and step with F3
ForeverInLaw Dec 1, 2026
14dcf7a
commands: switch tabs with Ctrl+Alt+1…9 on Windows and Linux
ForeverInLaw Dec 1, 2026
92c306b
terminal: scroll 3 lines a notch, Shift+wheel scrollback, Ctrl+wheel …
ForeverInLaw Dec 1, 2026
883aa15
commands: zoom with Ctrl+Plus and the numpad keys too
ForeverInLaw Dec 1, 2026
1b9ba88
terminal: map Ctrl+Cyrillic keys to their Latin control bytes
ForeverInLaw Dec 1, 2026
e2d371e
docs: describe platform default keys and the overlay key context
ForeverInLaw Dec 1, 2026
c76f252
commands: quit and toggle fullscreen even with a modal open
ForeverInLaw Dec 1, 2026
e29626d
remote: re-attach multiplexer sessions without creating them
ForeverInLaw Dec 1, 2026
f6eb617
remote: report why a tmux control client could not attach
ForeverInLaw Dec 1, 2026
4efb93b
workspace: re-attach restored tabs to their tmux sessions
ForeverInLaw Dec 1, 2026
4b4ae83
docs: describe how tabs attached to tmux come back after a restart
ForeverInLaw Dec 1, 2026
17b80c4
terminal: stop typing Enter and Ctrl+D into a tab when it closes
ForeverInLaw Dec 1, 2026
28db61e
restore: say which directory a recreated tmux tab starts in
ForeverInLaw Dec 1, 2026
8c941a9
remote: run the live tmux tests one at a time
ForeverInLaw Dec 1, 2026
92ec5be
terminal: track the working directory on Windows
ForeverInLaw Dec 1, 2026
ab3cb43
terminal: tell idle shells from running programs on Windows
ForeverInLaw Dec 1, 2026
38e9f9d
workspace: open config.toml in the system editor unless a terminal ed…
ForeverInLaw Dec 1, 2026
a7d4496
workspace: stop polling tmux through WSL in the background
ForeverInLaw Dec 1, 2026
f7a6961
shell-integration: load once and fix the zsh exit status
ForeverInLaw Dec 1, 2026
f3de605
terminal: load shell integration without editing profiles
ForeverInLaw Dec 1, 2026
84ec4b9
shell-integration: keep the user's DEBUG trap and fish 4's own marks
ForeverInLaw Dec 1, 2026
cc905ee
ui: copy and paste with Ctrl/Shift+Insert in text inputs
ForeverInLaw Dec 1, 2026
59acb8e
ui: add a popup menu component
ForeverInLaw Dec 1, 2026
49c2ca6
ui: open select drop-downs in the shared menu
ForeverInLaw Dec 1, 2026
fa5d9aa
ui: add split right and split down icons
ForeverInLaw Dec 1, 2026
3820ad8
app: add a right-click menu to tabs
ForeverInLaw Dec 1, 2026
3db23e2
app: reopen the window where it was closed
ForeverInLaw Dec 1, 2026
45687ca
app: stop naming Alt+N in the duplicate tab label comment
ForeverInLaw Dec 1, 2026
745c4b2
settings: ask before closing only when work would be lost
ForeverInLaw Dec 1, 2026
55ce556
workspace: close panes whose program exits and the window with its la…
ForeverInLaw Dec 1, 2026
f52827b
settings: show the close-on-exit choice and step history length throu…
ForeverInLaw Dec 1, 2026
0545cc3
docs: describe the new close and exit behaviour and the 30-day history
ForeverInLaw Dec 1, 2026
87dd6f2
settings: edit config.toml in place and never overwrite a broken one
ForeverInLaw Dec 1, 2026
8d190a5
workspace: keep zoom per window instead of saving it
ForeverInLaw Dec 1, 2026
520ccda
docs: describe how config.toml is written and zoom
ForeverInLaw Dec 1, 2026
233bd3f
remote: share the target id parsing and batch process setup
ForeverInLaw Dec 1, 2026
9bcacca
remote: tell where a tab runs and upload pasted images there
ForeverInLaw Dec 1, 2026
d80cbd6
terminal: paste clipboard images into agents on SSH hosts and in WSL
ForeverInLaw Dec 1, 2026
0f0f779
docs: note where paste image finds a tab's host
ForeverInLaw Dec 1, 2026
74d1b32
terminal: upload one pasted image at a time per pane
ForeverInLaw Dec 1, 2026
76ab7fe
docs: name only Claude Code's image paste keys
ForeverInLaw Dec 1, 2026
75ddec8
terminal: leave the image paste key to agents in WSL
ForeverInLaw Dec 1, 2026
fe75419
terminal: paste bitmap-only screenshots from the Windows clipboard
ForeverInLaw Dec 1, 2026
8850070
build: describe the installers in cargo-packager metadata
ForeverInLaw Dec 1, 2026
3d6ce28
ci: ship installers next to the archives
ForeverInLaw Dec 1, 2026
82d7c5e
ci: refuse to release a tag that differs from the crate version
ForeverInLaw Dec 1, 2026
977a522
docs: explain installing with the setup, deb, AppImage and dmg
ForeverInLaw Dec 1, 2026
ec3773d
ci: pin the packager download and limit write access to publishing
ForeverInLaw Dec 1, 2026
d736d59
ci: verify the seeded AppImage launcher against a pinned checksum
ForeverInLaw Dec 1, 2026
695d77e
build: spell the NSIS install mode key like the others
ForeverInLaw Dec 1, 2026
e5c7dee
ci: install the pinned toolchain before reading the crate version
ForeverInLaw Dec 1, 2026
57a2041
terminal: let typed text reach the find bar
ForeverInLaw Dec 1, 2026
a37fd69
docs: refresh screenshots for 0.0.2
ForeverInLaw Dec 1, 2026
f6866fb
docs: rewrite the README around what RedShell does today
ForeverInLaw Dec 1, 2026
b9921d7
docs: describe the changes since 0.0.1 in the changelog
ForeverInLaw Dec 1, 2026
51346ca
remote: quote tmux targets that zsh would expand as commands
ForeverInLaw Dec 1, 2026
0cf541b
remote: start control clients through the shared batch process setup
ForeverInLaw Dec 1, 2026
5e087f3
remote: restore wsl multiplexer tabs in the distribution they ran in
ForeverInLaw Dec 1, 2026
35d1266
docs: correct stale comments on id formats and osc scanning
ForeverInLaw Dec 1, 2026
35e007c
terminal: report programs killed by a signal as 128 plus its number
ForeverInLaw Dec 1, 2026
1532a5c
terminal: count wsl and ssh shells as busy since their programs are o…
ForeverInLaw Dec 1, 2026
a64967c
terminal: follow cygwin and dns-named cwd reports on windows
ForeverInLaw Dec 1, 2026
1647d51
settings: match ssh hosts by name when saving so comments stay with t…
ForeverInLaw Dec 1, 2026
b034fde
settings: keep list names from newer versions when saving a change
ForeverInLaw Dec 1, 2026
6170774
settings: keep the config file's permissions when saving
ForeverInLaw Dec 1, 2026
5496aaa
update: treat an out-of-range last check time as due instead of overf…
ForeverInLaw Dec 1, 2026
6e300b2
shell-integration: quote zsh wrapper paths so a data folder with spac…
ForeverInLaw Dec 1, 2026
a3683f0
workspace: open overlays from methods so run_command reads as a table
ForeverInLaw Dec 1, 2026
95ab715
workspace: treat the config editor as a running program, not a shell
ForeverInLaw Dec 1, 2026
d3d8cc6
workspace: paste a confirmed multi-line paste into the pane it came from
ForeverInLaw Dec 1, 2026
e8792a7
workspace: give the plugins dialog the keyboard and close it with Esc
ForeverInLaw Dec 1, 2026
66df563
remote: give up on an image upload after a minute and stop its ssh
ForeverInLaw Dec 1, 2026
3813822
terminal: let the Paste Image key through while an upload runs
ForeverInLaw Dec 1, 2026
556b91d
workspace: duplicate a native tmux tab as a new window of its session
ForeverInLaw Dec 1, 2026
7a828d7
tab bar: only switch tabs while a dialog is open
ForeverInLaw Dec 1, 2026
c1c95ae
commands: keep every key the user binds to the same command
ForeverInLaw Dec 1, 2026
41e31c0
settings: re-apply only what depends on the settings that changed
ForeverInLaw Dec 1, 2026
3374a47
app: tell plugins and flush the history however the app quits
ForeverInLaw Dec 1, 2026
6112ef6
core: show paths with the home directory as ~ and long ones by their …
ForeverInLaw Dec 1, 2026
7391d60
workspace: show paths the same way in tabs, sidebar, status bar and t…
ForeverInLaw Dec 1, 2026
f8d1fa1
settings: offer Several tabs for closing tabs too, as bulk close uses it
ForeverInLaw Dec 1, 2026
9d26fb7
settings: offer enum settings through one typed choice control and ke…
ForeverInLaw Dec 1, 2026
7d44266
settings: build each page from rows that know their own reset
ForeverInLaw Dec 1, 2026
b6d2dbf
workspace: word every close confirmation the same way
ForeverInLaw Dec 1, 2026
e3ff715
workspace: turn recording on the same way from the sidebar and the toast
ForeverInLaw Dec 1, 2026
31367d5
workspace: end a theme preview even when the picked theme is already set
ForeverInLaw Dec 1, 2026
facfce1
tab bar: show the home directory as ~ in the tooltip title too
ForeverInLaw Dec 1, 2026
ce8d544
workspace: move the active tab left or right through one method
ForeverInLaw Dec 1, 2026
c52b061
docs: name the tmux tabs command consistently and list the review fixes
ForeverInLaw Dec 1, 2026
84ad9de
release: 0.0.2
ForeverInLaw Dec 1, 2026
c36729a
remote: keep the tmux test server alive between its sessions
ForeverInLaw Dec 1, 2026
005936d
core: expect the platform's path separator in the shell integration t…
ForeverInLaw Dec 1, 2026
803882b
terminal: split an OSC 7 path that Windows accepts in the scanner test
ForeverInLaw Dec 1, 2026
678cda0
remote: declare the live tmux test lock only where those tests run
ForeverInLaw Dec 1, 2026
45fbc69
text input: paste and copy with the terminal's Ctrl+Shift+V and Ctrl+…
ForeverInLaw Dec 1, 2026
b2ca9a8
workspace: name a tab or pane in its close confirmation as the tab ba…
ForeverInLaw Dec 1, 2026
4f1b400
docs: refresh screenshots for the final 0.0.2 interface
ForeverInLaw Dec 1, 2026
a9ac36c
terminal: recover signal numbers from glibc descriptions such as Segm…
ForeverInLaw Dec 1, 2026
8fd3cab
terminal: count a WSL bash.exe tab as busy like a wsl.exe one
ForeverInLaw Dec 1, 2026
ac2f1bc
remote: time out an image upload only when it stops making progress
ForeverInLaw Dec 1, 2026
2f019bc
release: seed every AppImage tool from a versioned release checked by…
ForeverInLaw Dec 1, 2026
7deb400
release: require a v tag that names the commit being built
ForeverInLaw Dec 1, 2026
35d8287
ci: pin every action to a commit with its version alongside
ForeverInLaw Dec 1, 2026
6b3b107
docs: describe signal exit codes, the WSL bash.exe tab and the upload…
ForeverInLaw Dec 1, 2026
23cd5eb
remote: give an upload a minute to finish once ssh holds every byte
ForeverInLaw Dec 1, 2026
162124f
release: stop when the tag lookup fails instead of treating the tag a…
ForeverInLaw Dec 1, 2026
589a58e
release: say which AppImage tools come from versioned releases
ForeverInLaw Dec 1, 2026
2cd65f0
remote: list tmux sessions and their windows in one round trip
ForeverInLaw Dec 1, 2026
9507211
app: show the last known tmux sessions while a fresh listing runs
ForeverInLaw Dec 1, 2026
cd8e4a7
sidebar: list the tmux sessions of the SSH hosts you have tabs on
ForeverInLaw Dec 1, 2026
8810dc2
workspace: put the keyboard in the session manager's name field when …
ForeverInLaw Dec 1, 2026
20e5052
sidebar: let the resize handle straddle the sidebar's border
ForeverInLaw Dec 1, 2026
311952b
docs: describe tmux listings over SSH and the sidebar's host sessions
ForeverInLaw Dec 1, 2026
17d4c47
sidebar: list only this computer's WSL sessions as a window opens, no…
ForeverInLaw Dec 1, 2026
ac71200
app: list a target again when asked to while a listing of it runs
ForeverInLaw Dec 1, 2026
3193acf
remote: notice a finished batch command within 10 ms and test a missi…
ForeverInLaw Dec 1, 2026
06434f7
workspace: kill multiplexer sessions off the UI thread
ForeverInLaw Dec 1, 2026
0ec64c2
panes: serialise the layout and prune panes that are gone
ForeverInLaw Dec 1, 2026
d164bda
history: version the schema and save each open tab's layout, name and…
ForeverInLaw Dec 1, 2026
9292b9c
workspace: keep a tab's name on the tab, whichever pane is active
ForeverInLaw Dec 1, 2026
b77d165
restore: bring tabs back with their split layout, name and active pane
ForeverInLaw Dec 1, 2026
1c76d2a
docs: say restored tabs keep their split panes and names
ForeverInLaw Dec 1, 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
8 changes: 4 additions & 4 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -19,10 +19,10 @@ jobs:
name: fmt + clippy
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: actions/checkout@11d5960a326750d5838078e36cf38b85af677262 # v4.4.0
- name: Rust toolchain (from rust-toolchain.toml)
run: rustup toolchain install || rustup show
- uses: Swatinem/rust-cache@v2
- uses: Swatinem/rust-cache@d1527c8f67ef9af357290475d4af4b0fab8f12e0 # v2.9.3
- uses: ./.github/actions/linux-deps
- run: cargo fmt --all -- --check
- run: cargo clippy --workspace --all-targets --locked -- -D warnings
Expand All @@ -36,10 +36,10 @@ jobs:
os: [ubuntu-latest, macos-15-intel, windows-latest]
runs-on: ${{ matrix.os }}
steps:
- uses: actions/checkout@v4
- uses: actions/checkout@11d5960a326750d5838078e36cf38b85af677262 # v4.4.0
- name: Rust toolchain (from rust-toolchain.toml)
run: rustup toolchain install || rustup show
- uses: Swatinem/rust-cache@v2
- uses: Swatinem/rust-cache@d1527c8f67ef9af357290475d4af4b0fab8f12e0 # v2.9.3
- if: runner.os == 'Linux'
uses: ./.github/actions/linux-deps
- run: cargo test --workspace --locked
230 changes: 199 additions & 31 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,98 +6,266 @@ on:
workflow_dispatch:
inputs:
tag:
description: Tag to build and publish, e.g. v0.0.1 (created at this branch's head if missing)
description: Tag to build, e.g. v0.0.1. An existing tag must be the commit this run builds (run the workflow on the tag); a missing one is created at this branch's head when publishing
required: true
publish:
description: Publish a GitHub release; when off, the builds are only kept as workflow artifacts
type: boolean
default: true

# Only the publish job writes to the repository.
permissions:
contents: write
contents: read

env:
CARGO_TERM_COLOR: always
CARGO_INCREMENTAL: 0
TAG: ${{ github.event.inputs.tag || github.ref_name }}
# Installers are built by cargo-packager from [package.metadata.packager] in
# crates/redshell-app/Cargo.toml. Update the checksums in "Install cargo-packager" and the
# file names in "Seed the AppImage tools" with it.
CARGO_PACKAGER_VERSION: 0.11.8

jobs:
version:
# Every other job waits for this one, which checks that the tag fits what is built:
# * It is v and a version: only a v0.0.x tag is published as a prerelease, so a tag
# without the v would make a full release.
# * It matches the crate version: the update check compares releases with it, so a
# build tagged with a different version would offer an update to itself.
# * An existing tag is the commit being built. A manual run builds its branch's head,
# which may have moved past the tag, so it must be run on the tag (or on a branch
# whose head is the tag's commit). A missing tag is created at that commit.
name: tag matches the build
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@11d5960a326750d5838078e36cf38b85af677262 # v4.4.0
- run: |
set -euo pipefail
if [[ ! "$TAG" =~ ^v[0-9] ]]; then
echo "::error::Tag $TAG must be v and the version, e.g. v0.0.1"
exit 1
fi
# Assigned on its own line so that a failed lookup stops the job instead of
# reading as a missing tag.
remote=$(git ls-remote --tags origin "refs/tags/$TAG")
if [ -n "$remote" ]; then
git fetch --no-tags --depth=1 origin "refs/tags/$TAG"
tagged=$(git rev-parse "FETCH_HEAD^{commit}")
if [ "$tagged" != "$GITHUB_SHA" ]; then
echo "::error::Tag $TAG is commit $tagged but this run builds $GITHUB_SHA; run the workflow on the tag"
exit 1
fi
fi
rustup toolchain install || rustup show
version=$(cargo metadata --no-deps --format-version 1 \
| jq -r '.packages[] | select(.name == "redshell-app") | .version')
if [ "${TAG#v}" != "$version" ]; then
echo "::error::Tag $TAG does not match the crate version $version in Cargo.toml"
exit 1
fi

build:
needs: version
name: build (${{ matrix.name }})
permissions:
contents: read
strategy:
fail-fast: false
matrix:
include:
- { name: linux-x86_64, os: ubuntu-22.04, targets: x86_64-unknown-linux-gnu }
- name: linux-x86_64
os: ubuntu-22.04
targets: x86_64-unknown-linux-gnu
package-target: x86_64-unknown-linux-gnu
formats: deb,appimage
# One Intel runner builds both architectures and merges them with lipo.
# Hosted macOS arm64 runners are often unavailable; the SDK cross-compiles
# to arm64 from Intel just as well.
- { name: macos-universal, os: macos-15-intel, targets: aarch64-apple-darwin x86_64-apple-darwin }
- { name: windows-x86_64, os: windows-latest, targets: x86_64-pc-windows-msvc }
- name: macos-universal
os: macos-15-intel
targets: aarch64-apple-darwin x86_64-apple-darwin
package-target: universal-apple-darwin
formats: app,dmg
- name: windows-x86_64
os: windows-latest
targets: x86_64-pc-windows-msvc
package-target: x86_64-pc-windows-msvc
formats: nsis
runs-on: ${{ matrix.os }}
env:
TARGETS: ${{ matrix.targets }}
# cargo-packager reads the binary from target/<package-target>/release.
PACKAGE_TARGET: ${{ matrix.package-target }}
# Release files are named redshell-<tag>-<platform>.<ext>.
BASE_NAME: redshell-${{ github.event.inputs.tag || github.ref_name }}-${{ matrix.name }}
steps:
- uses: actions/checkout@v4
- uses: actions/checkout@11d5960a326750d5838078e36cf38b85af677262 # v4.4.0
- name: Rust toolchain (from rust-toolchain.toml)
shell: bash
run: |
rustup toolchain install || rustup show
rustup target add $TARGETS
- uses: Swatinem/rust-cache@v2
- uses: Swatinem/rust-cache@d1527c8f67ef9af357290475d4af4b0fab8f12e0 # v2.9.3
with:
key: ${{ matrix.name }}
- if: runner.os == 'Linux'
uses: ./.github/actions/linux-deps
- name: Install cargo-packager
shell: bash
# cargo-quickinstall's prebuilt binary, pinned by checksum; compiled from crates.io
# when the download is unavailable.
run: |
set -euo pipefail
case "$RUNNER_OS" in
Linux) target=x86_64-unknown-linux-gnu sum=59be4a604184c61f31600f1d00e211947f8570f8927c16c7eddfd5fccd7f060e ;;
macOS) target=x86_64-apple-darwin sum=03d614d12680975fa1cf5c29c75c3b21ee8d0c6f1b76783d54ce383e56f5d62c ;;
Windows) target=x86_64-pc-windows-msvc sum=24e25795c002e357ffadf9c5e990ba289215537286bcbea652a5967400782a3b ;;
esac
name="cargo-packager-$CARGO_PACKAGER_VERSION"
# A relative path: tar reads "D:\..." as a remote host.
archive=cargo-packager.tar.gz
if curl -fsSL -o "$archive" \
"https://github.com/cargo-bins/cargo-quickinstall/releases/download/$name/$name-$target.tar.gz"; then
actual=$( (sha256sum "$archive" 2>/dev/null || shasum -a 256 "$archive") | cut -d' ' -f1)
if [ "$actual" != "$sum" ]; then
echo "::error::cargo-packager archive checksum mismatch: $actual"
exit 1
fi
tar -xzf "$archive" -C "$HOME/.cargo/bin"
rm "$archive"
else
cargo install --locked "cargo-packager@$CARGO_PACKAGER_VERSION"
fi
cargo packager --version
- name: Build
shell: bash
run: |
set -euo pipefail
for target in $TARGETS; do
cargo build --release --locked --target "$target" -p redshell-app
done
- name: Package
shell: bash
run: |
set -euo pipefail
dir="redshell-${TAG}-${{ matrix.name }}"
mkdir -p "$dir"
set -- $TARGETS
if [ $# -gt 1 ]; then
lipo -create $(printf 'target/%s/release/redshell ' "$@") -output "$dir/redshell"
lipo -info "$dir/redshell"
else
bin="target/$1/release/redshell"
[ -f "$bin.exe" ] && bin="$bin.exe"
cp "$bin" "$dir/"
mkdir -p "target/$PACKAGE_TARGET/release"
lipo -create $(printf 'target/%s/release/redshell ' "$@") -output "target/$PACKAGE_TARGET/release/redshell"
lipo -info "target/$PACKAGE_TARGET/release/redshell"
fi
- name: Archive
shell: bash
run: |
set -euo pipefail
dir="$BASE_NAME"
mkdir -p "$dir" dist
bin="target/$PACKAGE_TARGET/release/redshell"
[ -f "$bin.exe" ] && bin="$bin.exe"
cp "$bin" "$dir/"
cp README.md LICENSE CHANGELOG.md "$dir/"
cp -r shell-integration "$dir/"
# Linux: a desktop entry and hicolor icons, laid out to copy into ~/.local/share.
# (Windows embeds the icon in the exe; macOS ships a bare binary.)
if [ "${{ runner.os }}" = "Linux" ]; then
app_id=dev.redshell.RedShell
install -Dm644 "assets/linux/$app_id.desktop" "$dir/share/applications/$app_id.desktop"
for size in 16 24 32 48 64 128 256 512; do
install -Dm644 "assets/icon/png/redshell-$size.png" \
"$dir/share/icons/hicolor/${size}x${size}/apps/$app_id.png"
done
fi
if [ "${{ runner.os }}" = "Windows" ]; then
7z a -tzip "$dir.zip" "$dir" >/dev/null
sha256sum "$dir.zip" > "$dir.zip.sha256"
7z a -tzip "dist/$dir.zip" "$dir" >/dev/null
else
tar -czf "$dir.tar.gz" "$dir"
shasum -a 256 "$dir.tar.gz" > "$dir.tar.gz.sha256"
tar -czf "dist/$dir.tar.gz" "$dir"
fi
- uses: actions/upload-artifact@v4
- if: runner.os == 'Linux'
name: Seed the AppImage tools
shell: bash
# cargo-packager downloads AppRun, linuxdeploy and linuxdeploy's AppImage plugin into
# its cache unless they are there, without checking them, and the plugin's
# appimagetool then downloads the AppImage runtime the same way. So all four are
# cached here, checked against these sums, under the names cargo-packager 0.11.8
# looks for (src/package/appimage/mod.rs), and the plugin is pointed at the runtime.
# linuxdeploy, the plugin and the runtime come from versioned releases instead of
# the moving tags the tools use; AppRun is the packager's own file, which only
# exists under tauri's apprun-old tag. Re-check the names when upgrading the packager.
# The cached AppRun is also made executable for group and others: 0.11.8 would
# cache it without, which appimagetool rejects (crabnebula-dev/cargo-packager#492).
run: |
set -euo pipefail
dir="${XDG_CACHE_HOME:-$HOME/.cache}/.cargo-packager/AppImage"
mkdir -p "$dir"
fetch() { # <file name> <sha256> <url>
curl -fsSL --retry 3 -o "$dir/$1" "$3"
echo "$2 $dir/$1" | sha256sum -c -
chmod 755 "$dir/$1"
}
fetch AppRun-x86_64 f30140a43a0a59e46db21bdefdf749b9e9f2c6946e92afabbacf98b8ae73fb4f \
https://github.com/tauri-apps/binary-releases/releases/download/apprun-old/AppRun-x86_64
fetch linuxdeploy-x86_64.AppImage c20cd71e3a4e3b80c3483cef793cda3f4e990aca14014d23c544ca3ce1270b4d \
https://github.com/linuxdeploy/linuxdeploy/releases/download/1-alpha-20251107-1/linuxdeploy-x86_64.AppImage
fetch linuxdeploy-plugin-appimage.AppImage 992d502a248e14ab185448ddf6f6e7d25558cb84d4623c354c3af350c25fccb3 \
https://github.com/linuxdeploy/linuxdeploy-plugin-appimage/releases/download/1-alpha-20250213-1/linuxdeploy-plugin-appimage-x86_64.AppImage
fetch runtime-x86_64 2fca8b443c92510f1483a883f60061ad09b46b978b2631c807cd873a47ec260d \
https://github.com/AppImage/type2-runtime/releases/download/20251108/runtime-x86_64
echo "LDAI_RUNTIME_FILE=$dir/runtime-x86_64" >> "$GITHUB_ENV"
- name: Installers
shell: bash
env:
# Hosted Linux runners have no FUSE; run linuxdeploy's AppImages extracted.
APPIMAGE_EXTRACT_AND_RUN: 1
run: |
set -euo pipefail
mkdir -p packager-out
cargo packager --release --target "$PACKAGE_TARGET" --formats "${{ matrix.formats }}" \
--out-dir packager-out
if [ "${{ runner.os }}" = "macOS" ]; then
app=packager-out/RedShell.app
plutil -lint "$app/Contents/Info.plist"
codesign --verify --deep --strict --verbose=2 "$app"
codesign -dv "$app"
lipo -info "$app/Contents/MacOS/redshell"
fi
for file in packager-out/*.deb packager-out/*.AppImage packager-out/*.dmg packager-out/*-setup.exe; do
[ -e "$file" ] || continue
case "$file" in
*-setup.exe) name="$BASE_NAME-setup.exe" ;;
*) name="$BASE_NAME.${file##*.}" ;;
esac
mv "$file" "dist/$name"
done
ls -la dist
- name: Checksums
shell: bash
working-directory: dist
run: |
set -euo pipefail
for file in *; do
if command -v sha256sum >/dev/null; then sha256sum "$file"; else shasum -a 256 "$file"; fi > "$file.sha256"
done
- uses: actions/upload-artifact@ea165f8d65b6e75b540449e92b4886f43607fa02 # v4.6.2
with:
name: ${{ matrix.name }}
path: |
redshell-*.tar.gz*
redshell-*.zip*
path: dist/*

publish:
needs: build
needs: [version, build]
permissions:
contents: write
# Publish whatever built, so one stuck runner doesn't block a release; re-run
# the workflow for the tag to add a missing platform (assets are replaced).
if: ${{ always() && !cancelled() }}
# A manual run with `publish` off stops after the builds.
if: ${{ always() && !cancelled() && needs.version.result == 'success' && (github.event_name == 'push' || inputs.publish) }}
runs-on: ubuntu-latest
steps:
- uses: actions/download-artifact@v4
- uses: actions/download-artifact@d3f86a106a0bac45b974a628896c90dbdf5c8093 # v4.3.0
with:
path: dist
merge-multiple: true
- name: Check artifacts
run: |
ls -la dist
ls dist/redshell-* >/dev/null
- uses: softprops/action-gh-release@v2
- uses: softprops/action-gh-release@3bb12739c298aeb8a4eeaf626c5b8d85266b0e65 # v2.6.2
with:
tag_name: ${{ env.TAG }}
target_commitish: ${{ github.sha }}
Expand Down
Loading
Loading