A modern terminal with a built-in multiplexer: close it and your sessions keep running. Run shells and tons of AI agents across your machines, then pick them up from desktop, browser, TUI and more. Written in Rust with no UI framework: interface drawn straight on the GPU. No Electron, GPUI or webview.
Rust agentagent-orchestrationaiai-agentsclaude-codecodexcoding-agentlinuxmacosmultiplayermultiplexerrustterminalterminal-emulatorterminal-multiplexertmuxtuiweztermwindows
Add a release pipeline for macOS, Windows and Linux
RoversX41c5afcddc9a
diff --git a/.github/workflows/release.yml b/.github/workflows/release.ymlnew file mode 100644index 00000000..ad342ecd--- /dev/null+++ b/.github/workflows/release.yml@@ -0,0 +1,423 @@+# Builds and publishes ThinkTerm for every supported platform.+#+# Two ways in:+# * push a tag matching v* -> builds everything and publishes a release+# * Run workflow -> tick the platforms you want; publishing is opt-in+#+# The packaging itself lives in ci/deploy.sh and ci/appimage.sh; this file only+# decides what to build, on which runner, and what to do with the results.++name: release++on:+ push:+ tags: ['v*']+ workflow_dispatch:+ inputs:+ macos_arm64:+ description: macOS arm64+ type: boolean+ default: true+ macos_x86_64:+ description: macOS x86_64+ type: boolean+ default: true+ windows_x86_64:+ description: Windows x86_64+ type: boolean+ default: true+ linux_x86_64:+ description: Linux x86_64 (deb + rpm + AppImage)+ type: boolean+ default: true+ linux_arm64:+ description: Linux arm64 (arm64 runners are free on public repos only)+ type: boolean+ default: true+ publish:+ description: Publish to a GitHub Release (otherwise artifacts only)+ type: boolean+ default: false++concurrency:+ group: release-${{ github.ref }}++env:+ CARGO_INCREMENTAL: '0'++jobs:+ # Resolves one build plan for every downstream job. Computing the version+ # here rather than per-job matters: ci/tag-name.sh derives it from the+ # current time, so eight runners would otherwise stamp eight different+ # versions onto the same release.+ prepare:+ name: prepare+ runs-on: ubuntu-latest+ outputs:+ version: ${{ steps.plan.outputs.version }}+ release_tag: ${{ steps.plan.outputs.release_tag }}+ publish: ${{ steps.plan.outputs.publish }}+ windows: ${{ steps.plan.outputs.windows }}+ macos_matrix: ${{ steps.plan.outputs.macos_matrix }}+ linux_matrix: ${{ steps.plan.outputs.linux_matrix }}++ steps:+ - name: Checkout+ uses: actions/checkout@v7++ - name: Resolve build plan+ id: plan+ run: |+ set -euo pipefail++ if [ "$GITHUB_EVENT_NAME" = 'push' ]; then+ # A tag build is always the full matrix, published.+ release_tag="$GITHUB_REF_NAME"+ version="${GITHUB_REF_NAME#v}"+ publish=true+ macos_arm64=true+ macos_x86_64=true+ windows=true+ linux_x86_64=true+ # arm64 hosted runners are free on public repos only. Scheduling+ # them from a private repo fails the leg, and the publish gate+ # below refuses to ship a release with any failed job -- so a tag+ # push would burn two macOS jobs at 10x and publish nothing. This+ # starts including arm64 by itself once the repo goes public.+ linux_arm64='${{ !github.event.repository.private }}'+ else+ release_tag="$(bash ci/tag-name.sh)"+ version="$release_tag"+ publish='${{ inputs.publish }}'+ macos_arm64='${{ inputs.macos_arm64 }}'+ macos_x86_64='${{ inputs.macos_x86_64 }}'+ windows='${{ inputs.windows_x86_64 }}'+ linux_x86_64='${{ inputs.linux_x86_64 }}'+ linux_arm64='${{ inputs.linux_arm64 }}'+ fi++ macos_matrix="$(jq -nc \+ --argjson a "$macos_arm64" --argjson x "$macos_x86_64" '+ [ if $a then {arch: "arm64", target: "aarch64-apple-darwin"} else empty end,+ if $x then {arch: "x86_64", target: "x86_64-apple-darwin"} else empty end ]')"++ linux_matrix="$(jq -nc \+ --argjson x "$linux_x86_64" --argjson a "$linux_arm64" '+ [ {name: "ubuntu22.04", container: "ubuntu:22.04", appimage: true},+ {name: "debian12", container: "debian:12", appimage: false},+ {name: "fedora41", container: "fedora:41", appimage: false} ] as $distros+ | [ if $x then {arch: "x86_64", runs_on: "ubuntu-latest"} else empty end,+ if $a then {arch: "arm64", runs_on: "ubuntu-24.04-arm"} else empty end ] as $arches+ | [ $distros[] as $d | $arches[] as $r | $d + $r ]')"++ {+ echo "version=$version"+ echo "release_tag=$release_tag"+ echo "publish=$publish"+ echo "windows=$windows"+ echo "macos_matrix=$macos_matrix"+ echo "linux_matrix=$linux_matrix"+ } >> "$GITHUB_OUTPUT"++ {+ echo "### Build plan"+ echo+ echo "| | |"+ echo "|---|---|"+ echo "| version | \`$version\` |"+ echo "| release tag | \`$release_tag\` |"+ echo "| publish | \`$publish\` |"+ echo "| macOS | \`$(jq -r 'if length == 0 then "none" else [.[].arch] | join(", ") end' <<<"$macos_matrix")\` |"+ echo "| Windows | \`$windows\` |"+ echo "| Linux | \`$(jq -r 'if length == 0 then "none" else [.[] | "\(.name)/\(.arch)"] | join(", ") end' <<<"$linux_matrix")\` |"+ } >> "$GITHUB_STEP_SUMMARY"++ # One job per architecture, each producing its own zip. We deliberately do not+ # lipo them into a universal bundle: that doubles the download for an Intel+ # audience that is on its way out.+ macos:+ name: macos ${{ matrix.arch }}+ needs: prepare+ if: needs.prepare.outputs.macos_matrix != '[]'+ strategy:+ fail-fast: false+ matrix:+ include: ${{ fromJSON(needs.prepare.outputs.macos_matrix) }}+ runs-on: macos-latest+ timeout-minutes: 90++ env:+ MACOSX_DEPLOYMENT_TARGET: '14.0'+ TAG_NAME: ${{ needs.prepare.outputs.version }}+ MACOS_ARCH: ${{ matrix.arch }}++ steps:+ - name: Checkout+ uses: actions/checkout@v7+ with:+ submodules: recursive++ - name: Check submodules+ run: bash ci/check-submodules.sh++ - name: Install Rust+ uses: dtolnay/rust-toolchain@stable+ with:+ targets: ${{ matrix.target }}++ # Caches are ref-scoped and a tag run can only read its own ref plus the+ # default branch, so writing from tags would produce entries nothing ever+ # restores. Save from main, restore everywhere.+ - name: Cache cargo+ uses: Swatinem/rust-cache@v2+ with:+ key: macos-${{ matrix.arch }}+ cache-on-failure: true+ save-if: ${{ github.ref == format('refs/heads/{0}', github.event.repository.default_branch) }}++ - name: Install system deps+ run: env CI=yes PATH=$PATH ./get-deps++ - name: Build+ run: |+ cargo build --release --target ${{ matrix.target }} \+ -p wezterm \+ -p wezterm-gui \+ -p wezterm-mux-server \+ -p strip-ansi-escapes++ # Without signing credentials ci/deploy.sh falls back to an ad-hoc+ # signature: the bundle is well-formed but Gatekeeper will still warn on+ # another machine.+ - name: Package+ env:+ MACOS_APPLEID: ${{ secrets.MACOS_APPLEID }}+ MACOS_APP_PW: ${{ secrets.MACOS_APP_PW }}+ MACOS_CERT: ${{ secrets.MACOS_CERT }}+ MACOS_CERT_PW: ${{ secrets.MACOS_CERT_PW }}+ MACOS_TEAM_ID: ${{ secrets.MACOS_TEAM_ID }}+ run: bash ci/deploy.sh++ - name: Upload+ uses: actions/upload-artifact@v7+ with:+ name: macos-${{ matrix.arch }}+ path: ThinkTerm-macos-*.zip+ if-no-files-found: error++ windows:+ name: windows x86_64+ needs: prepare+ if: needs.prepare.outputs.windows == 'true'+ runs-on: windows-2022+ timeout-minutes: 90++ env:+ RUSTUP_WINDOWS_PATH_ADD_BIN: '1'+ TAG_NAME: ${{ needs.prepare.outputs.version }}++ steps:+ - name: Checkout+ uses: actions/checkout@v7+ with:+ submodules: recursive++ - name: Check submodules+ shell: bash+ run: bash ci/check-submodules.sh++ - name: Install Rust+ uses: dtolnay/rust-toolchain@stable+ with:+ targets: x86_64-pc-windows-msvc++ - name: Cache cargo+ uses: Swatinem/rust-cache@v2+ with:+ key: windows-x86_64+ cache-on-failure: true+ save-if: ${{ github.ref == format('refs/heads/{0}', github.event.repository.default_branch) }}++ # ci/deploy.sh calls iscc.exe unconditionally, so a missing Inno Setup+ # would only surface after a 25 minute build.+ - name: Ensure Inno Setup+ shell: pwsh+ run: |+ if (-not (Get-Command iscc.exe -ErrorAction SilentlyContinue)) {+ $inno = "${env:ProgramFiles(x86)}\Inno Setup 6"+ if (-not (Test-Path "$inno\ISCC.exe")) {+ choco install innosetup -y --no-progress+ }+ Add-Content -Path $env:GITHUB_PATH -Value $inno+ }++ # openssl-src needs perl; Strawberry Perl ships on the runner but is not+ # on PATH by default.+ - name: Build+ shell: cmd+ run: |+ PATH C:\Strawberry\perl\bin;%PATH%+ cargo build --release -p wezterm -p wezterm-gui -p wezterm-mux-server -p strip-ansi-escapes++ - name: Package+ shell: bash+ run: bash ci/deploy.sh++ - name: Upload+ uses: actions/upload-artifact@v7+ with:+ name: windows-x86_64+ path: |+ ThinkTerm-*.zip+ ThinkTerm-*.exe+ if-no-files-found: error++ # Each distro builds inside its own container so the resulting deb/rpm links+ # against that distro's glibc, and the arch comes from the runner underneath.+ linux:+ name: ${{ matrix.name }} ${{ matrix.arch }}+ needs: prepare+ if: needs.prepare.outputs.linux_matrix != '[]'+ strategy:+ fail-fast: false+ matrix:+ include: ${{ fromJSON(needs.prepare.outputs.linux_matrix) }}+ runs-on: ${{ matrix.runs_on }}+ container: ${{ matrix.container }}+ timeout-minutes: 90++ env:+ TAG_NAME: ${{ needs.prepare.outputs.version }}+ # Job-wide, not per-step: ./get-deps pulls in tzdata and friends, and a+ # debconf prompt there would hang until timeout-minutes with no output.+ DEBIAN_FRONTEND: noninteractive++ steps:+ # git has to exist before actions/checkout runs, otherwise it silently+ # falls back to downloading a tarball -- and then there is no .git for+ # ci/deploy.sh to read, and no submodules either.+ - name: Bootstrap container+ run: |+ set -eu+ if command -v apt-get >/dev/null 2>&1 ; then+ apt-get update+ apt-get install -y --no-install-recommends \+ ca-certificates curl git xz-utils+ else+ # Not `curl`: the fedora image ships curl-minimal, which already+ # provides /usr/bin/curl, and dnf refuses to swap them without+ # --allowerasing.+ dnf install -y ca-certificates git rpm-build+ fi++ - name: Allow git to read the workspace+ run: git config --global --add safe.directory "$GITHUB_WORKSPACE"++ - name: Checkout+ uses: actions/checkout@v7+ with:+ submodules: recursive++ - name: Check submodules+ run: bash ci/check-submodules.sh++ - name: Install Rust+ uses: dtolnay/rust-toolchain@stable++ # rust-cache keys on the job id, which is just "linux" for all six legs.+ # Without an explicit key a fedora job would happily restore a target dir+ # built inside ubuntu, and whichever leg finishes first wins the write+ # while the others burn minutes compressing an entry they cannot save.+ - name: Cache cargo+ uses: Swatinem/rust-cache@v2+ with:+ key: ${{ matrix.name }}-${{ matrix.arch }}+ cache-on-failure: true+ save-if: ${{ github.ref == format('refs/heads/{0}', github.event.repository.default_branch) }}++ - name: Install system deps+ run: env CI=yes PATH=$PATH ./get-deps++ - name: Build+ run: |+ cargo build --release \+ -p wezterm \+ -p wezterm-gui \+ -p wezterm-mux-server \+ -p strip-ansi-escapes++ - name: Package+ run: bash ci/deploy.sh++ - name: Collect RPMs+ if: startsWith(matrix.name, 'fedora')+ run: mv "$HOME"/rpmbuild/RPMS/*/*.rpm .++ - name: Build AppImage+ if: matrix.appimage+ run: |+ set -eu+ apt-get install -y --no-install-recommends file zsync+ bash ci/appimage.sh++ - name: Upload+ uses: actions/upload-artifact@v7+ with:+ name: ${{ matrix.name }}-${{ matrix.arch }}+ path: |+ thinkterm-*.deb+ thinkterm-*.tar.xz+ thinkterm-*.rpm+ ThinkTerm-*.AppImage+ if-no-files-found: error++ publish:+ name: publish+ needs: [prepare, macos, windows, linux]+ # Runs even when some platforms were deselected (those jobs report as+ # skipped), but never after a real failure -- half a release is worse than+ # none.+ if: >-+ !cancelled()+ && needs.prepare.outputs.publish == 'true'+ && !contains(needs.*.result, 'failure')+ runs-on: ubuntu-latest+ permissions:+ contents: write++ steps:+ - name: Checkout+ uses: actions/checkout@v7++ - name: Download all artifacts+ uses: actions/download-artifact@v8+ with:+ path: dist+ merge-multiple: true++ - name: Checksum+ run: |+ set -eu+ mkdir -p dist+ cd dist+ # A plan with every platform deselected reaches this job with nothing+ # downloaded. Stop here rather than let ci/create-release.sh mint an+ # empty tag and prerelease on the default branch.+ [ -n "$(ls -A .)" ] || { echo "::error::no artifacts to publish"; exit 1; }+ for f in * ; do+ [ -f "$f" ] || continue+ sha256sum "$f" > "$f.sha256"+ done+ ls -l++ - name: Create release+ env:+ GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}+ run: bash ci/retry.sh bash ci/create-release.sh '${{ needs.prepare.outputs.release_tag }}'++ - name: Upload to release+ env:+ GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}+ run: |+ bash ci/retry.sh gh release upload --clobber \+ '${{ needs.prepare.outputs.release_tag }}' dist/*diff --git a/.gitignore b/.gitignoreindex 6a061213..ede6b271 100644--- a/.gitignore+++ b/.gitignore@@ -69,7 +69,20 @@ __pycache__//nix/result/research//docs/-ThinkTerm-macos-v0.1.0.zip+# Packaging output. The ThinkTerm-/thinkterm- names are what ci/deploy.sh and+# ci/appimage.sh produce now; the WezTerm-/wezterm- ones above are kept for+# anything left over from before the rename.+/ThinkTerm-*.zip+/ThinkTerm-*.exe+/ThinkTerm-*.AppImage+/ThinkTerm-*.AppImage.zsync+/ThinkTerm-macos-*+/thinkterm*.deb+/thinkterm*.rpm+/thinkterm*.tar.xz+/thinkterm.spec+/thinkterm.rb+*.md# Keep ThinkTerm-specific design documentation under version control.diff --git a/ci/appimage.sh b/ci/appimage.shindex 27a359e6..ce99ba22 100755--- a/ci/appimage.sh+++ b/ci/appimage.sh@@ -15,7 +15,22 @@ install -Dm644 assets/wezterm.desktop AppDir/usr/share/applications/com.roversx.install -Dm644 assets/wezterm.appdata.xml AppDir/usr/share/metainfo/com.roversx.thinkterm.appdata.xmlinstall -Dm644 assets/wezterm-nautilus.py AppDir/usr/share/nautilus-python/extensions/wezterm-nautilus.py-[ -x /tmp/linuxdeploy ] || ( curl -L 'https://github.com/linuxdeploy/linuxdeploy/releases/download/continuous/linuxdeploy-x86_64.AppImage' -o /tmp/linuxdeploy && chmod +x /tmp/linuxdeploy )+# linuxdeploy publishes per-machine names (x86_64, aarch64); the rest of the+# release labels the same machine arm64, so normalise for the output name.+MACHINE=$(uname -m)+case "$MACHINE" in+ aarch64) ARCH=arm64 ;;+ *) ARCH=$MACHINE ;;+esac++# -f matters: without it curl writes the HTTP error body to the file, chmod+# makes it executable, and the [ -x ] guard then caches that corrupt download+# for the rest of the job.+[ -x /tmp/linuxdeploy ] || ( curl -fL --retry 3 "https://github.com/linuxdeploy/linuxdeploy/releases/download/continuous/linuxdeploy-${MACHINE}.AppImage" -o /tmp/linuxdeploy && chmod +x /tmp/linuxdeploy )++# GitHub's job containers have no /dev/fuse, so both linuxdeploy itself and the+# AppImage it produces have to self-extract instead of FUSE-mounting.+export APPIMAGE_EXTRACT_AND_RUN=1TAG_NAME=${TAG_NAME:-$(git -c "core.abbrev=8" show -s "--format=%cd-%h" "--date=format:%Y%m%d-%H%M%S")}distro=$(lsb_release -is 2>/dev/null || sh -c "source /etc/os-release && echo \$NAME")@@ -23,12 +38,15 @@ distver=$(lsb_release -rs 2>/dev/null || sh -c "source /etc/os-release && echo \# Embed appropriate update info# https://github.com/AppImage/AppImageSpec/blob/master/draft.md#github-releases+# The glob has to pin the architecture: a release now carries both an x86_64+# and an aarch64 AppImage, and an arch-blind pattern would let AppImageUpdate+# overwrite an arm64 binary with the x86_64 one.if [[ "$BUILD_REASON" == "Schedule" ]] ; then- UPDATE="gh-releases-zsync|RoversX|thinkterm|nightly|ThinkTerm-*.AppImage.zsync"- OUTPUT=ThinkTerm-nightly-$distro$distver.AppImage+ UPDATE="gh-releases-zsync|RoversX|thinkterm|nightly|ThinkTerm-*-$ARCH.AppImage.zsync"+ OUTPUT=ThinkTerm-nightly-$distro$distver-$ARCH.AppImageelse- UPDATE="gh-releases-zsync|RoversX|thinkterm|latest|ThinkTerm-*.AppImage.zsync"- OUTPUT=ThinkTerm-$TAG_NAME-$distro$distver.AppImage+ UPDATE="gh-releases-zsync|RoversX|thinkterm|latest|ThinkTerm-*-$ARCH.AppImage.zsync"+ OUTPUT=ThinkTerm-$TAG_NAME-$distro$distver-$ARCH.AppImagefi# Munge the path so that it finds our appstreamcli wrapperdiff --git a/ci/check-submodules.sh b/ci/check-submodules.shnew file mode 100755index 00000000..c2d625ab--- /dev/null+++ b/ci/check-submodules.sh@@ -0,0 +1,31 @@+#!/bin/bash+# Fail immediately when a required submodule checked out empty.+#+# Every one of these is needed at compile time -- the freetype and harfbuzz+# trees are built from source by deps/freetype/build.rs, and the two+# third_party icon sets are pulled in with include_bytes! from+# wezterm-gui/src/termwindow/ui/icons.rs. Without this check an empty checkout+# surfaces 20+ minutes into the build as an unreadable-file error, on a runner+# that bills at up to 10x.++set -eu++status=0++for dir in \+ deps/freetype/zlib \+ deps/freetype/libpng \+ deps/freetype/freetype2 \+ deps/harfbuzz/harfbuzz \+ third_party/lucide \+ third_party/simple-icons+do+ if [ -n "$(ls -A "$dir" 2>/dev/null)" ] ; then+ echo "ok $dir"+ else+ echo "::error::submodule $dir is empty; checkout needs submodules: recursive"+ status=1+ fi+done++exit $statusdiff --git a/ci/create-release.sh b/ci/create-release.shindex 763e286f..2d046027 100755--- a/ci/create-release.sh+++ b/ci/create-release.sh@@ -11,4 +11,9 @@ If you're looking for nightly downloads or more detailed installation instructioEOT)-gh release view "$name" || gh release create --prerelease --notes "$notes" --title "$name" "$name"+# When $name is not already a git tag (a manual run, where the name comes from+# ci/tag-name.sh) gh creates it -- against the default branch unless told+# otherwise, which would tag a commit nobody built.+gh release view "$name" || gh release create --prerelease \+ ${GITHUB_SHA:+--target "$GITHUB_SHA"} \+ --notes "$notes" --title "$name" "$name"diff --git a/ci/deploy.sh b/ci/deploy.shindex 97ac88de..1ae9f181 100755--- a/ci/deploy.sh+++ b/ci/deploy.sh@@ -19,9 +19,13 @@ ficase $OSTYPE indarwin*)- zipdir=ThinkTerm-macos-$TAG_NAME+ # Each CI job builds a single architecture, so the arch has to be part of+ # the name or the arm64 and x86_64 runs would overwrite each other's zip.+ # Unset means "whatever this machine produced", which is what a plain local+ # `cargo build --release` wants.+ zipdir=ThinkTerm-macos${MACOS_ARCH:+-$MACOS_ARCH}-$TAG_NAMEif [[ "$BUILD_REASON" == "Schedule" ]] ; then- zipname=ThinkTerm-macos-nightly.zip+ zipname=ThinkTerm-macos${MACOS_ARCH:+-$MACOS_ARCH}-nightly.zipelsezipname=$zipdir.zipfi@@ -124,16 +128,22 @@ case $OSTYPE in$TARGET_DIR/release/thinkterm-mux-server.exe \$TARGET_DIR/release/thinkterm-gui.exe \$TARGET_DIR/release/strip-ansi-escapes.exe \- $TARGET_DIR/release/thinkterm.pdb \- $TARGET_DIR/release/wezterm.pdb \assets/windows/conhost/conpty.dll \assets/windows/conhost/OpenConsole.exe \assets/windows/angle/libEGL.dll \assets/windows/angle/libGLESv2.dll \$zipdir++ # `[profile.release]` leaves `debug` off, so no PDBs exist today and+ # copying them unconditionally would abort the whole step under `set -e`.+ # Glob rather than name them: turning debuginfo on should ship symbols for+ # every binary, not just the two that happened to be listed here.+ cp $TARGET_DIR/release/*.pdb $zipdir 2>/dev/null || true++ # Same source as the four DLLs above -- wezterm-gui's build script only+ # stages a copy of it next to the exe, so take it from assets directly.mkdir $zipdir/mesa- cp $TARGET_DIR/release/mesa/opengl32.dll \- $zipdir/mesa+ cp assets/windows/mesa/opengl32.dll $zipdir/mesa7z a -tzip $zipname $zipdiriscc.exe -DMyAppVersion=${TAG_NAME#nightly} -F${instname} ci/windows-installer.iss;;@@ -142,7 +152,7 @@ case $OSTYPE indistver=$(lsb_release -rs 2>/dev/null || sh -c "source /etc/os-release && echo \$VERSION_ID")case "$distro" in*Fedora*|*CentOS*|*SUSE*)- WEZTERM_RPM_VERSION=$(echo ${TAG_NAME#nightly-} | tr - _)+ THINKTERM_RPM_VERSION=$(echo ${TAG_NAME#nightly-} | tr - _)distroid=$(sh -c "source /etc/os-release && echo \$ID" | tr - _)distver=$(sh -c "source /etc/os-release && echo \$VERSION_ID" | tr - _)@@ -194,16 +204,16 @@ BUILDEOFEOFfi# Generate single spec with subpackages- cat > wezterm.spec <<EOF-Name: wezterm-Version: ${WEZTERM_RPM_VERSION}+ cat > thinkterm.spec <<EOF+Name: thinkterm+Version: ${THINKTERM_RPM_VERSION}Release: ${SPEC_RELEASE}Packager: RoversXLicense: MITURL: https://github.com/RoversX/thinktermSummary: ThinkTerm workspace-first terminal emulator.${BUILD_REQUIRES}-Requires: wezterm-common, wezterm-gui, wezterm-mux-server+Requires: thinkterm-common, thinkterm-gui, thinkterm-mux-server%global debug_package %{nil}@@ -212,34 +222,34 @@ ThinkTerm is a terminal emulator with support for modern featuressuch as fonts with ligatures, hyperlinks, tabs and multiplewindows.-# Subpackage: wezterm-common-%package -n wezterm-common+# Subpackage: thinkterm-common+%package -n thinkterm-commonSummary: ThinkTerm - Common CLI componentsRequires: openssl-%description -n wezterm-common-wezterm-common provides the base CLI launcher and utilities shared by-all wezterm components.+%description -n thinkterm-common+thinkterm-common provides the base CLI launcher and utilities shared by+all ThinkTerm components.-# Subpackage: wezterm-gui-%package -n wezterm-gui+# Subpackage: thinkterm-gui+%package -n thinkterm-guiSummary: ThinkTerm - GUI and multiplexer-Requires: wezterm-common+Requires: thinkterm-common%if 0%{?suse_version}Requires: dbus-1, fontconfig, libxcb1, libxkbcommon0, libxkbcommon-x11-0, libwayland-client0, libwayland-egl1, libwayland-cursor0, Mesa-libEGL1, libxcb-keysyms1, libxcb-ewmh2, libxcb-icccm4%elseRequires: dbus, fontconfig, libxcb, libxkbcommon, libxkbcommon-x11, libwayland-client, libwayland-egl, libwayland-cursor, mesa-libEGL, xcb-util-keysyms, xcb-util-wm%endif-%description -n wezterm-gui-wezterm-gui is a GPU-accelerated cross-platform terminal emulator with+%description -n thinkterm-gui+thinkterm-gui is a GPU-accelerated cross-platform terminal emulator withsupport for modern features such as fonts with ligatures, hyperlinks,tabs and multiple windows.-# Subpackage: wezterm-mux-server-%package -n wezterm-mux-server+# Subpackage: thinkterm-mux-server+%package -n thinkterm-mux-serverSummary: ThinkTerm - Multiplexer server (headless)Requires: openssl-%description -n wezterm-mux-server-wezterm-mux-server is a headless terminal multiplexer that can be used+%description -n thinkterm-mux-server+thinkterm-mux-server is a headless terminal multiplexer that can be usedas a session manager for terminal sessions, without requiring X11,Wayland, or other GUI libraries.@@ -269,7 +279,7 @@ install -Dm644 assets/wezterm-nautilus.py %{buildroot}/usr/share/nautilus-python%files# Main package (metapackage) has no files-%files -n wezterm-common+%files -n thinkterm-common/usr/bin/thinkterm/usr/bin/wezterm/usr/bin/strip-ansi-escapes@@ -280,7 +290,7 @@ install -Dm644 assets/wezterm-nautilus.py %{buildroot}/usr/share/nautilus-python/etc/bash_completion.d/wezterm/etc/profile.d/*-%files -n wezterm-gui+%files -n thinkterm-gui/usr/bin/open-thinkterm-here/usr/bin/open-wezterm-here/usr/bin/thinkterm-gui@@ -289,7 +299,7 @@ install -Dm644 assets/wezterm-nautilus.py %{buildroot}/usr/share/nautilus-python/usr/share/metainfo/com.roversx.thinkterm.appdata.xml/usr/share/nautilus-python/extensions/wezterm-nautilus.py*-%files -n wezterm-mux-server+%files -n thinkterm-mux-server/usr/bin/thinkterm-mux-server%changelog@@ -298,10 +308,10 @@ install -Dm644 assets/wezterm-nautilus.py %{buildroot}/usr/share/nautilus-pythonEOFif test -n "${COPR_SRPM}" ; then- /usr/bin/rpmbuild -bs --rmspec wezterm.spec --verbose- mv $(rpm --eval '%{_srcrpmdir}')/wezterm-${TAR_NAME}*.src.rpm "${COPR_SRPM}"/+ /usr/bin/rpmbuild -bs --rmspec thinkterm.spec --verbose+ mv $(rpm --eval '%{_srcrpmdir}')/thinkterm-${TAR_NAME}*.src.rpm "${COPR_SRPM}"/else- /usr/bin/rpmbuild -bb --rmspec wezterm.spec --verbose+ /usr/bin/rpmbuild -bb --rmspec thinkterm.spec --verbosefi;;@@ -310,11 +320,11 @@ EOFmkdir -p pkg/debian/usr/bin pkg/debian/DEBIAN pkg/debian/usr/share/{applications,wezterm}if [[ "$BUILD_REASON" == "Schedule" ]] ; then- pkgname=wezterm-nightly- conflicts=wezterm+ pkgname=thinkterm-nightly+ conflicts=thinktermelse- pkgname=wezterm- conflicts=wezterm-nightly+ pkgname=thinkterm+ conflicts=thinkterm-nightlyficat > pkg/debian/control <<EOF@@ -381,9 +391,9 @@ EOFinstall -Dm644 assets/shell-integration/* -t pkg/debian/etc/profile.dif [[ "$BUILD_REASON" == "Schedule" ]] ; then- debname=wezterm-nightly.$distro$distver+ debname=thinkterm-nightly.$distro$distverelse- debname=wezterm-$TAG_NAME.$distro$distver+ debname=thinkterm-$TAG_NAME.$distro$distverfiarch=$(dpkg-architecture -q DEB_BUILD_ARCH_CPU)case $arch in@@ -400,8 +410,8 @@ EOF$SUDO apt-get install ./$debname.debfi- mv pkg/debian pkg/wezterm- tar cJf $debname.tar.xz -C pkg wezterm+ mv pkg/debian pkg/thinkterm+ tar cJf $debname.tar.xz -C pkg thinktermrm -rf pkg;;esac@@ -413,8 +423,8 @@ EOFabuild-keygen -a -n -b 8192pkgver="${TAG_NAME#nightly-}"cat > APKBUILD <<EOF-# Maintainer: Wez Furlong <[email protected]>-pkgname=wezterm+# Maintainer: RoversX+pkgname=thinktermpkgver=$(echo "$pkgver" | cut -d'-' -f1-2 | tr - .)_pkgver=$pkgverpkgrel=0diff --git a/ci/generate-workflows.py b/ci/generate-workflows.pyindex c69e31d0..6ab38b41 100755--- a/ci/generate-workflows.py+++ b/ci/generate-workflows.py@@ -4,6 +4,12 @@ import sysimport globfrom copy import deepcopy+# These workflows are WezTerm's, kept for reference only -- see the README in+# that directory. Generating into .github/workflows/ would resurrect 33 live+# workflows, eleven of which trigger on tags and would race release.yml for the+# same release assets.+GEN_DIR = "ci/legacy-workflows"+TRIGGER_PATHS = ["**/*.rs","**/Cargo.lock",@@ -963,7 +969,7 @@ def generate_actions(namer, jobber, trigger, is_continuous, is_tag=False):print(name)job, uploader = jobber(t)- file_name = f".github/workflows/gen_{name}.yml"+ file_name = f"{GEN_DIR}/gen_{name}.yml"if job.container:if t.app_image:container = f"container:\n image: {yv(job.container)}\n options: --privileged"@@ -1081,7 +1087,7 @@ on:def remove_gen_actions():- for name in glob.glob(".github/workflows/gen_*.yml"):+ for name in glob.glob(f"{GEN_DIR}/gen_*.yml"):os.remove(name)