mirror of
				https://github.com/eledio-devices/thirdparty-ArduinoJson.git
				synced 2025-10-31 16:14:11 +01:00 
			
		
		
		
	Added parameters to script build-arduino-package.sh
This commit is contained in:
		| @@ -1,21 +1,23 @@ | ||||
| #!/bin/bash | ||||
|  | ||||
| TAG=$(git describe) | ||||
| OUTPUT="ArduinoJson-$TAG.zip" | ||||
| set -eu | ||||
|  | ||||
| cd $(dirname $0)/../../.. | ||||
| INPUT=$1 | ||||
| OUTPUT=$2 | ||||
|  | ||||
| cd "$INPUT" | ||||
|  | ||||
| # remove existing file | ||||
| rm -f $OUTPUT | ||||
| rm -f "$OUTPUT" | ||||
|  | ||||
| # create zip | ||||
| 7z a $OUTPUT \ | ||||
|     -xr!.vs \ | ||||
| 	ArduinoJson/CHANGELOG.md \ | ||||
| 	ArduinoJson/examples \ | ||||
| 	ArduinoJson/src \ | ||||
| 	ArduinoJson/keywords.txt \ | ||||
| 	ArduinoJson/library.properties \ | ||||
| 	ArduinoJson/LICENSE.md \ | ||||
| 	ArduinoJson/README.md \ | ||||
| 	ArduinoJson/ArduinoJson.h | ||||
| 7z a "$OUTPUT" \ | ||||
| 	-xr!.vs \ | ||||
| 	CHANGELOG.md \ | ||||
| 	examples \ | ||||
| 	src \ | ||||
| 	keywords.txt \ | ||||
| 	library.properties \ | ||||
| 	LICENSE.md \ | ||||
| 	README.md \ | ||||
| 	ArduinoJson.h | ||||
|   | ||||
| @@ -59,7 +59,7 @@ commit_new_version | ||||
| add_tag | ||||
| push | ||||
|  | ||||
| extras/scripts/build-arduino-package.sh | ||||
| extras/scripts/build-arduino-package.sh . "../ArduinoJson-$TAG.zip" | ||||
| extras/scripts/build-single-header.sh "src/ArduinoJson.h" "../ArduinoJson-$TAG.h" | ||||
| extras/scripts/build-single-header.sh "src/ArduinoJson.hpp" "../ArduinoJson-$TAG.hpp" | ||||
| extras/scripts/wandbox/publish.sh "../ArduinoJson-$TAG.h" | ||||
|   | ||||
		Reference in New Issue
	
	Block a user