diff options
-rw-r--r-- | build.cmd | 2 | ||||
-rwxr-xr-x | build.sh | 2 | ||||
-rw-r--r-- | config.json | 6 |
3 files changed, 8 insertions, 2 deletions
@@ -118,7 +118,7 @@ if /i "%1" == "debug" (set __BuildTypeDebug=1&set processedArgs=!p if /i "%1" == "checked" (set __BuildTypeChecked=1&set processedArgs=!processedArgs! %1&shift&goto Arg_Loop) if /i "%1" == "release" (set __BuildTypeRelease=1&set processedArgs=!processedArgs! %1&shift&goto Arg_Loop) -if /i "%1" == "portable" (set __IsPortableBuild=-portable&set processedArgs=!processedArgs! %1&shift&goto Arg_Loop) +if /i "%1" == "-portable" (set __IsPortableBuild=-portable&set processedArgs=!processedArgs! %1&shift&goto Arg_Loop) REM All arguments after this point will be passed through directly to build.cmd on nested invocations REM using the "all" argument, and must be added to the __PassThroughArgs variable. @@ -634,7 +634,7 @@ while :; do __CrossBuild=1 ;; - portable) + -portable) __PortableBuild=1 ;; diff --git a/config.json b/config.json index f0780ed111..9d98a2ee20 100644 --- a/config.json +++ b/config.json @@ -621,6 +621,12 @@ "__BuildArch": "default" } }, + "portable": { + "description": "Triggers a portable build.", + "settings": { + "PortableBuild": "1" + } + }, "buildType": { "description": "Specifies configuration to publish, can be Release, Debug or Checked.", "settings": { |