Changed release directory in release script.
This commit is contained in:
parent
000348339d
commit
c52f2682e0
@ -15,7 +15,8 @@ rm -rf build/linux*
|
|||||||
rm -rf build/macosx*
|
rm -rf build/macosx*
|
||||||
rm -rf build/windows*
|
rm -rf build/windows*
|
||||||
|
|
||||||
mkdir -p build/release
|
qbitter_release_dir=release/qbitter_${version_safe}
|
||||||
|
mkdir -p build/${qbitter_release_dir}
|
||||||
|
|
||||||
go generate ../cmd/tins2021
|
go generate ../cmd/tins2021
|
||||||
|
|
||||||
@ -23,38 +24,38 @@ mkdir -p build/linux
|
|||||||
go build -tags static -ldflags "-s -w" -o build/linux/qbitter ../cmd/tins2021
|
go build -tags static -ldflags "-s -w" -o build/linux/qbitter ../cmd/tins2021
|
||||||
cp ../README.md build/linux
|
cp ../README.md build/linux
|
||||||
cd build/linux
|
cd build/linux
|
||||||
zip -9 -q ../release/qbitter_${version_safe}_linux_amd64.zip *
|
zip -9 -q ../${qbitter_release_dir}/qbitter_${version_safe}_linux_amd64.zip *
|
||||||
echo "Created Linux release: build/release/qbitter_${version_safe}_linux_amd64.zip"
|
echo "Created Linux release: build/${qbitter_release_dir}/qbitter_${version_safe}_linux_amd64.zip"
|
||||||
cd ../..
|
cd ../..
|
||||||
|
|
||||||
mkdir -p build/linux-allegro
|
mkdir -p build/linux-allegro
|
||||||
go build -tags static,allegro -ldflags "-s -w" -o build/linux-allegro/qbitter ../cmd/tins2021
|
go build -tags static,allegro -ldflags "-s -w" -o build/linux-allegro/qbitter ../cmd/tins2021
|
||||||
cp ../README.md build/linux-allegro
|
cp ../README.md build/linux-allegro
|
||||||
cd build/linux-allegro
|
cd build/linux-allegro
|
||||||
zip -9 -q ../release/qbitter_allegro_${version_safe}_linux_amd64.zip *
|
zip -9 -q ../${qbitter_release_dir}/qbitter_allegro_${version_safe}_linux_amd64.zip *
|
||||||
echo "Created Linux (Allegro) release: build/release/qbitter_allegro_${version_safe}_linux_amd64.zip"
|
echo "Created Linux (Allegro) release: build/${qbitter_release_dir}/qbitter_allegro_${version_safe}_linux_amd64.zip"
|
||||||
cd ../..
|
cd ../..
|
||||||
|
|
||||||
mkdir -p build/macosx
|
mkdir -p build/macosx
|
||||||
CGO_ENABLED=1 CC=o64-clang CXX=o64-clang++ GOOS=darwin GOARCH=amd64 go build -tags static -ldflags "-s -w" -o build/macosx/qbitter ../cmd/tins2021
|
CGO_ENABLED=1 CC=o64-clang CXX=o64-clang++ GOOS=darwin GOARCH=amd64 go build -tags static -ldflags "-s -w" -o build/macosx/qbitter ../cmd/tins2021
|
||||||
cp ../README.md build/macosx
|
cp ../README.md build/macosx
|
||||||
cd build/macosx
|
cd build/macosx
|
||||||
zip -9 -q ../release/qbitter_${version_safe}_macosx_amd64.zip *
|
zip -9 -q ../${qbitter_release_dir}/qbitter_${version_safe}_macosx_amd64.zip *
|
||||||
echo "Created Mac OS X release: build/release/qbitter_${version_safe}_macosx_amd64.zip"
|
echo "Created Mac OS X release: build/${qbitter_release_dir}/qbitter_${version_safe}_macosx_amd64.zip"
|
||||||
cd ../..
|
cd ../..
|
||||||
|
|
||||||
mkdir -p build/windows
|
mkdir -p build/windows
|
||||||
CGO_ENABLED=1 CC=x86_64-w64-mingw32-gcc GOOS=windows GOARCH=amd64 go build -tags static -ldflags "-s -w" -o build/windows/qbitter.exe ../cmd/tins2021
|
CGO_ENABLED=1 CC=x86_64-w64-mingw32-gcc GOOS=windows GOARCH=amd64 go build -tags static -ldflags "-s -w" -o build/windows/qbitter.exe ../cmd/tins2021
|
||||||
cp ../README.md build/windows
|
cp ../README.md build/windows
|
||||||
cd build/windows
|
cd build/windows
|
||||||
zip -9 -q ../release/qbitter_${version_safe}_windows_amd64.zip *
|
zip -9 -q ../${qbitter_release_dir}/qbitter_${version_safe}_windows_amd64.zip *
|
||||||
echo "Created Windows release: build/release/qbitter_${version_safe}_windows_amd64.zip"
|
echo "Created Windows release: build/${qbitter_release_dir}/qbitter_${version_safe}_windows_amd64.zip"
|
||||||
cd ../..
|
cd ../..
|
||||||
|
|
||||||
mkdir -p build/windows-allegro
|
mkdir -p build/windows-allegro
|
||||||
CGO_ENABLED=1 CC=x86_64-w64-mingw32-gcc GOOS=windows GOARCH=amd64 go build -tags static,allegro,mingw64_7_3 -ldflags "-s -w" -o build/windows-allegro/qbitter.exe ../cmd/tins2021
|
CGO_ENABLED=1 CC=x86_64-w64-mingw32-gcc GOOS=windows GOARCH=amd64 go build -tags static,allegro,mingw64_7_3 -ldflags "-s -w" -o build/windows-allegro/qbitter.exe ../cmd/tins2021
|
||||||
cp ../README.md build/windows-allegro
|
cp ../README.md build/windows-allegro
|
||||||
cd build/windows-allegro
|
cd build/windows-allegro
|
||||||
zip -9 -q ../release/qbitter_allegro_${version_safe}_windows_amd64.zip *
|
zip -9 -q ../${qbitter_release_dir}/qbitter_allegro_${version_safe}_windows_amd64.zip *
|
||||||
echo "Created Windows (Allegro) release: build/release/qbitter_allegro_${version_safe}_windows_amd64.zip"
|
echo "Created Windows (Allegro) release: build/${qbitter_release_dir}/qbitter_allegro_${version_safe}_windows_amd64.zip"
|
||||||
cd ../..
|
cd ../..
|
||||||
|
Loading…
Reference in New Issue
Block a user