Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/ClusterM/flipperzero-firmware.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSzymon Lisowiec <szymonlisowiec@gmail.com>2022-07-26 00:31:34 +0300
committerGitHub <noreply@github.com>2022-07-26 00:31:34 +0300
commit27b698f081ecbda04e9337ba5b9ee7abae8cdb4e (patch)
tree3cf5b01d1a46534ae3c198a61f0be7e48ecbf8e7
parentd085af31c3ed9155058d6b5ea49f279d73eab541 (diff)
fbt: Fixed build for users with space in username (#1437)
Co-authored-by: あく <alleteam@gmail.com> Co-authored-by: hedger <hedger@users.noreply.github.com>
-rw-r--r--assets/SConscript2
-rw-r--r--fbt.cmd4
-rw-r--r--scripts/toolchain/fbtenv.cmd10
-rw-r--r--site_scons/site_tools/fbt_assets.py8
-rw-r--r--site_scons/site_tools/fbt_dist.py6
-rw-r--r--site_scons/site_tools/fbt_version.py2
-rw-r--r--site_scons/site_tools/fwbin.py2
7 files changed, 17 insertions, 17 deletions
diff --git a/assets/SConscript b/assets/SConscript
index d5465534..46cc2ca2 100644
--- a/assets/SConscript
+++ b/assets/SConscript
@@ -97,7 +97,7 @@ if assetsenv["IS_BASE_FIRMWARE"]:
"#/assets/resources/Manifest",
assetsenv.GlobRecursive("*", "resources", exclude="Manifest"),
action=Action(
- '${PYTHON3} ${ASSETS_COMPILER} manifest "${TARGET.dir.posix}"',
+ '${PYTHON3} "${ASSETS_COMPILER}" manifest "${TARGET.dir.posix}"',
"${RESMANIFESTCOMSTR}",
),
)
diff --git a/fbt.cmd b/fbt.cmd
index 2339eaaa..484b1064 100644
--- a/fbt.cmd
+++ b/fbt.cmd
@@ -1,5 +1,5 @@
@echo off
-call %~dp0scripts\toolchain\fbtenv.cmd env
+call "%~dp0scripts\toolchain\fbtenv.cmd" env
set SCONS_EP=%~dp0\lib\scons\scripts\scons.py
@@ -14,4 +14,4 @@ if [%FBT_NO_SYNC%] == [] (
git submodule update --init
set "SCONS_DEFAULT_FLAGS=-Q --warn=target-not-built"
-python lib\scons\scripts\scons.py %SCONS_DEFAULT_FLAGS% %* \ No newline at end of file
+python lib\scons\scripts\scons.py %SCONS_DEFAULT_FLAGS% %*
diff --git a/scripts/toolchain/fbtenv.cmd b/scripts/toolchain/fbtenv.cmd
index 34adb12c..1a9af5a4 100644
--- a/scripts/toolchain/fbtenv.cmd
+++ b/scripts/toolchain/fbtenv.cmd
@@ -18,14 +18,14 @@ set "FBT_TOOLCHAIN_ROOT=%FBT_ROOT%\toolchain\i686-windows"
if not exist "%FBT_TOOLCHAIN_ROOT%" (
- powershell -ExecutionPolicy Bypass -File %FBT_ROOT%\scripts\toolchain\windows-toolchain-download.ps1 "%flipper_toolchain_version%"
+ powershell -ExecutionPolicy Bypass -File "%FBT_ROOT%\scripts\toolchain\windows-toolchain-download.ps1" "%flipper_toolchain_version%"
)
if not exist "%FBT_TOOLCHAIN_ROOT%\VERSION" (
- powershell -ExecutionPolicy Bypass -File %FBT_ROOT%\scripts\toolchain\windows-toolchain-download.ps1 "%flipper_toolchain_version%"
+ powershell -ExecutionPolicy Bypass -File "%FBT_ROOT%\scripts\toolchain\windows-toolchain-download.ps1" "%flipper_toolchain_version%"
)
-set /p REAL_TOOLCHAIN_VERSION=<%FBT_TOOLCHAIN_ROOT%\VERSION
+set /p REAL_TOOLCHAIN_VERSION=<"%FBT_TOOLCHAIN_ROOT%\VERSION"
if not "%REAL_TOOLCHAIN_VERSION%" == "%FLIPPER_TOOLCHAIN_VERSION%" (
- powershell -ExecutionPolicy Bypass -File %FBT_ROOT%\scripts\toolchain\windows-toolchain-download.ps1 "%flipper_toolchain_version%"
+ powershell -ExecutionPolicy Bypass -File "%FBT_ROOT%\scripts\toolchain\windows-toolchain-download.ps1" "%flipper_toolchain_version%"
)
@@ -40,6 +40,6 @@ if not "%1" == "env" (
echo *********************************
echo * fbt build environment *
echo *********************************
- cd %FBT_ROOT%
+ cd "%FBT_ROOT%"
cmd /k
)
diff --git a/site_scons/site_tools/fbt_assets.py b/site_scons/site_tools/fbt_assets.py
index 0c2ce6f7..c844db36 100644
--- a/site_scons/site_tools/fbt_assets.py
+++ b/site_scons/site_tools/fbt_assets.py
@@ -109,14 +109,14 @@ def generate(env):
BUILDERS={
"IconBuilder": Builder(
action=Action(
- "${PYTHON3} ${ASSETS_COMPILER} icons ${SOURCE.posix} ${TARGET.dir.posix}",
+ '${PYTHON3} "${ASSETS_COMPILER}" icons ${SOURCE.posix} ${TARGET.dir.posix}',
"${ICONSCOMSTR}",
),
emitter=icons_emitter,
),
"ProtoBuilder": Builder(
action=Action(
- "${PYTHON3} ${NANOPB_COMPILER} -q -I${SOURCE.dir.posix} -D${TARGET.dir.posix} ${SOURCES.posix}",
+ '${PYTHON3} "${NANOPB_COMPILER}" -q -I${SOURCE.dir.posix} -D${TARGET.dir.posix} ${SOURCES.posix}',
"${PROTOCOMSTR}",
),
emitter=proto_emitter,
@@ -125,14 +125,14 @@ def generate(env):
),
"DolphinSymBuilder": Builder(
action=Action(
- '${PYTHON3} ${ASSETS_COMPILER} dolphin -s dolphin_${DOLPHIN_RES_TYPE} "${SOURCE}" "${_DOLPHIN_OUT_DIR}"',
+ '${PYTHON3} "${ASSETS_COMPILER}" dolphin -s dolphin_${DOLPHIN_RES_TYPE} "${SOURCE}" "${_DOLPHIN_OUT_DIR}"',
"${DOLPHINCOMSTR}",
),
emitter=dolphin_emitter,
),
"DolphinExtBuilder": Builder(
action=Action(
- '${PYTHON3} ${ASSETS_COMPILER} dolphin "${SOURCE}" "${_DOLPHIN_OUT_DIR}"',
+ '${PYTHON3} "${ASSETS_COMPILER}" dolphin "${SOURCE}" "${_DOLPHIN_OUT_DIR}"',
"${DOLPHINCOMSTR}",
),
emitter=dolphin_emitter,
diff --git a/site_scons/site_tools/fbt_dist.py b/site_scons/site_tools/fbt_dist.py
index 15a653a6..7c28c69c 100644
--- a/site_scons/site_tools/fbt_dist.py
+++ b/site_scons/site_tools/fbt_dist.py
@@ -74,7 +74,7 @@ def DistCommand(env, name, source, **kw):
command = env.Command(
target,
source,
- '@${PYTHON3} ${ROOT_DIR.abspath}/scripts/sconsdist.py copy -p ${DIST_PROJECTS} -s "${DIST_SUFFIX}" ${DIST_EXTRA}',
+ '@${PYTHON3} "${ROOT_DIR.abspath}/scripts/sconsdist.py" copy -p ${DIST_PROJECTS} -s "${DIST_SUFFIX}" ${DIST_EXTRA}',
**kw,
)
env.Pseudo(target)
@@ -96,7 +96,7 @@ def generate(env):
"UsbInstall": Builder(
action=[
Action(
- "${PYTHON3} ${ROOT_DIR.abspath}/scripts/selfupdate.py dist/${DIST_DIR}/f${TARGET_HW}-update-${DIST_SUFFIX}/update.fuf"
+ '${PYTHON3} "${ROOT_DIR.abspath}/scripts/selfupdate.py" dist/${DIST_DIR}/f${TARGET_HW}-update-${DIST_SUFFIX}/update.fuf'
),
Touch("${TARGET}"),
]
@@ -105,7 +105,7 @@ def generate(env):
action=Action(
[
Mkdir("$TARGET"),
- "${PYTHON3} ${ROOT_DIR.abspath}/scripts/assets.py "
+ '${PYTHON3} "${ROOT_DIR.abspath}/scripts/assets.py" '
"copro ${COPRO_CUBE_DIR} "
"${TARGET} ${COPRO_MCU_FAMILY} "
"--cube_ver=${COPRO_CUBE_VERSION} "
diff --git a/site_scons/site_tools/fbt_version.py b/site_scons/site_tools/fbt_version.py
index 5073c55d..909eea4f 100644
--- a/site_scons/site_tools/fbt_version.py
+++ b/site_scons/site_tools/fbt_version.py
@@ -16,7 +16,7 @@ def generate(env):
BUILDERS={
"VersionBuilder": Builder(
action=Action(
- "${PYTHON3} ${ROOT_DIR.abspath}/scripts/version.py generate -t ${TARGET_HW} -o ${TARGET.dir.posix} --dir ${ROOT_DIR}",
+ '${PYTHON3} "${ROOT_DIR.abspath}/scripts/version.py" generate -t ${TARGET_HW} -o ${TARGET.dir.posix} --dir "${ROOT_DIR}"',
"${VERSIONCOMSTR}",
),
emitter=version_emitter,
diff --git a/site_scons/site_tools/fwbin.py b/site_scons/site_tools/fwbin.py
index 848571e3..37e64e56 100644
--- a/site_scons/site_tools/fwbin.py
+++ b/site_scons/site_tools/fwbin.py
@@ -30,7 +30,7 @@ def generate(env):
),
"DFUBuilder": Builder(
action=Action(
- '${PYTHON3} ${BIN2DFU} -i "${SOURCE}" -o "${TARGET}" -a ${IMAGE_BASE_ADDRESS} -l "Flipper Zero F${TARGET_HW}"',
+ '${PYTHON3} "${BIN2DFU}" -i "${SOURCE}" -o "${TARGET}" -a ${IMAGE_BASE_ADDRESS} -l "Flipper Zero F${TARGET_HW}"',
"${DFUCOMSTR}",
),
suffix=".dfu",