]> git.xonotic.org Git - xonotic/xonotic.git/blobdiff - misc/tools/xonotic-map-compiler-autobuild
Don't show the Welcome dialog in screenshots
[xonotic/xonotic.git] / misc / tools / xonotic-map-compiler-autobuild
index 2f93abd9e4b720177c3e590a5b5f422a53c93ef4..41ef0c30dc63c562eced6b02401f978ba80f9023 100755 (executable)
@@ -4,7 +4,7 @@ set -e
 
 bspdir="$PWD/data"
 url_http=https://beta.xonotic.org/autobuild-bsp/
-url_ssh=xonotic-beta:.
+url_ssh=xonotic-beta:./
 build_cachedir="$HOME/xonotic-map-compiler.cache/"
 screenshot_cachedir="$HOME/xonotic-map-screenshot.cache/"
 build_override="-bsp_timeout 3600 -vis_timeout 10800 -light_timeout 18000 -minimap_timeout 900 -scale_timeout 900 -timeout_stealing 0.8"
@@ -272,10 +272,10 @@ screenshotthemap()
        ) 2>&1 | tee ~/.xonotic/data/autoscreenshot.log
        good=false
        if mv ~/.xonotic/data/screenshots "$M-$blobhash"; then
-               ss2spam "$M" "$url?d" "$REFNAME" "$commithash" 0 > ~/.xonotic/data/"$M.ircss"
+               ss2spam "$M" "$url$M-$blobhash/" "$REFNAME" "$commithash" 0 > ~/.xonotic/data/"$M.ircss"
        else
                mkdir "$M-$blobhash"
-               ss2spam "$M" "$url?d" "$REFNAME" "$commithash" 1 > ~/.xonotic/data/"$M.ircss"
+               ss2spam "$M" "$url$M-$blobhash/" "$REFNAME" "$commithash" 1 > ~/.xonotic/data/"$M.ircss"
        fi
        mv ~/.xonotic/data/"$M.ircss" "$M-$blobhash"/
        mv ~/.xonotic/data/autoscreenshot.log "$M-$blobhash"/
@@ -311,12 +311,14 @@ getthemap()
                if ! curl -Lo "$bspdir/$M-$blobhash.pk3" "$url$M-$blobhash.pk3"; then
                        rm -f "$bspdir/$M-$blobhash.pk3"
                        echo "WARNING: could not download $url$M-$blobhash.pk3, maybe not ready yet"
+                       getthemap_fail=true
                        return 0
                fi
        fi
        if ! unzip -l "$bspdir/$M-$blobhash.pk3"; then
                rm -f "$bspdir/$M-$blobhash.pk3"
                echo "WARNING: could not download $url$M-$blobhash.pk3, invalid zip file"
+               getthemap_fail=true
                return 0
        fi
 }