From 5dec080a96b47989cf820aa00f97a6cd0d56e7c6 Mon Sep 17 00:00:00 2001 From: yunyingk Date: Sat, 31 Oct 2026 13:24:49 +0800 Subject: [PATCH] =?UTF-8?q?chore:=20=E6=B7=BB=E5=8A=A0=E8=B7=A8=E5=B9=B3?= =?UTF-8?q?=E5=8F=B0=E7=A4=BA=E4=BE=8B=E7=8E=AF=E5=A2=83?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .codex/environments/environment-2.toml | 64 ++++++++++++++++++++++++++ 1 file changed, 64 insertions(+) create mode 100644 .codex/environments/environment-2.toml diff --git a/.codex/environments/environment-2.toml b/.codex/environments/environment-2.toml new file mode 100644 index 0000000..936c8e0 --- /dev/null +++ b/.codex/environments/environment-2.toml @@ -0,0 +1,64 @@ +version = 1 +name = "示例 (example)" + +[setup] +script = ''' +echo "Example setup: installing dependencies" +bun install --frozen-lockfile''' + +[setup.darwin] +script = ''' +set -e +export PATH="$HOME/.bun/bin:$PATH" +echo "Example setup: macOS" +sw_vers -productVersion +bun install --frozen-lockfile''' + +[setup.linux] +script = ''' +set -e +export PATH="$HOME/.bun/bin:$PATH" +echo "Example setup: Linux" +uname -sr +bun install --frozen-lockfile''' + +[setup.win32] +script = ''' +echo Example setup: Windows +cmd /c ver +bun install --frozen-lockfile''' + +[cleanup] +script = 'echo "Example cleanup: no extra resources to stop"' + +[cleanup.darwin] +script = 'echo "Example cleanup: macOS, no extra resources to stop"' + +[cleanup.linux] +script = 'echo "Example cleanup: Linux, no extra resources to stop"' + +[cleanup.win32] +script = 'echo Example cleanup: Windows, no extra resources to stop' + +[[actions]] +name = "示例:运行测试" +icon = "test" +command = "bun test" + +[[actions]] +name = "示例:macOS 版本" +icon = "tool" +platform = "darwin" +command = "sw_vers" + +[[actions]] +name = "示例:Linux 版本" +icon = "tool" +platform = "linux" +command = "uname -a" + +[[actions]] +name = "示例:Windows 版本" +icon = "tool" +platform = "win32" +command = "cmd /c ver"