2023-04-28 09:19:08 +00:00
|
|
|
#!/bin/zsh
|
|
|
|
|
|
|
|
d=${0:a:h}
|
|
|
|
cd $d
|
2023-08-21 13:13:44 +00:00
|
|
|
su=5000
|
2023-07-01 14:21:48 +00:00
|
|
|
|
2023-04-28 09:19:08 +00:00
|
|
|
go generate ./...
|
2023-11-03 02:24:42 +00:00
|
|
|
cp -rf $d/ent/openapi.json $d/tmp/
|
2024-02-21 07:06:08 +00:00
|
|
|
|
|
|
|
case $OSTYPE in
|
|
|
|
darwin*)
|
|
|
|
sed -i '' "s/255/$su/g" $d/ent/ogent/oas_parameters_gen.go
|
|
|
|
sed -i '' "s/255/$su/g" $d/ent/openapi.json
|
|
|
|
;;
|
|
|
|
linux*)
|
|
|
|
sed -i "s/255/$su/g" $d/ent/ogent/oas_parameters_gen.go
|
|
|
|
sed -i "s/255/$su/g" $d/ent/openapi.json
|
|
|
|
;;
|
|
|
|
esac
|
2023-07-01 14:21:48 +00:00
|
|
|
|
2023-04-28 09:19:08 +00:00
|
|
|
cp -rf $d/tmp/ogent ent/
|
2024-02-21 07:06:08 +00:00
|
|
|
PASS=`cat token.json|jq -r .password` TOKEN=`cat token.json|jq -r .token` go build
|
|
|
|
#PASS=`cat token.json|jq -r .password` TOKEN=`cat token.json|jq -r .token` go run -mod=mod main.go
|