Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
Matthew Finkel
tor-browser-build
Commits
524a9364
Unverified
Commit
524a9364
authored
Dec 05, 2018
by
Georg Koppen
Browse files
Bug 26843: Adding multi-locale support for Tor Browser for Android
parent
30c764db
Changes
4
Show whitespace changes
Inline
Side-by-side
projects/firefox/build
View file @
524a9364
...
@@ -3,6 +3,9 @@
...
@@ -3,6 +3,9 @@
[
%
c
(
"var/set_default_env"
)
-%
]
[
%
c
(
"var/set_default_env"
)
-%
]
[
%
IF
c
(
"var/android"
)
%
]
[
%
IF
c
(
"var/android"
)
%
]
export
GRADLE_MAVEN_REPOSITORIES
=
"file://$rootdir/[% c('input_files_by_name/gradle-dependencies') %]"
export
GRADLE_MAVEN_REPOSITORIES
=
"file://$rootdir/[% c('input_files_by_name/gradle-dependencies') %]"
# Prepare building the multi-locale .apk
mkdir
-
p
/
var
/
tmp
/
dist
/
locales
tar
-
C
/
var
/
tmp
/
dist
/
locales
-
xf
$
rootdir
/
[
%
c
(
'input_files_by_name/firefox-locale-bundle'
)
%
]
[
%
END
-%
]
[
%
END
-%
]
[
%
IF
c
(
"var/windows"
)
-%
]
[
%
IF
c
(
"var/windows"
)
-%
]
...
@@ -154,7 +157,14 @@ rm -f js/src/configure
...
@@ -154,7 +157,14 @@ rm -f js/src/configure
.
/
mach
build
--
verbose
.
/
mach
build
--
verbose
[
%
IF
c
(
"var/android"
)
%
]
[
%
IF
c
(
"var/android"
)
%
]
.
/
mach
package
# Building a multi-locale .apk
[
%
FOREACH
lang
=
c
(
'var/locales'
)
%
]
[
%
SET
lang
=
tmpl
(
lang
)
%
]
.
/
mach
build
chrome
-
[
%
lang
%
];
[
%
END
%
]
export
MOZ_CHROME_MULTILOCALE
=
'[% tmpl(c('
var
/
locales
').join('
')) %]'
AB_CD
=
multi
.
/
mach
package
# Copy the result over and return. There is nothing more to do for mobile.
cp
obj
-*/
dist
/*
unsigned
-
unaligned
.
apk
[
%
dest_dir
_
'/'
_
c
(
'filename'
)
%
]
/
tor
-
browser
-
unsigned
-
unaligned
.
apk
cp
obj
-*/
dist
/*
unsigned
-
unaligned
.
apk
[
%
dest_dir
_
'/'
_
c
(
'filename'
)
%
]
/
tor
-
browser
-
unsigned
-
unaligned
.
apk
[
%
RETURN
%
]
[
%
RETURN
%
]
[
%
END
%
]
[
%
END
%
]
...
...
projects/firefox/config
View file @
524a9364
...
@@ -135,3 +135,6 @@ input_files:
...
@@ -135,3 +135,6 @@ input_files:
-
project
:
orbot
-
project
:
orbot
name
:
orbot
name
:
orbot
enable
:
'
[%
c("var/android")
%]'
enable
:
'
[%
c("var/android")
%]'
-
project
:
firefox-locale-bundle
name
:
firefox-locale-bundle
enable
:
'
[%
c("var/android")
%]'
projects/firefox/mozconfig-android-armv7
View file @
524a9364
...
@@ -18,6 +18,7 @@ ac_add_options --with-libclang-path=/var/tmp/dist/android-toolchain/android-ndk/
...
@@ -18,6 +18,7 @@ ac_add_options --with-libclang-path=/var/tmp/dist/android-toolchain/android-ndk/
ac_add_options --with-clang-path=/var/tmp/dist/android-toolchain/android-ndk/arm/bin/clang
ac_add_options --with-clang-path=/var/tmp/dist/android-toolchain/android-ndk/arm/bin/clang
ac_add_options --with-android-distribution-directory=@TOPSRCDIR@/mobile/android/torbrowser
ac_add_options --with-android-distribution-directory=@TOPSRCDIR@/mobile/android/torbrowser
ac_add_options --with-l10n-base=/var/tmp/dist/locales
if [ -z "${TB_BUILD_WITH_UPDATER}" ]; then
if [ -z "${TB_BUILD_WITH_UPDATER}" ]; then
# Because Google Play will likely be the primary distribution medium,
# Because Google Play will likely be the primary distribution medium,
...
...
projects/tor-browser/build.android
View file @
524a9364
#!/bin/bash
#!/bin/bash
[
% c
(
"var/set_default_env"
)
-%]
[
% c
(
"var/set_default_env"
)
-%]
ext_dir
=
assets/distribution/extensions
ext_dir
=
assets/distribution/extensions
qa_apk
=[
% dest_dir %]/[% c
(
'filename'
)
%]/tor-browser-[% c
(
"version"
)
%]-[% c
(
"var/osname"
)
%]-qa.apk
qa_apk
=[
% dest_dir %]/[% c
(
'filename'
)
%]/tor-browser-[% c
(
"version"
)
%]-[% c
(
"var/osname"
)
%]-
multi-
qa.apk
apk
=
$rootdir
/[% c
(
'input_files_by_name/firefox'
)
%]/tor-browser-unsigned-unaligned.apk
apk
=
$rootdir
/[% c
(
'input_files_by_name/firefox'
)
%]/tor-browser-unsigned-unaligned.apk
mkdir
-p
/var/tmp/build/
$ext_dir
[
% dest_dir _
'/'
_ c
(
'filename'
)
%]
mkdir
-p
/var/tmp/build/
$ext_dir
[
% dest_dir _
'/'
_ c
(
'filename'
)
%]
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment