34 lines
1.2 KiB
Plaintext
34 lines
1.2 KiB
Plaintext
# Mount Virtual Disk for More Space
|
|
@!setup-secondary
|
|
cd /mount
|
|
mkdir gopath
|
|
mkdir /drone
|
|
# Downloading Go
|
|
wget https://go.dev/dl/go1.19.3.linux-amd64.tar.gz
|
|
@!check go1.19.3.linux-amd64.tar.gz 1bf389df6d7efa6b54b04332c70356ee0d133753b1e58753e80ebafcff0f559c61223ddad3f5d024f0c538dbbd7d6ac92abb6b022f6a171a91a5ef39b0d82c9b
|
|
tar -xzf go1.19.3.linux-amd64.tar.gz
|
|
apt update
|
|
apt install -y --no-install-recommends netcat git wget libc6-dev make gcc g++ pkg-config g++-mingw-w64-x86-64
|
|
ln -s /mount/go /usr/local/go
|
|
ln -s /mount/gopath /go
|
|
export GOROOT="/usr/local/go"
|
|
export GOPATH="/go"
|
|
export GOCACHE="/tmp/gocache"
|
|
export PATH="/usr/local/go/bin/:$PATH"
|
|
go version
|
|
# Building libCwtch.dll
|
|
mkdir /mount/
|
|
git clone https://git.openprivacy.ca/cwtch.im/autobindings
|
|
ln -s /mount/autobindings /drone/src
|
|
cd /drone/src/
|
|
git fetch --tags
|
|
git checkout tags/v0.0.5 -b v0.0.5
|
|
echo `git describe --tags` > VERSION
|
|
go mod download
|
|
make clean
|
|
go run generate/generate_bindings.go --experiments "serverExperiment"
|
|
make windows
|
|
sha512sum build/windows/libCwtch.dll
|
|
@!check build/windows/libCwtch.dll f950a7165052d3531a97af757261c7ff9c4a00f38191183fcf99f41e6553f10947d6c69a8c5335339b231d29e4a425a4745de30af19494c0a3f4886102cfafec
|
|
@!extract build/windows/libCwtch.dll
|