fix: make Codex worktree setup portable

This commit is contained in:
DIYgod 2026-07-25 15:31:42 +08:00
parent 110960a6f0
commit a9e2b1a818
3 changed files with 44 additions and 2 deletions

View File

@ -0,0 +1,37 @@
# THIS IS AUTOGENERATED. DO NOT EDIT MANUALLY
version = 1
name = "Folo"
[setup]
script = '''
pnpm i
'''
[[actions]]
name = "web dev"
icon = "run"
command = "pnpm dev:web"
[[actions]]
name = "electron dev"
icon = "run"
command = '''
cd apps/desktop
pnpm dev:electron
'''
[[actions]]
name = "ios dev"
icon = "run"
command = '''
cd apps/mobile
pnpm ios
'''
[[actions]]
name = "android dev"
icon = "run"
command = '''
cd apps/mobile
pnpm android
'''

7
.gitignore vendored
View File

@ -37,8 +37,11 @@ apps/desktop/resources/cli
.wrangler .wrangler
# Local agent artifacts # Local agent artifacts, except the shared Codex environment
.codex/ .codex/*
!.codex/environments/
.codex/environments/*
!.codex/environments/environment.toml
# E2E outputs # E2E outputs
/apps/desktop/e2e/playwright-report/ /apps/desktop/e2e/playwright-report/

2
.worktreeinclude Normal file
View File

@ -0,0 +1,2 @@
# Files copied by Codex into managed worktrees
apps/desktop/.env