Skip to content

Commit

Permalink
for .exe file
Browse files Browse the repository at this point in the history
  • Loading branch information
ashitGetVisitApp committed Jan 16, 2025
1 parent c65e7c1 commit fd308cc
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion scripts/release_binaries.sh
Original file line number Diff line number Diff line change
Expand Up @@ -76,7 +76,11 @@ function release_for_architecture {
rm -rf ./sonic/ && \
cargo build --target "$3" --release && \
mkdir ./sonic && \
cp -p "target/$3/release/sonic" ./sonic/ && \
if [[ "$3" == *"windows-msvc"* ]]; then
cp -p "target/$3/release/sonic.exe" ./sonic/
else
cp -p "target/$3/release/sonic" ./sonic/
fi
cp -r ./config.cfg sonic/ && \
tar --owner=0 --group=0 -czvf "$final_tar" ./sonic && \
rm -r ./sonic/
Expand Down

0 comments on commit fd308cc

Please sign in to comment.