A rewrite in C++ and wxWidgets of a minimalistic pEp Linux Setup for Thuderbird.
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 
 

107 lines
4.8 KiB

kind: pipeline
type: docker
name: default
steps:
- name: submodules
image: alpine/git
commands:
- env
- git submodule update --init --recursive --remote
- name: build-image-1
image: plugins/docker
environment:
PLUGIN_DEBUG: true
settings:
# username: test
# password: n0t-This-1
repo: hub.pep.oneon.ch/plugins/docker
build_args:
- DRONE_IMAGE_BUILD_BRANCH=${DRONE_BRANCH#build-image/*}
tags:
- "${DRONE_BRANCH#build-image/*}"
- latest
# - "${DRONE_BRANCH}-${DRONE_COMMIT}"
registry: hub.pep.oneon.ch
dockerfile: parts/build/Dockerfile.dind
cache_from:
- "hub.pep.oneon.ch/plugins/docker:master"
- "hub.pep.oneon.ch/plugins/docker:${DRONE_BRANCH#build-image/*}"
when:
branch:
- build-image/*
- name: build-image-2
image: hub.pep.oneon.ch/plugins/docker
privileged: true
# environment:
# PLUGIN_DEBUG: true
settings:
# username: test
# password: n0t-This-1
repo: hub.pep.oneon.ch/pe_p/linux-tb-install-alpine-build
build_args:
- DRONE_IMAGE_BUILD_BRANCH=${DRONE_BRANCH#build-image/*}
tags:
- "${DRONE_BRANCH#build-image/*}"
# - "${DRONE_BRANCH}-${DRONE_COMMIT}"
registry: hub.pep.oneon.ch
dockerfile: parts/build/Dockerfile
cache_from:
- "hub.pep.oneon.ch/pe_p/linux-tb-install-alpine-build:master"
- "hub.pep.oneon.ch/pe_p/linux-tb-install-alpine-build:${DRONE_BRANCH#build-image/*}"
when:
branch:
- build-image/*
- name: installer
image: "hub.pep.oneon.ch/pe_p/linux-tb-install-alpine-build:${DRONE_BRANCH:-master}"
pull: always
commands:
- /install/bin/wx-config --static --cppflags
- /install/bin/wx-config --static --libs
# - awk '$1 == "VERSION" {print $3}' GNUmakefile)
- make print-versions
- _ver_mk=$$(make print-version 2>/dev/null)
# For variant version numbers see https://dev.pep.security/thunderbird/releases
# also update the build image (build-image/master branch), and
# matching git submodule contrib/pEp/pEpLinuxBuilder
- export _ver=${DRONE_TAG#Release_}
- export _ver=$${_ver:-$${_ver_mk}}
- export _pEp4Tb_manifest_ver=$$(/usr/bin/python3 -c 'import json; v=json.load(open("./contrib/pEp/pEpForThunderbird/addon/manifest.json","r"));print(v["version"])')
# - export _pEp4Tb_manifest_ver=$$(python3 -c 'import json;from zipfile import ZipFile; v=json.loads(ZipFile("plat/lnx/pEp4Tb@pEp.security.xpi", "r").__enter__().read("manifest.json"));print(v["version"])')
- export _pEp4Tb_rel=$$(git --git-dir .git/modules/contrib/pEp/pEpForThunderbird describe --tags)
- export _variant=unrel_$${_pEp4Tb_manifest_ver}
- "echo 'TODO/Temp: -local and non-local are swapped due to BUG in build image'"
#- "cp -f /install/bin/pEp-mini-json-adapter-local plat/lnx/pEp-mini-json-adapter-local 2>/dev/null || true"
#- "cp -f plat/lnx/pEp-mini-json-adapter-local plat/lnx/pEp-mini-json-adapter.user 2>/dev/null || true"
#- "cp -f /install/bin/pEp-mini-json-adapter plat/lnx/pEp-mini-json-adapter 2>/dev/null || true"
- "cp -f /install/bin/pEp-mini-json-adapter-local plat/lnx/pEp-mini-json-adapter 2>/dev/null || true"
- "cp -f /install/bin/pEp-mini-json-adapter plat/lnx/pEp-mini-json-adapter-user 2>/dev/null || true"
- "cp -f plat/lnx/pEp-mini-json-adapter-user plat/lnx/pEp-mini-json-adapter.user 2>/dev/null || true"
- make OS=lnx VARIANT="$${_variant}" pEp4Tb_release="$${_pEp4Tb_rel}" VERSION="$${_ver}" download-parts
- "[ ! -e plat/lnx/tb_setup ] || touch plat/lnx/tb_setup"
- "[ -e plat/lnx/tb_setup ] || CPPFLAGS=-L/install/lib make -C src all STATIC=yes wx_config=/install/bin/wx-config"
- "[ -e plat/lnx/tb_setup ] || cp -v src/tb_setup plat/lnx/tb_setup"
# - "[ -e parts/system.db ] || cp -v /install/share/pEp/system.db parts/system.db"
- "[ -e parts/system.db ] || cp -v /build/pEpEngine/db/system.db parts/system.db"
- make -C src/launcher
- cp -v src/launcher/install.run plat/lnx/install.run
#- CPPFLAGS="-L/install/lib" make all STATIC=yes OS=lnx VARIANT=unreleased pEp4Tb_release="$${_pEp4Tb_rel}" VERSION="$${_ver}" wx_config=/install/bin/wx-config
- CPPFLAGS="-L/install/lib" make all STATIC=yes OS=lnx VARIANT="$${_variant}" pEp4Tb_release="$${_pEp4Tb_rel}" VERSION="$${_ver}" wx_config=/install/bin/wx-config
# - make webinstall OS=lnx VARIANT=unreleased pEp4Tb_release="$${_pEp4Tb_rel}" VERSION="$${_ver}"
when:
branch:
exclude:
- build-image/*
- name: upload
image: "hub.pep.oneon.ch/pe_p/drone-upload:master"
commands:
- /root/upload.sh dist/pEp_Setup_Thunderbird_*-x86_64.zip
- /root/upload.sh --publish
when:
branch:
exclude:
- build-image/*