diff options
| author | Diego Miguel <dmlls@diegomiguel.me> | 2022-03-02 10:34:49 +0100 |
|---|---|---|
| committer | Diego Miguel <dmlls@diegomiguel.me> | 2022-06-11 16:56:35 +0200 |
| commit | 03790d4e632ce95d98ae366407eb06da8c0a7620 (patch) | |
| tree | 5c4828d01d9a23920b537fe5bfc337b28606cdb0 /post_build.sh | |
| parent | be16ef0d56c471dc905c10e8708a107285639d0b (diff) | |
Build on push to 'colors-rebase' branch
Diffstat (limited to 'post_build.sh')
| -rwxr-xr-x | post_build.sh | 26 |
1 files changed, 26 insertions, 0 deletions
diff --git a/post_build.sh b/post_build.sh new file mode 100755 index 00000000..75952538 --- /dev/null +++ b/post_build.sh @@ -0,0 +1,26 @@ +#!/bin/sh +export LC_ALL=C.UTF-8 +export LANG=C.UTF-8 +set -e +set +x + +export PROJECT_VERSION="1.8.0" + +mkdir -p "$OUTPUT_DIR" + +cp "$SOURCES_DIR"/bootloader/bootloader-5.0.4.bin $OUTPUT_DIR/bootloader.bin +cp "$BUILD_DIR/src/pinetime-mcuboot-app-image-$PROJECT_VERSION.bin" "$OUTPUT_DIR/pinetime-mcuboot-app-image-$PROJECT_VERSION.bin" +cp "$BUILD_DIR/src/pinetime-mcuboot-app-dfu-$PROJECT_VERSION.zip" "$OUTPUT_DIR/pinetime-mcuboot-app-dfu-$PROJECT_VERSION.zip" + +cp "$BUILD_DIR/src/pinetime-mcuboot-recovery-loader-image-$PROJECT_VERSION.bin" "$OUTPUT_DIR/pinetime-mcuboot-recovery-loader-image-$PROJECT_VERSION.bin" +cp "$BUILD_DIR/src/pinetime-mcuboot-recovery-loader-dfu-$PROJECT_VERSION.zip" "$OUTPUT_DIR/pinetime-mcuboot-recovery-loader-dfu-$PROJECT_VERSION.zip" + + +mkdir -p "$OUTPUT_DIR/src" +cd "$BUILD_DIR" +cp src/*.bin "$OUTPUT_DIR/src" +cp src/*.hex "$OUTPUT_DIR/src" +cp src/*.out "$OUTPUT_DIR/src" +cp src/*.map "$OUTPUT_DIR/src" + +ls -RUv1 "$OUTPUT_DIR" | sed 's;^\([^/]\); \1;g' |
