ups script

This commit is contained in:
2026-05-17 14:30:48 +07:00
parent 2f5dd75460
commit ae63de364f
2 changed files with 7 additions and 0 deletions
+4
View File
@@ -18,6 +18,8 @@ build-builder:
build-macos:
rm -rf bin
CGO_ENABLED=1 GOOS=darwin GOARCH=arm64 go build -o bin/evening_detective_macos_arm64 cmd/evening_detective/main.go
cp bin/evening_detective_macos_arm64 ../evening_detective_stories
ls ../evening_detective_stories | grep Дело | xargs -I {} cp -f bin/evening_detective_macos_arm64 "../evening_detective_stories/{}/game/"
build-linux:
docker run --rm \
@@ -25,6 +27,8 @@ build-linux:
-w /app \
my-go-builder sh -c \
"CGO_ENABLED=1 GOOS=linux GOARCH=arm64 go build -o bin/evening_detective_linux_arm64 cmd/evening_detective/main.go"
ls ../evening_detective_stories | grep Дело | xargs -I {} cp -f bin/evening_detective_linux_arm64 "../evening_detective_stories/{}/game/"
ls ../evening_detective_stories | grep Дело | xargs -I {} cp -f docker-compose.yml "../evening_detective_stories/{}/game/"
text_to_story:
rm -f ./cmd/text_to_story/story.json