Skip to content

Commit dbcbdc5

Browse files
committed
Fix output path for builds on Linux
1 parent 31d0fa1 commit dbcbdc5

1 file changed

Lines changed: 3 additions & 3 deletions

File tree

syrup/functions.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -244,7 +244,7 @@ def compileNSISTemplate(build_dir, artifact_dir, executables, **kwargs):
244244
for path, dirs, files in os.walk(build_dir):
245245
for name in files:
246246
itempath = os.path.join(path, name)
247-
outpath = os.path.relpath(itempath, build_dir)
247+
outpath = os.path.relpath(itempath, build_dir).replace(os.path.sep, '\\')
248248

249249
install_files.append(dict(
250250
input = itempath,
@@ -259,8 +259,8 @@ def compileNSISTemplate(build_dir, artifact_dir, executables, **kwargs):
259259

260260
for name in dirs:
261261
itempath = os.path.join(path, name)
262-
relitempath = os.path.relpath(itempath, build_dir)
263-
install_dirs.append(relitempath)
262+
outpath = os.path.relpath(itempath, build_dir).replace(os.path.sep, '\\')
263+
install_dirs.append(outpath)
264264

265265
template_variables = {
266266
'files': install_files,

0 commit comments

Comments
 (0)