feat: uploader creates new Workshop items as Public

Steam creates new items Private, so the first release of a mod stayed hidden. Pass -Visibility private to review a new item first.
This commit is contained in:
Fabian @ Blax Software 2026-11-29 21:45:08 +01:00
parent dfe40ecb68
commit 3b6d19082b
1 changed files with 6 additions and 2 deletions

View File

@ -17,8 +17,10 @@ Without About\PublishedFileId.txt it creates a new Workshop item; with it, it up
published from here yet (no Tools\workshop-published.txt). A new item needs one.
-DescriptionOnly with -DescriptionFile: replaces only the description. No build, no
content upload, no change note, no title or preview.
-Visibility public|friends|private|unlisted who sees the item. Left out, the item keeps its visibility, and a
new item gets Steam's default, as with the in-game uploader.
-Visibility public|friends|private|unlisted who sees the item. Left out, an existing item keeps its
visibility and a new item is created Public (Steam's own default
for a new item is Private). Pass -Visibility private to review a
new item before anyone else sees it.
The title is About.xml's name and the preview is About\Preview.png (under 1 MB), set on every upload like the
in-game uploader does.
@ -293,6 +295,8 @@ else {
if ($Publish -or (Test-Path -LiteralPath $previewFile)) { $toolArgs += @('--preview', $previewFile) }
if ($DescriptionFile) { $toolArgs += @('--description-file', $DescriptionFile) }
}
# Steam creates new items Private; a release is meant to be seen, so a new item is Public unless told otherwise.
if (-not $Visibility -and $create) { $Visibility = 'public' }
if ($Visibility) { $toolArgs += @('--visibility', $Visibility) }
if ($Publish) { $toolArgs += '--publish' }