1
0
Fork 0

Do not create ZIP archive

This commit is contained in:
Braiden Vasco 2017-09-25 07:21:47 +00:00
parent 6af8310699
commit 81a553002f
6 changed files with 2 additions and 30 deletions

View file

@ -1,9 +1,8 @@
before_install:
- sudo apt-get update
- sudo apt-get install -y bash quilt parted qemu-user-static debootstrap zerofree zip dosfstools libcap2-bin grep rsync
- sudo apt-get install -y bash quilt parted qemu-user-static debootstrap zerofree dosfstools libcap2-bin grep rsync
install: sudo ./run ./build.sh
script:
- ./run ./test/archive.sh
- ./run ./test/partition_alignment.sh

View file

@ -25,7 +25,7 @@ Dependencies
On Debian-based systems:
```bash
apt-get install bash quilt parted qemu-user-static debootstrap zerofree zip \
apt-get install bash quilt parted qemu-user-static debootstrap zerofree \
dosfstools libcap2-bin grep rsync
```
@ -42,7 +42,6 @@ The following files will be created:
* `rootfs/` - the root file system (`/` and `/boot/` partitions)
* `deploy/BarnacleOS-YYYY-MM-DD.img` - the image to write to SD card
* `deploy/BarnacleOS-YYYY-MM-DD.zip` - ZIP archive with the image

View file

@ -386,11 +386,3 @@ umount "$MOUNT_DIR/boot/"
umount "$MOUNT_DIR"
zerofree -v "$ROOT_DEV"
unmount_image "$IMG_FILE"
##
# Create zip archive with image file for distribution.
#
rm -f "$ZIP_FILE"
pushd $(dirname "$IMG_FILE") > /dev/null
zip "$ZIP_FILE" $(basename "$IMG_FILE")
popd > /dev/null

View file

@ -4,7 +4,6 @@ parted
qemu-debootstrap:qemu-user-static
debootstrap
zerofree
zip
mkdosfs:dosfstools
capsh:libcap2-bin
grep

1
run
View file

@ -17,7 +17,6 @@ export FILES_DIR="$BASE_DIR/files"
export IMG_DATE="$(date +%Y-%m-%d)"
export IMG_FILE="$DEPLOY_DIR/$IMG_NAME-${IMG_DATE}.img"
export ZIP_FILE="$DEPLOY_DIR/$IMG_NAME-${IMG_DATE}.zip"
export QUILT_PATCHES="$BASE_DIR/patches"
export QUILT_NO_DIFF_INDEX=1

View file

@ -1,16 +0,0 @@
#!/bin/false
test -f "$IMG_FILE"
test -f "$ZIP_FILE"
TMP="$(mktemp -d)"
unzip "$ZIP_FILE" -d "$TMP"
test 1 -eq $(ls "$TMP" | wc -l)
EXTRACTED_FILE="$TMP/$IMG_NAME-${IMG_DATE}.img"
test -f "$EXTRACTED_FILE"
cmp "$IMG_FILE" "$EXTRACTED_FILE"