parent
257443e675
commit
cdd3dbc51c
@ -1,44 +0,0 @@
|
||||
#!/usr/bin/env bash
|
||||
|
||||
mark=''
|
||||
for ((ratio=0;${ratio}<=100;ratio+=5))
|
||||
do
|
||||
sleep 0.2
|
||||
printf "progress:[%-40s]%d%%\r" "${mark}" "${ratio}"
|
||||
mark="##${mark}"
|
||||
done
|
||||
echo
|
||||
|
||||
set -e
|
||||
|
||||
# Change directory to the 'scripts' folder
|
||||
cd scripts
|
||||
|
||||
# Grant execute permissions to all shell scripts in the 'scripts' folder
|
||||
chmod +x *.sh
|
||||
|
||||
# Run the 'env_check.sh' script for environment checks
|
||||
./env_check.sh
|
||||
|
||||
# Move back to the parent directory
|
||||
cd ..
|
||||
|
||||
# Check if Docker is installed
|
||||
if ! command -v docker >/dev/null 2>&1; then
|
||||
echo "Error: Docker is not installed. Please install Docker before running this script."
|
||||
exit 1
|
||||
fi
|
||||
|
||||
# Start Docker services using docker-compose
|
||||
if command -v docker-compose &> /dev/null
|
||||
then
|
||||
docker-compose up -d
|
||||
else
|
||||
docker compose up -d
|
||||
fi
|
||||
|
||||
# Move back to the 'scripts' folder
|
||||
cd scripts
|
||||
|
||||
# Run the 'docker_check_service.sh' script for Docker service checks
|
||||
./docker_check_service.sh
|
@ -1,12 +1,13 @@
|
||||
@echo off
|
||||
set output_dir=%~dp0..\_output\bin\platforms\windows
|
||||
go build -o %output_dir%\api.exe ../cmd/openim-api/main.go
|
||||
go build -o %output_dir%\auth.exe ../cmd/openim-rpc/openim-rpc-auth/main.go
|
||||
go build -o %output_dir%\conversation.exe ../cmd/openim-rpc/openim-rpc-conversation/main.go
|
||||
go build -o %output_dir%\friend.exe ../cmd/openim-rpc/openim-rpc-friend/main.go
|
||||
go build -o %output_dir%\group.exe ../cmd/openim-rpc/openim-rpc-group/main.go
|
||||
go build -o %output_dir%\msg.exe ../cmd/openim-rpc/openim-rpc-msg/main.go
|
||||
go build -o %output_dir%\third.exe ../cmd/openim-rpc/openim-rpc-third/main.go
|
||||
go build -o %output_dir%\user.exe ../cmd/openim-rpc/openim-rpc-user/main.go
|
||||
go build -o %output_dir%\push.exe ../cmd/openim-push/main.go
|
||||
go build -o %output_dir%\msgtransfer.exe ../cmd/openim-msgtransfer/main.go
|
||||
go build -o %output_dir%\msggateway.exe ../cmd/openim-msggateway/main.go
|
||||
|
||||
set "rpc_apps=auth conversation friend group msg third user"
|
||||
set "other_apps=api push msgtransfer msggateway"
|
||||
|
||||
for %%a in (%rpc_apps%) do (
|
||||
go build -o %output_dir%\%%a.exe ../cmd/openim-rpc/openim-rpc-%%a/main.go
|
||||
)
|
||||
|
||||
for %%a in (%other_apps%) do (
|
||||
go build -o %output_dir%\%%a.exe ../cmd/openim-%%a/main.go
|
||||
)
|
||||
|
Loading…
Reference in new issue