Add travis for automatic releases

This commit is contained in:
David Vogel 2019-10-25 21:07:19 +02:00
parent 5f3c55823c
commit ac2e0bff40
3 changed files with 50 additions and 1 deletions

1
.gitignore vendored
View File

@ -105,3 +105,4 @@ $RECYCLE.BIN/
/libs/
output/
/distribution

32
.travis.yml Normal file
View File

@ -0,0 +1,32 @@
language: go
go:
- "1.13.x"
env:
- GO111MODULE=on
matrix:
include:
- os: windows
script:
- cd bin/stitch
- go test
- go build
before_deploy: ./scripts/pack_windows.x86.bat
cache:
directories:
- $HOME/AppData/Local/go-build
- $HOME/gopath/pkg/mod
install: true
deploy:
provider: releases
api_key:
secure: pUvWpsj6oy+F+C71ftozpf7ZhAC808Y1vVaxjql3CUYVZGN1Fx8KnmTJpjZxhLALadCQmp3QrqEZ6uWeamHy66ipPyroM+yHlx4vUqOlE973S/lF7F+VWUCaJBv04nTkPquQrr/quqrpj/1YYthWa7ZaNcqOuhkRd2/VWevPw3vbvwCPd9bWDMcY9gdtXmIiLrkF6eZPo7L4nM759jOG2wIN4W10x57qv9xdVGpLkRKvFcKfEyS0iPXbANdwZcjKesumpyNY3DzgKf8mKOcLrKe/BT7z0CqYT+Z55bwD+TQt94sh5OinPhotKtnEhR+zEN+5EonF4hwHNAfYNl9x2IiEVww4XTdGHN/RK+3GKCNP7raDbvsGimp4egF+7HzTmqBsL6LqkGMX6cUBVLpgu5IL2s98zSGudhYkmo5Dm+WYP1CmHDFSOYj5qUuTbZuQoqoy/yhKLKeEfGJJeO7wyRONypB9Q7S+Rpr4PMrW1pQqdTEHxho9Vr/5HtxP9Z2dWEOlsK9GH9i4eLtt2p0crArgTFruE2qd8eXRfMx8tBL+15hgPoPczhalFvUQnnV0QJ0flnm2uTtJZGz1Tv28qeFz36K4z8wGYyLV5fDhyYV392PbR8SKDlxc9WNifGk979mMbJHKrTzNI781Nczg4kz8rW/0ymWjNycjE6BQJT0=
file:
- "./distribution/Windows.x86.7z"
skip_cleanup: true
draft: true
on:
tags: true

View File

@ -0,0 +1,16 @@
rd distribution /s/q
mkdir distribution
mkdir distribution/noita-mapcap
robocopy "." "distribution/noita-mapcap/" init.lua LICENSE mod.xml README.md
robocopy "data" "distribution/noita-mapcap/data" /e
robocopy "files" "distribution/noita-mapcap/files" /e
robocopy "bin/capture-b/" "distribution/noita-mapcap/bin/capture-b/" capture.dll README.md
robocopy "bin/stitch/" "distribution/noita-mapcap/bin/stitch/" stitch.exe README.md
cd distribution
7z a -t7z Windows.x86.7z -m0=lzma2 -mx=9 -aoa noita-mapcap