Unverified Commit 2bc07664 authored by Kali Kaneko's avatar Kali Kaneko
Browse files

[pkg] entrypoint for all vendored builds

parent 2027a761
Pipeline #27025 failed
......@@ -3,6 +3,7 @@ stages:
- build
- push
- trigger
- vendor
variables:
GOPATH: /go
......@@ -149,3 +150,16 @@ trigger_deb:
stage: trigger
script:
- "curl -X POST -F token=$RISEUP_VPN_DEB_TRIGGER_TOKEN -F ref=master https://0xacab.org/api/v4/projects/1916/trigger/pipeline"
vendorize:
image: 0xacab.org:4567/leap/docker/bitmask-vpn:latest
stage: vendor
script:
- PROVIDERS="riseup" make build_all_providers
artifacts:
name: installers-$CI_COMMIT_REF_NAME
paths:
- deploy/RiseupVPN-*.exe
- deploy/RiseupVPN-*.pkg
- deploy/riseup-vpn-*.deb
expire_in: 1 month
......@@ -109,6 +109,13 @@ clean:
@rm -rf build/
@unlink branding/assets/default
#########################################################################
# build them all
#########################################################################
build_all_providers:
branding/scripts/build-all-providers
#########################################################################
# packaging templates
#########################################################################
......
#!/bin/bash
# run the build process for all the providers passed
# on a environment variable
: "${PROVIDERS:=riseup}"
set -e
export XBUILD=yes
for _provider in $PROVIDERS; do
export PROVIDER=$_provider;
make prepare
make build
make packages
done
......@@ -54,8 +54,8 @@ pkg_osx:
echo "[+] Building osx package..."
cp ../bin/darwin/bitmask-vpn dist/$(APPNAME).app/Contents/MacOS/
cp ../bin/darwin/bitmask-helper dist/$(APPNAME).app/Contents/MacOS/
chmod +x $(STAGING)/openvpn-osx
cp $(STAGING)/openvpn-osx dist/$(APPNAME).app/Contents/Resources/openvpn.leap
chmod +x dist/$(APPNAME).app/Contents/Resources/openvpn.leap
ifeq ($(SYSTEM), Darwin)
osx/quickpkg --output dist/$(APPNAME)-$(VERSION)_unsigned.pkg --scripts osx/scripts/ dist/$(APPNAME).app/
@if [ $(BUILD_RELEASE) = no ]; then\
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment