Skip to content
Draft
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
30 commits
Select commit Hold shift + click to select a range
8577376
Read the report of vfox doctor when it exits with 1
linghengqian Nov 27, 2026
c6ed2de
Show how each shell activates vfox, and fix the web interface
linghengqian Nov 27, 2026
5a46d88
Animate the desktop on its springs, with a setting for its motion
linghengqian Nov 27, 2026
19e6f3e
Repaint the window when the health check ends
linghengqian Nov 27, 2026
4304c24
Keep the memory of the desktop's motion down
linghengqian Nov 27, 2026
bcd4dc6
Read a crash of uiautomator as none of the app's
linghengqian Nov 27, 2026
3ea03f4
Describe plugins with profile files that need no release
linghengqian Nov 28, 2026
edfe0e6
Document the plugin profiles
linghengqian Nov 28, 2026
498b7fd
Manage vfox in WSL distributions and development containers
linghengqian Nov 29, 2026
1fcd281
Know the projects of an environment, and what vfox finds on its machine
linghengqian Nov 29, 2026
92d56c3
Serve the projects of each environment and what its plugins detect
linghengqian Nov 29, 2026
0150d00
Add the task dock and the icons of the new navigation
linghengqian Nov 29, 2026
5402157
Open no path that another device names, and read the id of a new cont…
linghengqian Nov 29, 2026
cef7e4f
Arrange the desktop around the overview, projects and toolchain
linghengqian Nov 29, 2026
267d75d
Drive the new navigation of the desktop with the tools
linghengqian Nov 29, 2026
dee5494
Document the overview, projects and toolchain
linghengqian Nov 29, 2026
350bf2e
Add the plugins of the registry from the browser and the phone
linghengqian Nov 29, 2026
39405d3
Try a failed list of the inventory again only after a pause
linghengqian Nov 29, 2026
9a5cd28
Arrange the web interface around projects, the toolchain and a task dock
linghengqian Nov 29, 2026
12f16bc
Read the project files again when the web page asks to
linghengqian Nov 29, 2026
1618aa9
Update the pictures that the contributing guide names
linghengqian Nov 29, 2026
a120234
Read the projects and what plugins detect from the phone
linghengqian Nov 29, 2026
1d99e25
Test the split button of the main action of a page
linghengqian Nov 29, 2026
8369848
Keep snack bars above what is at the bottom of a window
linghengqian Nov 29, 2026
945f8e5
Arrange the phone around the overview, projects, toolchain and settings
linghengqian Nov 29, 2026
1dc50fa
Drive the new navigation of the phone in measure-apk
linghengqian Nov 29, 2026
e06525e
Offer to add a project only once the projects are read
linghengqian Nov 29, 2026
1cb89b0
Keep the messages and headers of the phone readable at large text sizes
linghengqian Nov 29, 2026
601673a
Say which project a task works in and read the projects anew
linghengqian Nov 29, 2026
76d5f08
Document the new navigation of the phone and the project folder of a …
linghengqian Nov 29, 2026
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
The table of contents is too big for display.
Diff view
Diff view
  •  
  •  
  •  
66 changes: 65 additions & 1 deletion .github/workflows/mygo.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,8 @@
# limitations under the License.

# The application: formatting, golangci-lint and the unit tests (with
# coverage gates), the end-to-end scenarios that drive the built application
# coverage gates), the real vfox in development containers of Docker and in a
# distribution of WSL, the end-to-end scenarios that drive the built application
# (against captured output and against the real vfox, and its icon in the tray
# against a stand-in for the host of the tray icons on Linux, against the GNOME
# Shell of Ubuntu in a container, and against the taskbar on Windows), the Docker
Expand Down Expand Up @@ -189,6 +190,14 @@ jobs:
"$RUNNER_TEMP/$archive.tar.gz" "$VFOX_SHA256"
tar -xzf "$RUNNER_TEMP/$archive.tar.gz" -C "$RUNNER_TEMP"
echo "VFOX_PLUS_E2E_VFOX=$RUNNER_TEMP/$archive/vfox" >> "$GITHUB_ENV"
- name: Test with development containers
# The real vfox in containers of the Docker of the runner, labelled as the tools of development
# containers label theirs, which the application finds, looks into and runs vfox in (see
# mygo/core/env/docker_integration_test.go).
working-directory: mygo
run: |
VFOX_PLUS_TEST_DOCKER_VFOX="$VFOX_PLUS_E2E_VFOX" VFOX_PLUS_TEST_DOCKER_IMAGES="$ALPINE_IMAGE,$DEBIAN_IMAGE" \
go test -run TestDevelopmentContainersOfDocker -count=1 -v ./core/env/
- name: Run the end-to-end scenarios in a virtual display
env:
# `vfxtool measure` writes its numbers here for memory.yml.
Expand Down Expand Up @@ -328,6 +337,61 @@ jobs:
path: ${{ runner.temp }}/windows-e2e/*
if-no-files-found: error

wsl:
name: Run vfox in a distribution of WSL
# The real wsl.exe and the real vfox in a distribution of the Windows Subsystem for Linux (version
# 2), imported from the root file system of Alpine: the application finds it, starts it, runs vfox in
# it and cancels it (see mygo/core/env/wsl_integration_test.go). Linux machines cannot run it.
# Forks do not run CI.
if: github.repository == 'version-fox/vfox-plus'
runs-on: windows-2025-vs2026
timeout-minutes: 30
steps:
- uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1
- name: Read the pinned versions
shell: bash
run: grep -hE '^[A-Z0-9_]+=' mygo/versions.env >> "$GITHUB_ENV"
- uses: actions/setup-go@d8cbb8045d7f43706b9177cceb36c1f91a6644d5 # v7.1.0
with:
go-version: ${{ env.GO_VERSION }}
cache-dependency-path: mygo/go.sum
- name: Download vfox and the root file system of Alpine
shell: bash
env:
GH_TOKEN: ${{ github.token }}
run: |
temp="$(cygpath -u "$RUNNER_TEMP")"
archive="vfox_${VFOX_VERSION}_linux_x86_64"
shared/scripts/download-release-asset.sh \
version-fox/vfox "v$VFOX_VERSION" "$archive.tar.gz" "$temp/$archive.tar.gz" "$VFOX_SHA256"
mkdir -p "$temp/vfox"
tar -xzf "$temp/$archive.tar.gz" -C "$temp/vfox" --strip-components 1 "$archive/vfox"
curl --fail --silent --show-error --location --retry 3 --retry-all-errors --max-time 600 \
--output "$temp/alpine.tar.gz" \
"https://dl-cdn.alpinelinux.org/alpine/v${ALPINE_VERSION%.*}/releases/x86_64/alpine-minirootfs-$ALPINE_VERSION-x86_64.tar.gz"
echo "$ALPINE_SHA256 $temp/alpine.tar.gz" | sha256sum --check --strict -
- name: Import the distribution and install vfox in it
shell: pwsh
env:
WSL_UTF8: "1"
run: |
function Invoke-Wsl {
wsl.exe @args
if ($LASTEXITCODE -ne 0) { throw "wsl.exe $args failed with exit code $LASTEXITCODE" }
}
wsl.exe --version
Invoke-Wsl --import vfox-plus-test "$env:RUNNER_TEMP\wsl" "$env:RUNNER_TEMP\alpine.tar.gz" --version 2
# vfox is copied in through the drive that the distribution mounts.
$vfox = Invoke-Wsl --distribution vfox-plus-test --exec wslpath -a -u "$env:RUNNER_TEMP\vfox\vfox"
Invoke-Wsl --distribution vfox-plus-test --exec install -m 755 $vfox /usr/local/bin/vfox
Invoke-Wsl --distribution vfox-plus-test --exec /usr/local/bin/vfox --version
Invoke-Wsl --list --verbose
- name: Test the application with the distribution
working-directory: mygo
env:
VFOX_PLUS_TEST_WSL_DISTRIBUTION: vfox-plus-test
run: go test -run TestDistributionsOfWSL -count=1 -v ./core/env/

measure-remote:
name: Measure the lightweight mode
# Forks do not run CI.
Expand Down
6 changes: 3 additions & 3 deletions .github/workflows/phone.yml
Original file line number Diff line number Diff line change
Expand Up @@ -300,9 +300,9 @@ jobs:
name="$(basename "$picture")"
top=118
if [ "$name" = android-add-plugin.png ]; then
# The shade of the dialog does not cover the bar that Android keeps over the page of a tab: it is 168 px
# high (the status bar and the 64 dp of the toolbar, which has no title there, as the tabs draw their
# own), and under the shade it would be a bright band. The picture is cut under it.
# The shade of the dialog does not cover the bar that Android keeps over a page: it is 168 px high (the
# status bar and the 64 dp of the toolbar, which on the page of the registry has its title and the way
# back), and under the shade it would be a bright band. The picture is cut under it.
top=168
fi
"$RUNNER_TEMP/vfxtool" frame-phone --top "$top" "$picture" "$RUNNER_TEMP/phone-pictures/framed/$name"
Expand Down
67 changes: 67 additions & 0 deletions .github/workflows/profile-lint.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,67 @@
# Copyright 2026 Han Li and contributors
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS,
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and
# limitations under the License.

# For the repositories of vfox plugins: check the profile that a plugin ships,
# lib/vfox-plus.json (docs/en/dev/profiles.md), against the plugin, with the
# reader of vfox plus. A plugin repository calls it with
#
# jobs:
# profile:
# uses: version-fox/vfox-plus/.github/workflows/profile-lint.yml@main
name: Profile lint

on:
workflow_call:
inputs:
plugin-directory:
description: The directory of the plugin in the repository that calls
type: string
default: .
vfox-plus-ref:
description: The ref of version-fox/vfox-plus whose reader checks the profile
type: string
default: main

permissions:
contents: read

jobs:
lint:
name: Check the profile of the plugin
runs-on: ubuntu-latest
timeout-minutes: 10
steps:
- uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1
with:
path: plugin
persist-credentials: false
- uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1
with:
repository: version-fox/vfox-plus
ref: ${{ inputs.vfox-plus-ref }}
path: vfox-plus
persist-credentials: false
- name: Read the pinned versions
run: grep -hE '^[A-Z0-9_]+=' vfox-plus/mygo/versions.env >> "$GITHUB_ENV"
- uses: actions/setup-go@d8cbb8045d7f43706b9177cceb36c1f91a6644d5 # v7.1.0
with:
go-version: ${{ env.GO_VERSION }}
cache: false
- name: Check lib/vfox-plus.json
env:
PLUGIN_DIRECTORY: ${{ inputs.plugin-directory }}
run: >-
go -C "$GITHUB_WORKSPACE/vfox-plus/shared/tooling" run ./cmd/vfxtool profile lint
--root "$GITHUB_WORKSPACE/vfox-plus/mygo"
--plugin "$GITHUB_WORKSPACE/plugin/$PLUGIN_DIRECTORY"
2 changes: 1 addition & 1 deletion .github/workflows/repository.yml
Original file line number Diff line number Diff line change
Expand Up @@ -110,6 +110,6 @@ jobs:
fi
- name: Validate shared JSON resources
run: |
for file in shared/icons.json shared/i18n/*.arb shared/fixtures/*/cases.json; do
for file in shared/icons.json shared/i18n/*.arb shared/fixtures/*/cases.json shared/profile/*.json shared/profile/plugins/*.json; do
jq empty "$file" || { echo "::error file=$file::Invalid JSON"; exit 1; }
done
Loading
Loading