Skip to content

Commit

Permalink
fix: release action (#25)
Browse files Browse the repository at this point in the history
  • Loading branch information
quinton22 authored Jun 21, 2024
1 parent 5d175ab commit 8de0a94
Show file tree
Hide file tree
Showing 2 changed files with 15 additions and 4 deletions.
Binary file added VandyScheduler.zip
Binary file not shown.
19 changes: 15 additions & 4 deletions scripts/prepare.sh
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,8 @@ writeVersion() {
local version=$1
version=${version#v}

jq ".version=\"$version\"" < manifest.json > manifest.json
jq ".version=\"$version\"" < manifest.json > tmp-manifest
mv tmp-manifest manifest.json
}

build() {
Expand All @@ -44,21 +45,31 @@ getFiles() {
}

copyFiles() {
local files=( "$( getFiles )" )
local files=( $( getFiles ) )
mkdir $VS_TMP
cp -r ./{$(IFS=,; echo "${files[*]}"),manifest.json} $VS_TMP/

for file in ${files[@]}; do
cp -r ./$file $VS_TMP/
done

cp ./manifest.json $VS_TMP/
}

createZip() {
cd $VS_TMP
zip -rq "$TMP_DIR/VandyScheduler.zip" *
zip -rq "../VandyScheduler.zip" *
cd -
mv "$TMP_DIR/VandyScheduler.zip" ./VandyScheduler.zip
}



main() {
if [[ -z $1 ]]; then
print "A version must be passed in"
exit 1
fi

print "Validating version"
validateVersion $1
print "writing version"
Expand Down

0 comments on commit 8de0a94

Please sign in to comment.