Fix server upload issue

master
trémeur 9 months ago
parent 9fe7dad24f
commit 343a7edc9c

@ -11,7 +11,8 @@ Rename =variables-template.py= to =variables.py= and edit:
- =endlessgames=: a list of “endless” games in the format =title (console)=
- =orgpath=: absolute path to the root directory in which =.org= files are stored, including trailing slash
- =localpath=: absolute path to this directory, including trailing slash
- =serverpath=: path to directory on the server where files will be uploaded (following =rclone= syntax, this will start with the name of the server, followed by a colon)
- =serverpath=: path to directory on the server where files will be uploaded, including trailing slash
- =rclonesiteroot=: path =rclone= uses to access your webserver
- =description=: content for the “about” section (can include HTML tags)
- =hue=: theme colour expressed as a hue from 0 to 360
- =consoles=: add or remove consoles following the format provided (=.png= images must be added to the build directory with a filename corresponding with the value of ="img"= for each console)

@ -2,4 +2,4 @@ import variables
script = open("build.sh", "a")
script.write("#!/usr/bin/env bash\npython3 generate.py\nrclone copy build " + variables.serverpath + " -P")
script.write("#!/usr/bin/env bash\npython3 generate.py\nrclone copy build " + variables.rclonesiteroot + variables.serverpath + " -P")

@ -10,6 +10,8 @@ localpath = ""
serverpath = ""
rcloneaddress = ""
description = ""
hue =

Loading…
Cancel
Save