NW-Unity
NW-Unity is a tool for auto packing your Unity WebGL output folder to a NW.js executable folder.
Quick Usage
Install by pip on Windows/Linux/MacOS:
pip install nwunity
Install by pip on GameShell:
sudo pip3 install nwunity
Pack your game:
# Package your Unity WebGL game(resolution is 320*240, full screen mode is on) on PC, Linux, or MacOS.
nwunity -d '/path/to/UnityWebGLDir' -n 'MyGame' --width 320 --height 240 --fullscreen
# Package your Unity WebGL files on GameShell.
nwunity -d '/path/to/UnityWebGLDir' -n 'MyGame' -p GameShell
How to use
NW-Unity is easy to use. You can install it by pip.
Install by pip
pip install nwunity
Parameters
You can use nwunity -h or nwunity --help to get help.
| Format | Parameter Explain |
|---|---|
| -d --directory | Set the root directory of your Unity WebGL files, default is current working directory. |
| -n --name | Set the name of your game, default is 'Untitled-Game'. |
| --width | Set the width of your game window, default is 1024. |
| --height | Set the height of your game window, default is 768. |
| --fullscreen | Set full screen mode on, default is off. |
| --noframe | Hide window frame title, default is show. |
| --resizable | Set resizable mode on, default is off. |
| --transparent | Set transparent mode on, default is off. |
| -p --platform | Set platform, default is normal(PC, Linux, MacOS...). Options: GameShell. |
| -i --icon | Set the icon of the game. |
GameShell tips
Make sure the OS version of your GameShell is 0.5 or newer.
Switch the GPU Driver of your GameShell to Lima if it's not.
License
The project is under the MIT license.
Metadata
Release files for nwunity 0.2.22
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| nwunity-0.2.22.tar.gz | 1.1 MB | Without provenance | Details for nwunity-0.2.22.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| nwunity-0.2.22-py3-none-any.whl | Python 3 | none | any | Details for nwunity-0.2.22-py3-none-any.whl |
Total release size: 2.2 MB
Release files / nwunity-0.2.22.tar.gz
| Download URL | nwunity-0.2.22.tar.gz |
|---|---|
| Size | 1.1 MB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
f2ca33ad9ab82b406a68720ab41df1989378874beda469d763e71a889f07d60f
|
|
BLAKE2b-256 checksum How to use checksums |
0766156e4b2b88e11263751abd58da5fb4c519b050fbde04959b68d94fb9a5b4
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/4.0.1 CPython/3.8.10
|
Release files / nwunity-0.2.22-py3-none-any.whl
| Download URL | nwunity-0.2.22-py3-none-any.whl |
|---|---|
| Size | 1.1 MB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
3790d30db999886910fd701a89480eaa0c33a585c7f1c50256c5198531e9c4c2
|
|
BLAKE2b-256 checksum How to use checksums |
b5eb47babb20393f3f73323c4298cfc0caaf92781759cf519a6c14273f78cf4f
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/4.0.1 CPython/3.8.10
|
Security for nwunity 0.2.22
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.