{"id":23698003,"url":"https://github.com/zzxzzk115/nw-unity","last_synced_at":"2025-09-03T01:32:19.198Z","repository":{"id":62592043,"uuid":"210044508","full_name":"zzxzzk115/NW-Unity","owner":"zzxzzk115","description":"NW-Unity is a tool for auto packing your Unity WebGL output folder to a NW.js executable folder.","archived":false,"fork":false,"pushed_at":"2022-08-04T02:21:23.000Z","size":1674,"stargazers_count":8,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-09-01T03:14:49.260Z","etag":null,"topics":["gameshell","nwjs","packer","unity","webgl"],"latest_commit_sha":null,"homepage":"","language":"Python","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/zzxzzk115.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2019-09-21T19:47:24.000Z","updated_at":"2023-03-07T04:18:15.000Z","dependencies_parsed_at":"2022-11-04T07:18:01.887Z","dependency_job_id":null,"html_url":"https://github.com/zzxzzk115/NW-Unity","commit_stats":null,"previous_names":[],"tags_count":11,"template":false,"template_full_name":null,"purl":"pkg:github/zzxzzk115/NW-Unity","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/zzxzzk115%2FNW-Unity","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/zzxzzk115%2FNW-Unity/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/zzxzzk115%2FNW-Unity/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/zzxzzk115%2FNW-Unity/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/zzxzzk115","download_url":"https://codeload.github.com/zzxzzk115/NW-Unity/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/zzxzzk115%2FNW-Unity/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":273377051,"owners_count":25094525,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","status":"online","status_checked_at":"2025-09-02T02:00:09.530Z","response_time":77,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["gameshell","nwjs","packer","unity","webgl"],"created_at":"2024-12-30T07:13:01.982Z","updated_at":"2025-09-03T01:32:18.856Z","avatar_url":"https://github.com/zzxzzk115.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"# NW-Unity\n\n![LOGO](nwunity_logo.png)\n\n![PyPI - Wheel](https://img.shields.io/pypi/wheel/nwunity) ![PyPI - Python Version](https://img.shields.io/badge/python-3.x-green) ![version](https://img.shields.io/badge/version-0.2.23-yellow)\n\nNW-Unity is a tool for auto packing your Unity WebGL output folder to a NW.js executable folder.\n\n----\n\nSample project runs on Windows:\n\n![](./images/run_on_windows.png)\n\nSample project runs on GameShell:\n\n![](./images/run_on_gameshell.JPG)\n\n## Quick Usage\n\n**Install by pip on Windows/Linux/MacOS:**\n\n```powershell\npip install nwunity\n```\n\n**Install by pip on GameShell:**\n\n```bash\nsudo pip3 install nwunity\n```\n\n**Pack your game:**\n\n```bash\n# Package your Unity WebGL game(resolution is 320*240, full screen mode is on) on PC, Linux, or MacOS.\nnwunity -d \"/path/to/UnityWebGLDir\" -n \"MyGame\" --width 320 --height 240 --fullscreen\n\n# Package your Unity WebGL files on GameShell.\nnwunity -d \"/path/to/UnityWebGLDir\" -n \"MyGame\" -p GameShell\n```\n\n## How to use\n\nNW-Unity is easy to use. You can install  it by pip.\n\n### Install by pip\n\n```bash\npip install nwunity\n```\n\n### Parameters\n\nYou can use `nwunity -h` or `nwunity --help` to get help.\n\n| Format           | Parameter Explain                                            |\n| ---------------- | ------------------------------------------------------------ |\n| -d   --directory | Set the root directory of your Unity WebGL files, default is current working directory. |\n| -n   --name      | Set the name of your game, default is 'Untitled-Game'.       |\n| --width          | Set the width of your game window, default is 1024.          |\n| --height         | Set the height of your game window, default is 768.          |\n| --fullscreen     | Set full screen mode on, default is off.                     |\n| --noframe        | Hide window frame title, default is show.                    |\n| --resizable      | Set resizable mode on, default is off.                       |\n| --transparent    | Set transparent mode on, default is off.                     |\n| -p   --platform  | Set platform, default is normal(PC, Linux, MacOS...). Options: GameShell. |\n| -i   --icon      | Set the icon of the game.                                    |\n\n### General tips\n\nUnity WebGL uses `Brotli` to compress files by default, it has a bug: stuck at 90% when loading a game.\n\nSo, we have to change the default settings:\n\n![](./docs/images/3_fix_loading_bug.png)\n\nThis may help you.\n\n### GameShell tips\n\nMake sure the OS version of your GameShell is 0.5 or newer.\n\nYou have to build and install mesa 20.1 or newer.\n\nSwitch the GPU Driver of your GameShell to Lima if it's not.\n\nSee more details [here](./docs/GameShellTips.md)\n\n## License\n\nThe project is under the [MIT](./LICENSE) license.\n\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fzzxzzk115%2Fnw-unity","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fzzxzzk115%2Fnw-unity","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fzzxzzk115%2Fnw-unity/lists"}