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:
parent
a66d3e7600
commit
5382a06201
|
|
@ -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.
|
published from here yet (no Tools\workshop-published.txt). A new item needs one.
|
||||||
-DescriptionOnly with -DescriptionFile: replaces only the description. No build, no
|
-DescriptionOnly with -DescriptionFile: replaces only the description. No build, no
|
||||||
content upload, no change note, no title or preview.
|
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
|
-Visibility public|friends|private|unlisted who sees the item. Left out, an existing item keeps its
|
||||||
new item gets Steam's default, as with the in-game uploader.
|
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
|
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.
|
in-game uploader does.
|
||||||
|
|
@ -293,6 +295,8 @@ else {
|
||||||
if ($Publish -or (Test-Path -LiteralPath $previewFile)) { $toolArgs += @('--preview', $previewFile) }
|
if ($Publish -or (Test-Path -LiteralPath $previewFile)) { $toolArgs += @('--preview', $previewFile) }
|
||||||
if ($DescriptionFile) { $toolArgs += @('--description-file', $DescriptionFile) }
|
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 ($Visibility) { $toolArgs += @('--visibility', $Visibility) }
|
||||||
if ($Publish) { $toolArgs += '--publish' }
|
if ($Publish) { $toolArgs += '--publish' }
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue