Skip to content
This repository has been archived by the owner on Jan 11, 2024. It is now read-only.

Commit

Permalink
ci: Fixes to scripts
Browse files Browse the repository at this point in the history
  • Loading branch information
mrhid6 committed Dec 7, 2022
1 parent a007305 commit 802da6e
Show file tree
Hide file tree
Showing 2 changed files with 26 additions and 2 deletions.
12 changes: 12 additions & 0 deletions tools/package/ci_compile_linux.sh
Original file line number Diff line number Diff line change
Expand Up @@ -44,6 +44,8 @@ while read -r line; do
done <${release_dir_linux}/exe.list
rm ${release_dir_linux}/exe.list

echo -en "\e[32m✔\e[0m\n"

printDots "* Compiling Linux" 30

pkg app.js -c package.json -t node18-linux-x64 --out-path ${release_dir_linux} -d >${release_dir_linux}/build.log
Expand All @@ -58,4 +60,14 @@ fi
ZipLinuxFileName="${release_dir}/SSM-Linux-x64-${VERSION}.tar.gz"

cd ${release_dir_linux}
printDots "* Zipping Linux Binaries" 30

tar cz --exclude='*.log' -f ${ZipLinuxFileName} ./* >/dev/null
if [ $? -ne 0 ]; then
echo -en "\e[31m✘\e[0m\n"
exit 1
else
echo -en "\e[32m✔\e[0m\n"
fi


16 changes: 14 additions & 2 deletions tools/package/ci_compile_windows.sh
Original file line number Diff line number Diff line change
Expand Up @@ -68,10 +68,22 @@ echo -en "\e[32m✔\e[0m\n"

printDots "* Compiling Win64" 30
pkg app.js -c package.json -t node18-win-x64 --out-path ${release_dir_win64} -d >${release_dir_win64}/build.log
echo -en "\e[32m✔\e[0m\n"
if [ $? -ne 0 ]; then
echo -en "\e[31m✘\e[0m\n"
exit 1
else
echo -en "\e[32m✔\e[0m\n"
fi

ZipWin64FileName="${release_dir}/SSM-Win-x64-${VERSION}.zip"

cd ${release_dir_win64}
printDots "* Zipping Windows Binaries" 30
/c/BuildScripts/7z.exe a -tzip ${ZipWin64FileName} ./* -xr!build.log >/dev/null
echo -en "\e[32m✔\e[0m\n"

if [ $? -ne 0 ]; then
echo -en "\e[31m✘\e[0m\n"
exit 1
else
echo -en "\e[32m✔\e[0m\n"
fi

0 comments on commit 802da6e

Please sign in to comment.