-
-
Notifications
You must be signed in to change notification settings - Fork 1
/
uploadMaps.ps1
26 lines (22 loc) · 994 Bytes
/
uploadMaps.ps1
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
# this is designed to run on keira's computer in particular. it shouldn't be *too* difficult to change, however.
# the big thing will be setting up pywikibot...
#
# run: python-qgis pwb/pwb.py pwb/generate_family_file
# then create a user-password.py: https://www.mediawiki.org/wiki/Manual:Pywikibot/BotPasswords
# run (to make sure it works): python-qgis pwb/pwb.py login
# this isnt 100% needed but...
python pwb/pwb.py login
# grab our revision tag
$tag = $(git describe --tags --dirty --always)
Get-ChildItem "export" -Filter *.png |
Foreach-Object -Parallel {
echo $_.Name
Switch ($_.Name) {
'city.png' {$dest = 'Devilfish city.png'}
'overview.png' {$dest = 'Devilfish overview.png'}
# 'endbringers.png' {$dest = 'Endbringer map.png'}
# 'prt-departments.png' {$dest = 'PRT departments.png'}
default {return}
}
python pwb/pwb.py upload -always -abortonwarn -ignorewarn:exists -filename:$dest $_.FullName "CLI upload from sylae/devilfish-map tag $tag"
} -ThrottleLimit 32