add android keystore support

This commit is contained in:
Carmelo Messina
2023-07-19 14:23:32 +02:00
parent 1b3f3ea7a3
commit 8e7624c69c
2 changed files with 18 additions and 6 deletions
@@ -1,4 +1,4 @@
name: Build Bromite
name: Build Cromite
permissions:
actions: none
checks: none
@@ -15,7 +15,7 @@ on:
workflow_dispatch:
inputs:
sha:
description: 'uazo/bromite SHA'
description: 'uazo/cromite SHA'
required: true
default: ''
target_os:
@@ -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
@@ -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') }}
+10 -4
View File
@@ -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") {
@@ -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