[{"data":1,"prerenderedAt":-1},["ShallowReactive",2],{"project-114631":3},{"id":4,"name":5,"fullName":6,"owner":7,"repo":5,"description":8,"homepage":8,"htmlUrl":8,"language":9,"languages":8,"totalLinesOfCode":8,"stars":10,"forks":11,"watchers":12,"openIssues":13,"contributorsCount":14,"subscribersCount":14,"size":14,"stars1d":14,"stars7d":15,"stars30d":15,"stars90d":14,"forks30d":14,"starsTrendScore":16,"compositeScore":17,"rankGlobal":8,"rankLanguage":8,"license":8,"archived":18,"fork":18,"defaultBranch":19,"hasWiki":20,"hasPages":18,"topics":21,"createdAt":8,"pushedAt":22,"updatedAt":23,"readmeContent":24,"aiSummary":25,"trendingCount":14,"starSnapshotCount":14,"syncStatus":26,"lastSyncTime":27,"discoverSource":28},114631,"CivHomebrew","XITRIX\u002FCivHomebrew","XITRIX",null,"JavaScript",56,8,3,6,0,5,1,39.86,false,"master",true,[],"2026-11-16 12:56:35","2026-11-21 21:41:34","# CivHomebrew\n\nA homebrew launcher for Nintendo Switch and Switch 2, powered by\n[Gezine’s CivSwitch](https:\u002F\u002Fgithub.com\u002FGezine\u002FCivSwitch). Browse your apps, install\n`.civapp` packages over FTP, and launch them straight from your console.\nA built-in terminal keeps the original JavaScript payload workflow close at hand.\n\n| App library | Options | FTP settings |\n| :---: | :---: | :---: |\n| [![CivHomebrew app library](docs\u002Fimages\u002Flauncher.jpg)](docs\u002Fimages\u002Flauncher.jpg) | [![CivHomebrew options menu](docs\u002Fimages\u002Foptions.jpg)](docs\u002Fimages\u002Foptions.jpg) | [![CivHomebrew FTP settings](docs\u002Fimages\u002Fftp-settings.jpg)](docs\u002Fimages\u002Fftp-settings.jpg) |\n\n*Screenshots from a console; apps shown are installed separately. Click to enlarge.*\n\n## Getting started\n\nYou’ll need a working [CivSwitch setup](https:\u002F\u002Fgithub.com\u002FGezine\u002FCivSwitch#workflow)\nusing the **Switch 1 edition of Civilization VII, physical cartridge version 1.0.0**,\nand a computer on the same network. CivHomebrew runs CivSwitch JavaScript apps;\n`.nro` homebrew is not supported.\n\n### Prepare\n\n1. Install **Git** and **Python 3.10+** on your computer. Permanent installation\n   and building from source also need **Node.js 22+ with npm**.\n2. Open **Terminal** on macOS or Linux, or **PowerShell** on Windows.\n3. Copy and paste these commands one line at a time, pressing **Enter** after each:\n\n   ```sh\n   git clone https:\u002F\u002Fgithub.com\u002FXITRIX\u002FCivHomebrew.git\n   cd CivHomebrew\n   ```\n\n   The first command downloads the project; the second opens its folder in the\n   terminal. Keep this window open and use it for the commands below.\n\n   If you already cloned the project, run `git pull --ff-only` inside its folder\n   before installing to get the current installer fixes.\n\nReplace `SWITCH_IP` in each command with your console’s IP address, for example\n`192.168.1.100`. Then choose one of the following installation methods.\n\n### Try before installing\n\nLeave Gezine’s Remote JS Loader waiting for a payload (TCP **9026**), then run:\n\n```sh\npython3 tools\u002Fpayload_menu.py menu SWITCH_IP\n```\n\nThis builds and uploads CivHomebrew for the current session without replacing the\nboot trigger. Keep the PC terminal open. To return to Gezine’s loader, press\n**−** in CivHomebrew, then **+** in its terminal. Apps you install are saved.\n\nFresh installations include the native renderer. Existing core and Launcher\nslots are preserved by this temporary boot: upgrade an older installation through\n**Y Options → Check for updates**, or use the permanent installer below.\n\n### Permanent installation — recommended\n\nAlready have Gezine’s persistent boot trigger (`XSTRIG.Civ7Save`) installed?\nLeave Gezine’s loader or CivHomebrew idle and run:\n\n```sh\npython3 tools\u002Finstall_homebrew.py SWITCH_IP\n```\n\nThe installer builds CivHomebrew, verifies backups on the PC and console, and\nreplaces only the existing trigger. Apps, settings and other saves are preserved.\nKeep the PC’s `backups\u002F` folder.\n\nThis installs the native Launcher with **CivHomebrew-SDK 1.3.6**, compatible with\ncurrent Moonlight packages. Rerunning the installer also stages the current\ncomponents over an older CivHomebrew installation; no separate renderer setup\nis needed.\n\nRestart Civilization VII and open **Load Game**. CivHomebrew now starts directly,\nwith no PC required. Hold **−** while opening Load Game for the recovery terminal.\nTo restore Gezine’s original trigger:\n\n```sh\npython3 tools\u002Finstall_homebrew.py SWITCH_IP --restore\n```\n\nRestart the game afterward. See [installation and recovery](docs\u002Fboot-installation.md)\nfor backup details.\n\n## Install apps over FTP\n\n1. In CivHomebrew, press **Y → FTP**, set **Enable** to **On**, and note the\n   address and port (default **5000**). Press **B** to save and leave FTP settings.\n2. Connect with an FTP client such as FileZilla: use the console’s IP, that port,\n   **plain FTP**, passive mode and binary transfers. Use anonymous login unless\n   you configured a username and password in FTP settings.\n3. Open **`Install civapp`** and upload your `.civapp` file. Wait for installation\n   to finish; the app appears in the library. Select it and press **A** to launch.\n\nFTP runs while the launcher is open and stops in the terminal or a running app.\nUse a trusted local network and trusted app packages. To update an app, upload\nits new `.civapp`; keep your packages on the PC for reinstalling.\n\nFor Moonlight, download `moonlight.civapp` from the\n[Moonlight releases](https:\u002F\u002Fgithub.com\u002FXITRIX\u002FMoonlight-CivSwitch\u002Freleases)\nand upload it to **Install civapp**. CivHomebrew **1.3.8** includes the native\nrenderer required by Moonlight **0.1.4**. After installing or upgrading\nCivHomebrew, close Civ VII completely and restart it before launching Moonlight.\n\nUse **Y Options → Check for updates** for CivHomebrew itself. Supported apps have\n**X Menu → Check app updates**. Once a newer version is found, the action is saved\nas **Update available** and rechecks before offering installation. Launcher-only\nupdates reload automatically; core changes show a full-restart instruction.\nSee [release publishing and component versions](docs\u002Fsystem-updates.md).\n\n## Build from source\n\nComplete [Prepare](#prepare) above, including installing **Node.js 22+ with npm**,\nthen run these commands in the same terminal:\n\n```sh\nnpm run build\nnpm run pack:hello\npython3 tools\u002Fpackage_payload.py --inspect dist\u002Fhello.civapp\nnpm test\n```\n\nNo npm or pip dependencies are required. Output is in `dist\u002F`:\n\n- `payload-menu.js` — the launcher’s boot payload; `menu` uploads it with staging\n  when needed.\n- `core.civupdate` and `launcher.civupdate` — system component updates.\n- `civhomebrew-release.json` — complete target component set for GitHub releases.\n- `hello.civapp` — a small sample app, ready to install over FTP.\n\nUse either installation method above to run your build. For a browser preview,\nrun `npm run preview` and open [localhost:8001](http:\u002F\u002F127.0.0.1:8001\u002F?demo=1).\nOptional `npm run test:ui` checks require Google Chrome.\n\n[Full usage guide](docs\u002Fusage.md) · [Architecture and updates](docs\u002Farchitecture.md)\n\nTo publish update-ready artifacts, use the manual **Release CivHomebrew** workflow\nwith a version input. It preserves unchanged component versions and publishes the\ncomplete release snapshot. See [release workflow](docs\u002Freleases.md).\n\n## .civapp packager\n\nBundle your CivSwitch app’s scripts, metadata and optional icon into one `.civapp`\nfile for sharing and FTP installation. The standalone packager works in any\nproject with **Python 3.10+**.\n\n**[Read the full packager documentation →](docs\u002Fpackager.md)**\n\n\n## Shared native renderer\n\nPublic releases and `npm run build` include the persistent native Launcher.\nVersion **1.3.8** fixes direct installation from Gezine's receiver and reduces\nmemory use during X-menu app updates. Install both the core and Launcher and\nfully restart Civ VII to activate the installation lifecycle fix.\n\nVersion **1.3.7** fixes the 1.3.6 release packaging that shipped the DOM-only\nLauncher and prevented current native apps from starting.\n\nThe native Launcher, Hello and Moonlight pin **CivHomebrew-SDK 1.3.6**.\nKit Checks and SW2NES require the same installed SDK and borrow its shared owner. Renderer\nfixes are maintained in that standalone library and consumed as identical,\nchecksum-pinned release bundles. CivHomebrew owns the terminal\u002FLauncher adapter.\nSee [shared renderer integration](docs\u002Fshared-native-ui.md) for builds, version\nupdates and the required Civ VII restart. The extraction is host-validated;\nearlier device qualification remains attached to its original builds.\n\n## Native UI history\n\nAn opt-in [NanoVG \u002F Vulkan launcher prototype](docs\u002Fnanovg-prototype.md) reuses\nthe DOM layout, caches geometry and atlases, and draws with GPU compute. It has\nseparate browser and host Vulkan comparisons and bounded Switch 2 qualification.\nThe [shared native terminal trial](docs\u002Fnanovg-terminal.md) keeps one display\nacross launcher\u002Fterminal switches. These historical trial tools remain available;\ncurrent public builds use the persistent shared native owner.\n\n## Credits\n\n- [XITRIX](https:\u002F\u002Fgithub.com\u002FXITRIX) — CivHomebrew.\n- [Gezine](https:\u002F\u002Fgithub.com\u002FGezine\u002FCivSwitch) — CivSwitch, its native bridge,\n  original loader and sender. Upstream code retains its [MIT license](third_party\u002FCivSwitch-LICENSE.txt).\n- The [upstream contributors](https:\u002F\u002Fgithub.com\u002FGezine\u002FCivSwitch#credits) whose\n  work made CivSwitch possible, and everyone helping test CivHomebrew.\n\nSee [provenance](docs\u002Fprovenance.md) for implementation sources and attribution.\n","CivHomebrew 是一款为 Nintendo Switch 及 Switch 2 设计的自制软件启动器，基于 CivSwitch 框架运行。它支持通过 FTP 浏览和安装 .civapp 格式应用、提供图形化应用库与设置界面，并内置终端以延续原始 JavaScript 载荷工作流。项目采用 JavaScript 实现，依赖 CivSwitch 的物理卡带（《文明VII》Switch 1 版本 1.0.0）作为执行环境，不兼容 .nro 格式自制程序。适用于已配置 CivSwitch 的进阶用户，在无需修改系统固件的前提下安全加载轻量级 JS 应用。",2,"2026-11-24 04:49:14","CREATED_QUERY"]