Skip to content

Commit

Permalink
Fix build scripts
Browse files Browse the repository at this point in the history
  • Loading branch information
360tetsu360 committed May 28, 2024
1 parent 4cfeb24 commit 4c6c770
Showing 1 changed file with 6 additions and 3 deletions.
9 changes: 6 additions & 3 deletions buildscripts/post_image.sh
Original file line number Diff line number Diff line change
Expand Up @@ -3,15 +3,18 @@ set -e

WORKSPACE=${GITHUB_WORKSPACE:-/src}

OUT_DIR=$WORKSPACE/output
[ -f $OUT_DIR ] || mkdir $OUT_DIR

cd output/images
echo "atomaskygaze" > hostname
touch authorized_keys
cp -dpf uImage.lzma factory_t31_ZMC6tiIDQN
mv rootfs.squashfs rootfs_hack.squashfs
cp -f factory_t31_ZMC6tiIDQN rootfs_hack.squashfs $WORKSPACE/output
cp -r $WORKSPACE/assets $WORKSPACE/output
cp -f factory_t31_ZMC6tiIDQN rootfs_hack.squashfs $OUT_DIR
cp -r $WORKSPACE/assets $OUT_DIR

cd $WORKSPACE/output
cd $OUT_DIR
VERSION=$(cat $WORKSPACE/configs/skygaze.ver)
ZIP_NAME="$WORKSPACE/atom-skygaze.v$VERSION.zip"
[ -f $ZIP_NAME ] && rm "$ZIP_NAME"
Expand Down

0 comments on commit 4c6c770

Please sign in to comment.