Collect your channel's data from Twitch
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 
twitch_data_collector/create_dist.sh

30 lines
514 B

#!/bin/bash
export basename=twitch-data-collector
mkdir dist
cp settings.yml.dist dist/settings.yml
go_build () {
go build -o dist/$basename-$DRONE_TAG-$GOOS-$GOARCH$ext *.go
}
create_zip () {
cd dist
zip $basename-$DRONE_TAG-$GOOS-$GOARCH.zip $basename-$DRONE_TAG-$GOOS-$GOARCH$ext settings.yml
rm $basename-$DRONE_TAG-$GOOS-$GOARCH$ext
cd ..
}
export GOARCH=amd64
export GOOS=windows
export ext=".exe"
go_build
create_zip
export ext=""
export GOOS=linux
go_build
create_zip
rm dist/settings.yml