Skip to content

Commit cb41f2c

Browse files
committed
Add sign arg to build script
1 parent 901acd0 commit cb41f2c

File tree

1 file changed

+9
-0
lines changed

1 file changed

+9
-0
lines changed

eng/build.sh

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,7 @@ run_restore=''
1919
run_build=true
2020
run_pack=false
2121
run_publish=false
22+
run_sign=false
2223
run_tests=false
2324
build_all=false
2425
build_deps=true
@@ -64,6 +65,7 @@ Options:
6465
--[no-]pack Produce packages.
6566
--[no-]test Run tests.
6667
--[no-]publish Run publish.
68+
--[no-]sign Run signing.
6769
6870
--projects A list of projects to build. (Must be an absolute path.)
6971
Globbing patterns are supported, such as \"$(pwd)/**/*.csproj\".
@@ -160,6 +162,12 @@ while [[ $# -gt 0 ]]; do
160162
-no-publish|-nopublish)
161163
run_publish=false
162164
;;
165+
-sign)
166+
run_sign=true
167+
;;
168+
-no-sign|-nosign)
169+
run_sign=false
170+
;;
163171
-test|-t)
164172
run_tests=true
165173
;;
@@ -296,6 +304,7 @@ if [ "$run_build" = false ]; then
296304
fi
297305
msbuild_args[${#msbuild_args[*]}]="-p:Pack=$run_pack"
298306
msbuild_args[${#msbuild_args[*]}]="-p:Publish=$run_publish"
307+
msbuild_args[${#msbuild_args[*]}]="-p:Sign=$run_sign"
299308
msbuild_args[${#msbuild_args[*]}]="-p:Test=$run_tests"
300309

301310
msbuild_args[${#msbuild_args[*]}]="-p:TargetArchitecture=$target_arch"

0 commit comments

Comments
 (0)