Skip to content

Commit

Permalink
Added release.sh for doing final compression and making the release a…
Browse files Browse the repository at this point in the history
…nd added the ouput directory to the .gitignore
  • Loading branch information
arungeorgesaji committed Oct 18, 2024
1 parent c60fd40 commit 828b472
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 0 deletions.
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
output/
1 change: 1 addition & 0 deletions build.sh
Original file line number Diff line number Diff line change
Expand Up @@ -21,3 +21,4 @@ ship --vm start arch-vm-base

./setup.sh
./view_vm.sh
./release.sh
7 changes: 7 additions & 0 deletions release.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
#!/bin/bash

echo "Starting the compression of the Arch disk image to generate the release package for 'arch-vm-base'..."

DISK_IMAGE=$(sudo virsh domblklist arch-vm-base | grep .qcow2 | awk '{print $2}')

tar -cvJf output/archlinux.tar.xz "$DISK_IMAGE"

0 comments on commit 828b472

Please sign in to comment.