@hagicode/steamworks.js 0.3.1-dev.5 → 0.4.1-dev.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/README.md
CHANGED
|
@@ -124,6 +124,26 @@ require('steamworks.js').electronEnableSteamOverlay()
|
|
|
124
124
|
For the production build, copy the relevant distro files from `sdk/redistributable_bin/{YOUR_DISTRO}` into the root of your build. If you are using electron-forge, look for [#75](https://github.com/HagiCode-org/steamworks.js/issues/75).
|
|
125
125
|
|
|
126
126
|
|
|
127
|
+
## Command line (SWJS)
|
|
128
|
+
|
|
129
|
+
`swjs` is a command line for Steam Workshop items, shipped as a separate package, [`@hagicode/steamworks-js-cli`](./cli/README.md) (the Steamworks JS CLI, short name SWJS). It uses the Steam client that is already running and logged in, so no password is typed.
|
|
130
|
+
|
|
131
|
+
```sh
|
|
132
|
+
npm i -g @hagicode/steamworks-js-cli
|
|
133
|
+
swjs doctor --app-id 4348910 # Node, binding, Steam client and app ownership
|
|
134
|
+
swjs init ./my-mod --app-id 4348910 # workshop/ folder with templates; never overwrites
|
|
135
|
+
swjs check ./my-mod # every problem at once
|
|
136
|
+
swjs publish ./my-mod # dry run: prints the plan, sends nothing
|
|
137
|
+
WORKSHOP_WRITE_CONFIRMED=1 swjs publish ./my-mod --yes
|
|
138
|
+
```
|
|
139
|
+
|
|
140
|
+
- Commands: `init`, `check`, `pack` (offline); `publish`, `update`, `preview`, `images list|upload|remove` (writes); `status`, `item`, `list`, `subscribed`, `doctor` (read-only).
|
|
141
|
+
- Every write is a dry run unless `--yes` is given, and then also needs `WORKSHOP_WRITE_CONFIRMED=1`. The refusal is printed before anything is sent.
|
|
142
|
+
- The item folder uses the same `workshop/workshop.json` layout as the `steamworks-workshop-publish` skill.
|
|
143
|
+
- `--json` on the read commands prints one JSON document on standard output. Exit codes: 0 success, 1 failure or refused write, 2 usage error.
|
|
144
|
+
|
|
145
|
+
Full command list, the item fields and the release notes: [cli/README.md](./cli/README.md).
|
|
146
|
+
|
|
127
147
|
## How to build
|
|
128
148
|
|
|
129
149
|
> You **only** need to build if you are going to change something on this fork's code. If you just want to use the library in your game, see the [installation section](#installation).
|
|
Binary file
|