Initial Commit of libCwtch Linux and Windows Repbuilds

This commit is contained in:
Sarah Jamie Lewis 2023-01-18 11:36:10 -08:00
commit 2ea5711b1d
3 changed files with 59 additions and 0 deletions

1
.gitignore vendored Normal file
View File

@ -0,0 +1 @@
.idea/

27
libcwtch-linux.script Normal file
View File

@ -0,0 +1,27 @@
mkfs -t ext4 /dev/vdb
mkdir /mount
mount -t auto /dev/vdb /mount
cd /mount
mkdir gopath
mkdir /drone
wget https://go.dev/dl/go1.19.1.linux-amd64.tar.gz
@!check go1.19.1.linux-amd64.tar.gz a69153393a2eaf1c2b77f5a4bafe6a2fb36368c6856d79bd697472af71d925fc62c58e6b8fe75adf143b0462da2ed9e68d0fcd0328cde091be70d745b92814aa
tar -xzf go1.19.1.linux-amd64.tar.gz
apt update
apt install -y --no-install-recommends git wget libc6-dev make gcc g++ pkg-config
ln -s /mount/go /usr/local/go
ln -s /mount/gopath /go
ln -s /mount/libcwtch-go /drone/src/
export GOROOT="/usr/local/go"
export GOPATH="/go"
export GOCACHE="/tmp/gocache"
export PATH="/usr/local/go/bin/:$PATH"
go version
git clone https://git.openprivacy.ca/cwtch.im/libcwtch-go
git fetch --tags
cd libcwtch-go
echo `git describe --tags` > VERSION
go mod download
make linux
@%sha512sum libCwtch.so
@!check libCwtch.so 294734f79be2963e13c50a525fe76af1d4a6f3c1337b13a9b6065e12c19fac187464e6ef59cd39f57c3e25759d39a4a7ed4434de6f73617587aef6df05b1c493

31
libcwtch-windows.script Normal file
View File

@ -0,0 +1,31 @@
# Mount Virtual Disk for More Space
@!preserve
mkfs -t ext4 /dev/vdb
mkdir /mount
mount -t auto /dev/vdb /mount
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 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
ln -s /mount/libcwtch-go /drone/src/
export GOROOT="/usr/local/go"
export GOPATH="/go"
export GOCACHE="/tmp/gocache"
export PATH="/usr/local/go/bin/:$PATH"
go version
# Building libCwtch.dll
git clone https://git.openprivacy.ca/cwtch.im/libcwtch-go
git fetch --tags
cd libcwtch-go
echo `git describe --tags` > VERSION
go mod download
make windows
sha512sum libCwtch.dll
@!check libCwtch.dll edbb50c19f9b2c0eb904339a29aada8c110a3ec4f976e8a8f4890da48396591d934a2b902c7091a802ffb75eb08039ef14e17952f5491d6135608fd310159df0