forked from cliqz-oss/browser-f
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathmagic_build_and_package.sh
executable file
·54 lines (41 loc) · 1.24 KB
/
magic_build_and_package.sh
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
#! /bin/bash
# Optional ENVs:
# CQZ_BUILD_ID - specify special build timestamp or use latest one (depend on channel)
# CQZ_RELEASE_CHANNEL - specify special build channel (beta by default)
# CQZ_BUILD_DE_LOCALIZATION - for build DE localization
set -e
set -x
source cliqz_env.sh
cd $SRC_BASE
if $CLOBBER; then
./mach clobber
fi
if [ -z "$LANG" ]; then
LANG='en-US'
fi
# for localization repack
export L10NBASEDIR=../l10n # --with-l10n-base=...
# check for API key files
if [ ! -f ../mozilla-desktop-geoloc-api.key ]; then
echo "mozilla-api-key-required" > ../mozilla-desktop-geoloc-api.key
fi
if [ ! -f ../google-desktop-api.key ]; then
echo "google-api-key-required" > ../google-desktop-api.key
fi
echo '***** Building *****'
./mach build
echo '***** Packaging *****'
./mach package
echo '***** Prepare build symbols *****'
# Because of Rust problem with dsymutil on Mac (stylo) - only for Windows platform
if [ $IS_WIN ]; then
if [ "$MOZ_UPDATE_CHANNEL" == "release" ] || [ "$MOZ_UPDATE_CHANNEL" == "beta" ]; then
./mach buildsymbols
fi
fi
echo '***** Build DE language pack *****'
if [ "$CQZ_BUILD_DE_LOCALIZATION" == "1" ]; then
./mach build installers-de
fi
echo '***** Build & package finished successfully. *****'
cd $OLDPWD