Skip to content

Commit

Permalink
add android keystore support
Browse files Browse the repository at this point in the history
  • Loading branch information
uazo committed Jul 19, 2023
1 parent 1b3f3ea commit 8e7624c
Show file tree
Hide file tree
Showing 2 changed files with 18 additions and 6 deletions.
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
name: Build Bromite
name: Build Cromite
permissions:
actions: none
checks: none
Expand All @@ -15,7 +15,7 @@ on:
workflow_dispatch:
inputs:
sha:
description: 'uazo/bromite SHA'
description: 'uazo/cromite SHA'
required: true
default: ''
target_os:
Expand Down Expand Up @@ -178,6 +178,8 @@ jobs:
# compile in debug mode
TARGET_ISDEBUG: ${{ github.event.inputs.debug }}
TARGET_OS: ${{ github.event.inputs.target_os }}
USE_KEYSTORE: true
KEYSTORE_PASSWORD: ${{ secrets.KEYSTORE_PASSWORD }}
volumes:
- /storage/images/android/${{ github.event.inputs.sha }}/${{ github.event.inputs.debug }}/arm64:/home/lg/working_dir/chromium/src/out/bromite
- /storage/images/android/${{ github.event.inputs.sha }}/${{ github.event.inputs.debug }}/x64:/home/lg/working_dir/chromium/src/out/bromite_x64
Expand Down Expand Up @@ -219,6 +221,10 @@ jobs:
sudo chown lg /run/user/1000/
sudo chmod g-rxw /run/user/1000/
sudo chmod o-rxw /run/user/1000/
# prepare keystore
echo "${{ secrets.KEYSTORE }}" > ~/cromite.keystore.asc
gpg -d --passphrase "${{ secrets.KEYSTORE_PASSPHRASE }}" --batch ~/cromite.keystore.asc > ~/cromite.keystore
- name: Build Bromite Android arm64
if: ${{ (github.event.inputs.target_os == 'android' || github.event.inputs.target_os == 'all') && (github.event.inputs.build == 'arm64' || github.event.inputs.build == 'all') }}
Expand Down
14 changes: 10 additions & 4 deletions tools/images/bromite-build/build_args.gni
Original file line number Diff line number Diff line change
Expand Up @@ -5,14 +5,20 @@ declare_args() {

not_needed(["_target_build", "_is_debug_build"])

if(getenv("TARGET_CPU") != "") {
if (getenv("TARGET_CPU") != "") {
target_cpu = getenv("TARGET_CPU")
}

if (target_os == "android") {
target_os = "android" # fix traffic annotation auditor
#enable_kythe_annotations = true
chrome_public_manifest_package = "org.bromite.bromite.dev"
chrome_public_manifest_package = "org.cromite.cromite"

if (getenv("USE_KEYSTORE") != "") {
android_keystore_path = "/home/lg/working_dir/cromite.keystore"
android_keystore_name = "cromite"
android_keystore_password = getenv("KEYSTORE_PASSWORD")
}

_is_debug_build = getenv("TARGET_ISDEBUG")
if(_is_debug_build == "true") {
Expand All @@ -39,11 +45,11 @@ if (target_os == "win") {
target_cpu = "x64"
symbol_level = 0
use_large_pdbs = true

enable_pdf = true
pdf_is_complete_lib = true
enable_plugins = true
enable_ppapi = false
enable_ppapi = false

is_cfi = false # disable it
use_cfi_cast = false # disable it
Expand Down

0 comments on commit 8e7624c

Please sign in to comment.