Skip to content

Commit

Permalink
Merge pull request #103 from ruishawn/dev3
Browse files Browse the repository at this point in the history
fix: 更新交叉编译脚本
  • Loading branch information
keac authored Mar 23, 2024
2 parents 5edcaca + 559ec75 commit e52349c
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion build.sh
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,10 @@ else
xgo -targets=linux/amd64,windows/amd64,darwin/amd64 -out enscan -ldflags="$ldflags" .
fi

if [ -d 'build' ]; then
rm -rf build
echo "dir build existed, already removed."
fi
mkdir "build"
mv enscan-* build
cd build || exit
Expand All @@ -52,4 +56,4 @@ if [ "$1" == "release" ]; then
zip compress/$(echo $i | sed 's/\.[^.]*$//').zip "$i"
done
fi
cd ../..
cd ../..

0 comments on commit e52349c

Please sign in to comment.