Repository navigation
Expand file tree
/
Copy path.drone.yml-win-electron-wallet
More file actions
75 lines (75 loc) · 3.25 KB
/
Copy path.drone.yml-win-electron-wallet
File metadata and controls
75 lines (75 loc) · 3.25 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
{
"kind": "pipeline",
"name": "Static (win64)",
"platform": {
"arch": "amd64"
},
"steps": [
{
"commands": [
"git fetch --tags",
"git submodule update --init --recursive --depth=1"
],
"image": "drone/git",
"name": "submodules"
},
{
"commands": [
"echo \"Building on ${DRONE_STAGE_MACHINE}\"",
"echo \"man-db man-db/auto-update boolean false\" | debconf-set-selections",
"apt-get -o=Dpkg::Use-Pty=0 -q update",
"apt-get -o=Dpkg::Use-Pty=0 -q install -y eatmydata",
"eatmydata apt-get -o=Dpkg::Use-Pty=0 -q dist-upgrade -y",
"eatmydata apt-get -o=Dpkg::Use-Pty=0 -q install -y --no-install-recommends cmake git ca-certificates ninja-build ccache g++ g++-mingw-w64-x86-64 autoconf automake make qttools5-dev file libtool gperf pkg-config patch openssh-client",
"mkdir build",
"cd build",
"cmake .. -G Ninja -DCMAKE_CXX_FLAGS=-fdiagnostics-color=always -DCMAKE_BUILD_TYPE=Release -DLOCAL_MIRROR=https://builds.belnet.dev/deps -DUSE_LTO=OFF -DCMAKE_TOOLCHAIN_FILE=../cmake/64-bit-toolchain.cmake -DBUILD_STATIC_DEPS=ON -DARCH=x86-64",
"ninja -j6 -v",
"ninja strip_binaries",
"ninja create_zip",
"../utils/build_scripts/drone-static-upload.sh"
],
"environment": {
"GTEST_FILTER": "-AddressFromURL.Failure:DNSResolver.DNSSEC*",
"SSH_KEY": {
"from_secret": "SSH_KEY"
}
},
"image": "ubuntu:focal",
"name": "build"
},
{
"commands": [
"echo \"man-db man-db/auto-update boolean false\" | debconf-set-selections",
"dpkg --add-architecture i386",
"apt-get -o=Dpkg::Use-Pty=0 -q update",
"apt-get -o=Dpkg::Use-Pty=0 -q install -y eatmydata",
"eatmydata apt-get -o=Dpkg::Use-Pty=0 -q dist-upgrade -y",
"eatmydata apt-get -o=Dpkg::Use-Pty=0 -q install -y --no-install-recommends git ssh curl ca-certificates binutils make wine32 wine sed",
"curl -sSL https://deb.nodesource.com/setup_14.x | bash -",
"eatmydata apt-get -o=Dpkg::Use-Pty=0 -q update",
"eatmydata apt-get -o=Dpkg::Use-Pty=0 -q install -y nodejs",
"git clone https://github.com/Beldex-Coin/beldex-electron-gui-wallet.git",
"cp -v build/bin/beldexd.exe beldex-electron-gui-wallet/bin",
"cp -v build/bin/beldex-wallet-rpc.exe beldex-electron-gui-wallet/bin",
"cd beldex-electron-gui-wallet",
"eatmydata npm install",
"sed -i -e 's/^\\\\( *\"version\": \".*\\\\)\",/\\\\\\\\1-${DRONE_COMMIT_SHA:0:8}\",/' package.json",
"sed -i -e 's/^\\\\( *\"build\": \"quasar.*\\\\)\",/\\\\\\\\1 --target=win\",/' package.json",
"eatmydata npm run build",
"../utils/build_scripts/drone-wallet-upload.sh"
],
"environment": {
"SSH_KEY": {
"from_secret": "SSH_KEY"
}
},
"image": "debian:stable",
"name": "GUI Wallet (dev)",
"platform": {
"arch": "amd64"
}
}
],
"type": "docker"
}